summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Blackfin: respect the L1 kconfig optimization in the MPU codeBarry Song2010-03-091-6/+12
| | | | | | | Restore support for CONFIG_EXCPT_IRQ_SYSC_L1 in the MPU CPLB manager. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp/bf527-ezkit: move ASoC SPORT resources to boards fileBarry Song2010-03-092-0/+49
| | | | | | | Rather than declaring pin resources in the drivers, do it in the board. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf548-ezkit: add ASoC CPU DAI resourcesBarry Song2010-03-091-0/+36
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: increase NR_IRQS beyond NR on-chip IRQsMichael Hennerich2010-03-099-8/+18
| | | | | | | This makes room for off-chip IRQ controllers. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fill out the signal si_addr when sending a SIGBUS/SIGSEGVBarry Song2010-03-091-3/+11
| | | | | | | | | Some userspace applications use this member in diagnosing crashes. It also makes some LTP tests pass (i.e. the Blackfin arch behaves more like everyone else). Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp: move ADF7021 MAC storage into platform resourcesMike Frysinger2010-03-091-0/+8
| | | | | | | Just generate a random MAC on the demo board since the ADF702x lacks dedicated storage for such things. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add support for irqflags tracingYi Li2010-03-093-0/+34
| | | | | Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: tcm-bf518: new board portHarald Krapfenbauer2010-03-094-0/+2134
| | | | | Signed-off-by: Harald Krapfenbauer <harald.krapfenbauer@bluetechnix.at> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp: declare parallel flash as ROM with XIP kernelBarry Song2010-03-091-0/+3
| | | | | | | | | When the kernel is executing out of parallel flash (XIP), we can't have the flash go into an erase/programming cycle, otherwise the instruction fetching steps fail and everything crashes. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf527-ezkit/bf537-stamp: add example SSM2602 I2C resourcesCliff Cai2010-03-092-0/+10
| | | | | Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix up mm locking in address dumpingGraf Yang2010-03-091-1/+13
| | | | | | | | | | The locking code in the address dumper needs to grab the mm's mmap_sem so that other CPUs do not get an inconsistent view. On UP systems this really wasn't a problem, but it is easy to trigger a race on SMP systems when another CPU removes a mapping. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf533-{ezkit,stamp}: add sound platform devicesBarry Song2010-03-092-0/+72
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: kgdb: mark all local funcs/structs staticMike Frysinger2010-03-091-5/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix decoding of opcodes 41-47 in decode_instruction()Roel Kluin2010-03-091-1/+1
| | | | | | | This condition allowed only decoding of opcode 0x0040 Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: initial XIP supportBarry Song2010-03-0913-29/+160
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix initial stack pointer setupBarry Song2010-03-091-8/+3
| | | | | | | | | | | | During very early init, the stack pointer is given a slightly incorrect value (&init_thread_union). The value is later adjusted to the right one during early init (&init_thread_union + THREAD_SIZE), but it is used a few times in between. While the few functions used don't actually put things onto the stack (due to optimization), it's best if we simply use the right value from the start. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix the section name of init_thread_unionBarry Song2010-03-091-1/+1
| | | | | | | | Use the common attribute rather than setting the section name directly. The common linker script defines expect the newer naming. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: replace harcoded define with proper THREAD_SIZE macroBarry Song2010-03-091-1/+1
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix relocation errors with large initramfs imagesJie Zhang2010-03-091-5/+8
| | | | | | | | | | | | Since we are now discarding .exit.text at runtime instead of link time, we need to place all .text sections ahead of the .data sections. Otherwise, a really large attached initramfs may cause link errors as it pushes the PC relative relocations behind the limits of the Blackfin ISA (~16meg). The instructions in the .exit.text are unable to call back into the .text sections leading to a link failure. Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: try to simplify interrupt ifdef uglinessYi Li2010-03-091-8/+13
| | | | | Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: simplify SMP handling in SRAM codeYi Li2010-03-091-18/+9
| | | | | | | | There is no need to use {get,put}_cpu() when we already have a spinlock to protect against multiple processors running simultaneously. Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: SMP: add PM/CPU hotplug supportGraf Yang2010-03-097-13/+138
| | | | | Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: SMP: make core timers per-cpu clock events for HRTYi Li2010-03-097-123/+146
| | | | | | | | | | | | | | | SMP systems require per-cpu local clock event devices in order to enable HRT support. One a BF561, we can use local core timer for this purpose. Originally, there was one global core-timer clock event device set up for core A. To accomplish this feat, we need to split the gptimer0/core timer logic so that each is a standalone clock event. There is no requirement that we only have one clock event source anyways. Once we have this, we just define per-cpu clock event devices for each local core timer. Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: drop cpu_callin_map on SMP systemsGraf Yang2010-03-091-6/+3
| | | | | | | Common API already provides functions for managing online CPUs. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: SMP: add support for IRQ affinitySonic Zhang2010-03-091-4/+34
| | | | | | | | Now that the Blackfin IRQ controller supports this, drivers get the normal functionality of controlling which CPU to bind IRQs to. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: unify MMR helpersMike Frysinger2010-03-091-44/+12
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: isram: add unlikely to sanity checksMike Frysinger2010-03-091-3/+3
| | | | | | | Don't want the compiler assuming the rare sanity checks are the norm and optimize for those paths. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update defconfigsSonic Zhang2010-03-0912-1017/+1608
| | | | | | Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add optimized version of Hamming Weight functionsMichael Hennerich2010-03-092-22/+55
| | | | | Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf561-acvilon: save the smsc911x mac addressValentin Yakovenkov2010-03-091-1/+1
| | | | | Signed-off-by: Valentin Yakovenkov <yakovenkov@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp: unify duplicated ADP5588 headersSonic Zhang2010-03-091-3/+2
| | | | | Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp: change CONFIG_USB_SL811_BFIN_IRQ to IRQ_PF4Mike Frysinger2010-03-091-2/+2
| | | | | | | The Kconfig option was never mainlined, so replace the define with the actual pin that it is hooked up to by default. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: drop unused SL811 platform resources from bf527/pnav boardsMike Frysinger2010-03-093-148/+0
| | | | | | | These platforms don't hook up to this USB controller, so no point in declaring resources for it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: BF51x: fix L1 Instruction SRAM sizeMichael Hennerich2010-03-091-1/+1
| | | | | | | The BF51x's Instruction SRAM is 32kB, not 48kB. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update AD7879 resources to match the new gpiolib driver supportMichael Hennerich2010-03-094-8/+7
| | | | | Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: gpio: use shorter nameMichael Hennerich2010-03-091-1/+1
| | | | | | | | | The gpio label size is 16 char, but the current code uses a longer name resulting in chopped display. So use a shorter name. Reported-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: pull in asm/bfin_can.h for interrupt masksMichael Hennerich2010-03-091-0/+1
| | | | | Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: dma-mapping: fix thinko in constant optimizationSonic Zhang2010-03-092-7/+10
| | | | | | | | Make sure the non-constant version of the dma_sync functions actually complete instead of recursively calling itself forever. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: drop duplicate HOTPLUG Kconfig optionMike Frysinger2010-03-091-18/+0
| | | | | | The option already exists for everyone in init/Kconfig. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: merge common CAN defines into one headersMike Frysinger2010-03-091-0/+725
| | | | | | | Rather than copy and paste the MMR defines and register layout, consolidate everything in one place. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: wire up the various memory related syscallsMike Frysinger2010-03-091-9/+9
| | | | | | | These all just go to the stub syscall at the moment, so this is largely future proofing. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: SMP: enable HAVE_LEGACY_PER_CPU_AREAGraf Yang2010-03-091-0/+4
| | | | | | | | The current Blackfin SMP code relies on the legacy cpu area code, so select it until we port things to the newer code. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: MPU: handle caches for reserved memorySonic Zhang2010-03-091-1/+5
| | | | | | | | | We weren't handling the user-specified cache behavior for the reserved memory regions (via mem=/max_mem=). The no-MPU code already takes care of this, so add support to the MPU code as well. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: extend bfin-lq035q1-fb resources to include PPI modeMichael Hennerich2010-03-095-11/+27
| | | | | | | | This lets us support the new BF527-EZKIT V2.1 via platform resources tweaks only. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf527-ezkit: add support for V2.1 boardsMichael Hennerich2010-03-095-23/+1951
| | | | | Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix MPU page permission masks overflow when dealing with async memoryBarry Song2010-03-093-11/+38
| | | | | | | | | | | | | Attempting to use the MPU while doing XIP out of parallel flash hooked up to the async memory bus would often result in random crashes as the MPU slowly corrupted memory. The fallout here is that the async banks gain MPU protection from user space too. So any accesses have to go through the mmap() interface rather than just using hardcoded pointers. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: flush caches on SMP when one core calls another via IPIYi Li2010-03-091-2/+24
| | | | | | | | | Sometimes a SMP system will randomly panic at boot. This is due to caches being out of sync when one core tries to signal the other. So when one core calls another via IPI, flush the data caches. Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bfin_sport: unify & standardize SPORT masksMike Frysinger2010-03-092-97/+132
| | | | | | | Rather than have every SPORT driver copy & paste things, declare the C structure and MMR bitmasks in one place for everyone to use. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add UART/SPORT early platform resourcesSonic Zhang2010-03-0922-0/+538
| | | | | | | | This lets people easily select the UART/SPORT consoles for early printk while leveraging the pins declared in the boards file. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: allow boards to register early devicesSonic Zhang2010-03-091-0/+7
| | | | | Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
OpenPOWER on IntegriCloud