Alan Cox
85a75996ed
blackfin enable arbitary speed serial setting
...
Add the needed definitions to activate arbitary speed support on the blackfin platform.
Signed-off-by: Alan Cox <alan@redhat.com >
Acked-by: Aubrey Li <aubrey.li@analog.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 19:16:05 +08:00
Sonic Zhang
a359cca71e
Blackfin arch: update kgdb patch
...
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-10 16:47:58 +08:00
Michael Hennerich
2b39331a28
Blackfin arch: Comply with revised Anomaly Workarounds for BF533 05000311 and BF561 05000323
...
Comply with revised Anomaly Workarounds for BF533 05000311 and BF561 05000323
accoring to BF533 anomaly sheet Rev. A 09/04/07
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-10 16:58:49 +08:00
Robin Getz
337d390b3a
Blackfin arch: Print out debug info, as early as possible
...
Print out debug info, as early as possible - even before the
kernel initializes the interrupt vectors. Now we can print out debug
messages almost anytime during the boot process.
Signed-off-by: Robin Getz <robin.getz@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-09 17:31:46 +08:00
Robin Getz
0ae53640b5
Blackfin arch: Initial patch to add earlyprintk support
...
This allows debugging of problems which happen eary in the kernel
boot process (after bootargs are parsed, but before serial subsystem
is fully initialized)
Signed-off-by: Robin Getz <robin.getz@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-09 17:24:49 +08:00
Bryan Wu
1d487f468d
Blackfin arch: add TWIx_REGBASE and SPIx_REGBASE to specific CPU header files, use the new REGBASE for board platform resources
...
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-11 00:30:56 +08:00
Bryan Wu
b7b2d344e7
Blackfin arch: modify the insX/outsX and dma_insX/dma_outsX to be compatible with other archs
...
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-09 15:09:49 +08:00
Bryan Wu
fb282a72f1
Blackfin arch: cleanup IO and DMA_IO API function definitions according to other arches
...
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-09-12 17:48:25 +08:00
Michael Hennerich
2714d9a6d1
Blackfin arch: Workaround reboot bug, issue SSYNC at the start of bfin_reset
...
reboot failes on BF533
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3500
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-11 00:29:49 +08:00
Michael Hennerich
4b3f058a7a
Blackfin arch: Add ANOMALY_05000311 Workaround - for those who doesnt use the generic GPIO driver
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-09-12 14:50:28 +08:00
Michael Hennerich
eabb5a5e0b
Blackfin arch: Remove legacy support
...
Now that there is a generic GPIO driver framework
remove GPIO register unified name space legacy support.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-28 14:57:05 +08:00
Michael Hennerich
55249e9e3d
Blackfin arch: For compatibility reasons change IRQ_XXX_ERR into IRQ_XXX_ERROR like on any other supported Blackfin derivative
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-11 00:06:31 +08:00
Robin Getz
2296fb7ff0
Blackfin arch: Fix bug missing L2_MEMORY definition for EZKIT-BF561 compiling error
...
Signed-off-by: Robin Getz <robin.getz@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-09-13 11:49:33 +08:00
Mike Frysinger
1ffe6646ba
Blackfin arch: add an exception request/free api
...
add an exception request/free api similar to the interrupt request/fre
api so people can utilize the free software based exceptions for their
own purposes
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 17:14:04 +08:00
Mike Frysinger
dbcc78bebe
Blackfin arch: all our other ports call this SIZE rather than SPI_LEN
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 17:06:48 +08:00
Mike Frysinger
f0b5d12f2b
Blackfin arch: allow people to select the feature that is unavailable to the kernel
...
- allow people to select the feature that is unavailable to the kernel: NMI, JTAG, or CYCLES.
- change default NMI handler to simply dump hardware trace buffer.
- remove default NMI handler completely as calling into kernel code is not safe
move example handler to wiki so people dont haphazardly copy and paste this stuff thinking its safe
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 17:03:59 +08:00
Mike Frysinger
0174dd59bb
Blackfin arch: make sure to stub out ANOMALY_05000230 were appropriate
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 16:53:10 +08:00
Sonic Zhang
8a26ac7043
Blackfin arch: Add DMA API to set curr descriptor address
...
This API is necessary for DMA descriptor array mode.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 16:14:58 +08:00
Bryan Wu
2cbfe10743
Blackfin arch: kill ezkit548 compiling warning
...
kill ezkit548 compiling warning:
- include/asm/cplb.h:42:5: warning: "ANOMALY_05000158" is not defined
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 15:31:16 +08:00
Robin Getz
be7b0d3711
Blackfin arch: fix up header for BF533
...
Signed-off-by: Robin Getz <robin.getz@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 14:14:42 +08:00
Michael Hennerich
07bdda0262
Blackfin arch: bug fixing restore mach dependent ASYNC memory size
...
Bug: When SMC921X driver is enabled, kernel boot crash on EZKIT548
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3460
Fixed by restoring mach dependent ASYNC memory size CPLB coverage.
Once we have a more dynamic memory layout we should come up with a better
solution for these hard-coded values.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-27 15:29:35 +08:00
Robin Getz
3bebca2d20
Blackfin arch: to do some consolidation of common code and common name spaces
...
now all BLKFIN should be BFIN, should be no functional changes.
Signed-off-by: Robin Getz <robin.getz@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-10 23:55:26 +08:00
Mike Frysinger
a298049180
Blackfin arch: remove unused code -- EVT0 is not controllable by software
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-03 18:29:15 +08:00
Roy Huang
1d945e2b3e
Blackfin arch: add set_dma_curr_addr DMA API to support sound driver recording function
...
Signed-off-by: Roy Huang <roy.huang@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-10 23:31:19 +08:00
Robin Getz
518039bc24
Blackfin arch: Add ability to expend the hardware trace buffer
...
Add ability to expend the hardware trace buffer via a configurable
software buffer - so you can have lots of history when a crash occurs.
The interesting way we do printk in the traps.c confusese the checking
script
Signed-off-by: Robin Getz <robin.getz@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 11:03:28 +08:00
Robin Getz
f16295e7e7
Blackfin arch: Fix CCLK and SCLK checks
...
Fix CCLK and SCLK checks, combine all arch checks into one file
for maintance. Checkins that remove more lines than they add are always
good.
Signed-off-by: Robin Getz <robin.getz@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-03 18:07:17 +08:00
Michael Hennerich
b99ab54d4f
Blackfin serial driver: use new GPIO API
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-11 10:57:54 +08:00
Mike Frysinger
1708268f7e
Blackfin arch: scrub remaining ASSEMBLY usage since the switch to __ASSEMBLY__
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 11:50:42 +08:00
Michael Hennerich
06039e90b9
Blackfin arch: Fix define - SPORT0_DTPRI is first function
...
Sigend-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-27 16:57:55 +08:00
Bryan Wu
7c100f3b90
Blackfin arch: fix bugs report by Andy Liu <yjhsou@gmail.com>, AD1836 can't be probed in BF561-EZ
...
Cc: Andy Liu <yjhsou@gmail.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 15:43:03 +08:00
Bryan Wu
214cccbbb2
Blackfin arch: bug fixing, add missing BF533_FAMILY GPIO_PFx definition
...
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 14:42:03 +08:00
Michael Hennerich
40d63406a0
Blackfin arch: store labels so we later know who allocated GPIO/Peripheral resources
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-10 22:55:30 +08:00
Michael Hennerich
301af2952b
Blackfin arch: Finalize the generic gpio support - add gpio_to_irq and irq_to_gpio
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-24 15:35:53 +08:00
Mike Frysinger
bc8c84c947
Blackfin arch: update to latest anomaly sheets
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 17:32:25 +08:00
Robin Getz
fb51d56680
Blackfin arch: Fix Anomaly hanlding, as pointed out by Mike
...
Signed-off-by: Robin Getz <robin.getz@analog.com >
Cc: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-03 17:56:29 +08:00
Mike Frysinger
35c724f310
Blackfin arch: fix typo... we want csync in CSYNC(), not ssync
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-03 16:48:13 +08:00
Mike Frysinger
36a1548f99
Blackfin arch: reorganize headers slightly so we can be sure things are defined early enough
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 12:01:19 +08:00
Mike Frysinger
d5148ffa60
Blackfin arch: use the [CS]SYNC() macros which include anomaly workarounds rather than __builtin_bfin_[cs]sync()
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 11:57:42 +08:00
Mike Frysinger
60e9356d77
Blackfin arch: update BF54x anomaly list
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Roy Huang <roy.huang@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 11:56:01 +08:00
Mike Frysinger
1aafd90912
Blackfin arch: revise anomaly handling by basing things on the compiler not the kconfig defines
...
revise anomaly handling by basing things on the compiler not the kconfig defines,
so the header is stable and usable outside of the kernel. This also allows us to
move some code from preprocessing to compiling (gcc culls dead code)
which should help with code quality (readability, catch minor bugs, etc...).
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 11:19:14 +08:00
Mike Frysinger
287050fe13
Blackfin arch: cleanup and standardize anomaly.h file format -- no functional changes
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-24 15:23:20 +08:00
Michael Hennerich
cda6a20b68
Blackfin arch: fix PORT_J BUG for BF537/6 EMAC driver reported by Kalle Pokki <kalle.pokki@iki.fi>
...
Cc: Kalle Pokki <kalle.pokki@iki.fi >
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-04 00:36:18 +08:00
Michael Hennerich
c58c2140f0
Blackfin arch: gpio pinmux and resource allocation API required by BF537 on chip ethernet mac driver
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-10-04 00:35:05 +08:00
Bryan Wu
0b95f22bd3
Blackfin arch: add some missing syscall
...
When compiling the Blackfin kernel, checksyscalls.pl will report lots of missing syscalls warnings.
This patch will add some missing syscalls which make sense on Blackfin arch
After appling this patch, toolchain should be rebuilt. Then recompiling the kernel with the new
toolchain.
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-09-23 00:51:32 +08:00
Mike Frysinger
0931ce8439
Blackfin arch: fix some bugs in lib/string.h functions found by our string testing modules
...
- use ints for the return value rather than char since we actually return
an int and we dont want it improperly being sign extended during the reload
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3525
- if src is shorter than the requested number of copy bytes, we need to null
pad the rest
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3524
- mark these as __volatile__ and add memory to the clobber list so gcc does
not optimize buffers around on us we may be using
- rewrite asm code to be readable/maintainable
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-09-12 16:30:15 +08:00
Robin Getz
e62687f995
Blackfin arch: fix the aliased write macros
...
Signed-off-by: Robin Getz <robin.getz@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-08-05 17:21:55 +08:00
Stephane Eranian
a583f1b542
remove unused TIF_NOTIFY_RESUME flag
...
Remove unused TIF_NOTIFY_RESUME flag for all processor architectures. The
flag was not used excecpt on IA-64 where the patch replaces it with
TIF_PERFMON_WORK.
Signed-off-by: stephane eranian <eranian@hpl.hp.com >
Cc: <linux-arch@vger.kernel.org >
Cc: "Luck, Tony" <tony.luck@intel.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2007-07-31 15:39:38 -07:00
Bryan Wu
d8e715428f
Blackfin arch: add BF54x I2C/TWI TWI0 driver support
...
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 16:58:03 +08:00
Bernd Schmidt
8be80ed3f7
Blackfin arch: Initialize the exception vectors early in the boot process
...
Initialize the exception vectors early in the boot process, so that CPLB faults
can be handled when memory protection is enabled.
Signed-off-by: Bernd Schmidt <bernd.schmidt@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 14:44:49 +08:00
Mike Frysinger
12a7991180
Blackfin arch: switch to using proper defines this time THREAD_SIZE and PAGE_SIZE instead of just PAGE_SIZE everywhere
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com >
Signed-off-by: Bryan Wu <bryan.wu@analog.com >
2007-07-25 10:25:29 +08:00