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>
17 years ago
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>
17 years ago
Mike Frysinger
c11b5776bf
Blackfin arch: add more common defines for output sections
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
17 years ago
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>
18 years ago
Mike Frysinger
b5c0e2e806
Blackfin arch: fix typo pointed out by David Rowe (Mhz -> MHz)
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
17 years ago
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>
18 years ago
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>
18 years ago
Michael Hennerich
2acde90230
Blackfin arch: a few things still use bfin_read_PORT_FER()
...
- Update gpio_request to allow multiple request with the same signature (label)
- Use generic GPIO API where applicable
- Update generic board support form stamp board
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
17 years ago
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>
17 years ago
Robin Getz
02f13f9d5c
Blackfin arch: Remove cruft - CONFIG_DEBUG_SERIAL_EARLY_INIT didn't work that well with DEBUG_KERNEL_START
...
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
Michael Hennerich
d2b11a468a
Blackfin arch: Merge GPIO/Peripheral Resource Allocation back into a single file
...
Signed-off-by: Michael Hennerich <michale.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
18 years ago
Michael Hennerich
4d5f4ed3fb
Blackfin arch: extract gpio number from PIN function
...
Singed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
Mike Frysinger
168f1212c0
Blackfin arch: rewrite our reboot code in C
...
rewrite our reboot code in C rather than assembly to be like
other architectures and to allow board maintainers to define
custom behavior
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
17 years ago
Mike Frysinger
27d875f2c1
Blackfin arch: vmlinux.lds.S, break up our .init into separate sections
...
Break up our .init into separate section like all other ports do and
so that we dont mix text and data (causes disassembly headaches as
pointed out by Robin)
Cc: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
Bryan Wu
d8350e704e
Blackfin arch: Board defconfig updating
...
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
17 years ago
Mike Frysinger
fbeb7370b6
Blackfin arch: parse input sections properly when using -ffunction-sections/-fdata-sections
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
18 years ago
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>
18 years ago
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>
18 years ago
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>
18 years ago
Jie Zhang
2615639758
Blackfin arch: Allow ptrace access the fixed code.
...
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
18 years ago
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>
18 years ago
Mike Frysinger
2d8f161fe3
Blackfin arch: update BOOT_LOAD
...
update BOOT_LOAD help to reflect current state of the first 4k of
our address space as well as add a memory range option to prevent
invalid values
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
18 years ago
Mike Frysinger
b4055d733d
Blackfin arch: remove spurious KERN_EMERG log level in output
...
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
18 years ago
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>
17 years ago
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>
18 years ago
Michael Hennerich
a924db7c00
Blackfin arch: Add option to priorize DMA over Core
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
Michael Hennerich
7735cefc45
Blackfin arch: Add support for the M25P16 SPI FLash
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
17 years ago
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>
18 years ago
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>
18 years ago
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>
17 years ago
Michael Hennerich
8c61362377
Blackfin arch: Some cosmetics based on LKML feedback from Joe Perches
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
18 years ago
Michael Hennerich
314c98d589
Blackfin arch: add missing gpio error handling to make sure we roll back requests in case one fails
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
18 years ago
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>
18 years ago
Bryan Wu
214cccbbb2
Blackfin arch: bug fixing, add missing BF533_FAMILY GPIO_PFx definition
...
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
Michael Hennerich
31430ba58a
Blackfin arch: Add PORT_J.High (needed for BF548-EZkit Touchscreen interrupts) - remove PORT_C.H
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
Michael Hennerich
6782ea9ae8
Blackfin arch: Add label to call new GPIO API
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
17 years ago
Michael Hennerich
b2d1583f8e
Blackfin arch: Advertise GENERIC_GPIO and remove duplicated GENERIC_CALIBRATE_DELAY
...
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
18 years ago
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>
18 years ago
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>
18 years ago
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>
18 years ago