summaryrefslogtreecommitdiffstats
path: root/arch (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Blackfin: bf537-stamp/bf548-ezkit: update ADXL34x resourcesMichael Hennerich2009-12-152-8/+23
| | | | | Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: BF51x: unify def/cdef headersMike Frysinger2009-12-156-1174/+16
| | | | | | Whole lot of duplicated code here just went bye bye. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: BF52x: unify def/cdef headersMike Frysinger2009-12-154-1117/+8
| | | | | | Whole lot of duplicated code here just went bye bye. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: BF537: push down error masks to avoid namespace pollutionMike Frysinger2009-12-152-14/+10
| | | | | | | | | | The error masks are only needed in the BF537 demux error code, so instead of needing all the short peripheral defines in global space, push these masks into the one file where they are actually needed. This fixes a bunch of define collisions with common code (can/serial/etc...). Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Barry Song <barry.song@analog.com>
* Blackfin: SMP: don't start up core b until its state has been completely onlinedYi Li2009-12-152-18/+15
| | | | | | | | | | | | | | | | | | | | | | | | | When testing PREEMPT_RT kernel on BF561-EZKit, the kernel blocks while booting. When the kernel initializes the ethernet driver, it sleeps and never wakes up. The issue happens when the kernel waits for a timer for Core B to timeout (the timers are per-cpu based: static DEFINE_PER_CPU(struct tvec_base *, tvec_bases) = &boot_tvec_bases). However, the ksoftirqd thread for Core B (note, the ksoftirqd thread is also per-cpu based) cannot work properly, and the timers for Core B never times out. When ksoftirqd() for the first time runs on core B, it is possible core A is still initializing core B (see smp_init() -> cpu_up() -> __cpu_up()). So the "cpu_is_offline()" check may return true and ksoftirqd moves to "wait_to_die". So delay the core b start up until the per-cpu timers have been set up fully. Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: convert to asm-generic pci headersBarry Song2009-12-151-128/+2
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: io.h: fix random busted whitespaceMike Frysinger2009-12-151-44/+51
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: dma-mapping.h: flesh out missing DMA mapping functionsBarry Song2009-12-153-64/+116
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: workaround anomaly 05000310Barry Song2009-12-151-0/+30
| | | | | | | | | | | | | While fetching instructions at the boundary of L1 instruction SRAM, a false External Memory Addressing Error might be triggered. We should ignore this and continue on our way to avoid random crashes. Because hardware errors are not exact in the Blackfin architecture, we need to catch a few more common cases when the code flow changes and the signal is finally delivered. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: drop ptrace() write support for fixed code/bootromMike Frysinger2009-12-151-13/+0
| | | | | | | | These regions are either read-only and won't work anyways (bootrom), or we don't want people screwing with them because they're shared between all processes (fixed code). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: MPU: support XIP in async flash memoryBarry Song2009-12-151-4/+9
| | | | | | | | The NOMPU code already supported executing in the async banks, so this brings the MPU code in line. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: drop 4KB reserve at end of memoryBarry Song2009-12-151-5/+0
| | | | | | | | | | | | | The point of this small chunk was to avoid anomaly 05000310. This never really seemed to do what it was intended though -- no valid CPLBs exist over the reserved memory, and there is often memory before it anyways (due to the uClinux MTD and/or reserved DMA region). Plus, it doesn't address the L1 instruction case. So drop this chunk as it wastes memory and is affront to humanity. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: support smaller uncached DMA chunks for memory constrained systemsBarry Song2009-12-153-7/+25
| | | | | | | | | When working with 8 meg systems, forcing a 1 meg DMA chunk heavily cuts into the available resources. So support smaller chunks to better cover needs for these systems. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: push BF5Xx configs down into mach-specific KconfigsMike Frysinger2009-12-155-37/+37
| | | | | | | | While we're moving the BF54x code, have the BF54xM variants select the normal BF54x values so that the rest of the Kconfig tree doesn't need to check the BF54xM variant everytime it wants to check the BF54x. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: finish_atomic_sections: optimize the RTS stepMike Frysinger2009-12-151-7/+11
| | | | | | | No point in returning to userspace just to have it immediately perform the RTS step. We have to update the PC anyways, so do the RTS too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: kgdb: punt dead codeSonic Zhang2009-12-152-20/+0
| | | | | | | None of these vars/funcs were being used. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: reject NULL callback in set_dma_callback()Mike Frysinger2009-12-151-11/+10
| | | | | | It makes no sense to call this function with a NULL callback. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: punt dead/unused flash mem_init settingsMike Frysinger2009-12-151-153/+0
| | | | | | | | I don't think these defines were ever used. At any rate, we have common bit defines for all parts as well as a Kconfig option to declare the EBIU async timings, and no one has really complained about this so far. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: gptimers: use unsigned timer/group idsMike Frysinger2009-12-152-32/+32
| | | | | | | | Since we always use these ids as unsigned values, and we have some assert code to make sure they don't exceed a limit, avoid signed issues. Reported-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: don't walk VMAs when oopsingRobin Getz2009-12-151-0/+9
| | | | | | | | | | If we're double faulting, then we have to assume the VMAs are not safe as broken pointers here will prevent full trace output for the double fault. Shouldn't be a big problem though as rarely is a double fault caused by code in userspace. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: force BFD target when linking modulesMike Frysinger2009-12-151-0/+1
| | | | | | | This allows us to use any Blackfin toolchain to create kernel modules (such as the FDPIC bfin-linux-uclibc toolchain). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: comment the FDPIC PTRACE definesMike Frysinger2009-12-151-3/+3
| | | | | | This matches similar documentation for the FRV FDPIC code. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin/ipipe: update version stampPhilippe Gerum2009-12-151-2/+2
| | | | | | Signed-off-by: Philippe Gerum <rpm@xenomai.org> Signed-off-by: Li Yi <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin/ipipe: introduce support for CONFIG_MPUPhilippe Gerum2009-12-151-2/+31
| | | | | | Signed-off-by: Philippe Gerum <rpm@xenomai.org> Signed-off-by: Li Yi <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin/ipipe: fix forward ref to barrier()Philippe Gerum2009-12-151-6/+7
| | | | | | Signed-off-by: Philippe Gerum <rpm@xenomai.org> Signed-off-by: Li Yi <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin/ipipe: prepare status bitops for SMP supportPhilippe Gerum2009-12-153-27/+76
| | | | | | Signed-off-by: Philippe Gerum <rpm@xenomai.org> Signed-off-by: Li Yi <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add support for the Acvilon BF561 boardValentin Yakovenkov2009-12-154-0/+2202
| | | | | Signed-off-by: Valentin Yakovenkov <yakovenkov@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add an uncompressed vmImage targetMike Frysinger2009-12-152-2/+7
| | | | | | | | This is useful for quick tests where networks are faster than compression, and/or the compression code is broken. Reported-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: don't give CPU its own line in traps outputMike Frysinger2009-12-151-3/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: announce current cpu rev when bootingRobin Getz2009-12-151-1/+1
| | | | | | | | User reports rarely include full information, so include this important tidbit up front. It's also good to know at a glance in general. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: unify DMA masksMike Frysinger2009-12-158-301/+50
| | | | | | | Every Blackfin variant has the same DMA bit masks, so avoid duplicating them over and over in each mach header. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix typo in isp1760 platform nameMichael Hennerich2009-12-155-5/+5
| | | | | | | | The driver changed from "isp1760-hcd" to "isp1760", so update resources to match. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: unify duplicated power masksMike Frysinger2009-12-1513-459/+104
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: pull in asm/dpmc.h for power definesMike Frysinger2009-12-154-1/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: H8606/ip0x: drop redundant SPI ctl_reg settingsMike Frysinger2009-12-152-16/+0
| | | | | | | No need to set MSTR in .ctl_reg as the Blackfin SPI bus driver does this already for all parts. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: BF54x: punt useless "masks" for count/address MMRsMike Frysinger2009-12-151-104/+0
| | | | | | | There's no point in having mask defines when the entire MMR value is a count or address. i.e. applying a mask of -1 is pointless. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: punt unused MXVR masksMike Frysinger2009-12-152-1957/+0
| | | | | | | There are no MXVR device drivers, and if someday there is, we can put these in a dedicated header rather than polluting the global namespace. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: punt OTP MMRsMike Frysinger2009-12-156-176/+0
| | | | | | | People should not be accessing OTP MMRs directly. They should instead go through the Blackfin ROM helper functions. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: BF51x: dump non-existent SPI/NFC MMRsMike Frysinger2009-12-151-52/+0
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: scrub unused watchdog mmr masksMike Frysinger2009-12-154-109/+0
| | | | | | | The watchdog code doesn't need these, and the other parts had these punted, so keep the global namespace clean. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: scrub unused RTC masksMike Frysinger2009-12-154-147/+0
| | | | | | | The RTC driver code doesn't need these, and the other parts had these punted, so keep the global namespace clean. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: unify BF547/8/9 headersMike Frysinger2009-12-154-5098/+8
| | | | | | | No point in duplicating entire lists when we can simply tail into other parts for most of the MMRs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix some BF547 header copy & paste typosMike Frysinger2009-12-152-11/+11
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: rename BF542 host dma definesMike Frysinger2009-12-151-2/+2
| | | | | | | All the other BF54x parts had these defines renamed to avoid collision, but it looks the BF542 was missed somehow. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: coreb: switched to unlocked_ioctlMike Frysinger2009-12-151-4/+4
| | | | | | We don't need the BKL and now people will stop looking at this. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: convert DMA mutex to an atomic and drop redundant codeMike Frysinger2009-12-152-35/+13
| | | | | | | | | | | The DMA channel status field was encoding redundant info wrt the DMA MMR config register, and it was doing an incomplete job of checking all DMA channels (some drivers write directly to the config register). So drop the tristate field in favor of a binary atomic field. This simplifies the code in general, removes the implicit need for sleeping, and forces the suspend code to handle all channels properly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update bfin_rotary definesMichael Hennerich2009-12-152-4/+4
| | | | | | | | The driver was moved during the merge process, so update the defines to match the new location. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: push down asm/ includes and out of bfin-global.hMike Frysinger2009-12-154-6/+4
| | | | | | | Avoid including unnecessary headers all the time as well as circular includes with core requirements. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: pull in firmware KconfigMike Frysinger2009-12-151-0/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: BF51x/BF52x: fill out bfin_clear_PPI_STATUS()Mike Frysinger2009-12-152-0/+2
| | | | | | | All the arches define a helper macro to make things easy for driver code. Reported-by: Frank Van Hooft <frank@frankvh.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>