summaryrefslogtreecommitdiff
path: root/include/asm-blackfin
Commit message (Collapse)AuthorAgeLines
* Generic udelay() with watchdog supportIngo van Lil2009-12-05-1/+1
| | | | | | | | | | | | | According to the PPC reference implementation the udelay() function is responsible for resetting the watchdog timer as frequently as needed. Most other architectures do not meet that requirement, so long-running operations might result in a watchdog reset. This patch adds a generic udelay() function which takes care of resetting the watchdog before calling an architecture-specific __udelay(). Signed-off-by: Ingo van Lil <inguin@gmx.de>
* Blackfin: Remove relocation fixupsMike Frysinger2009-10-13-1/+3
| | | | | | Blackfin pieces like commit 0630535e2d062dd73c1ceca5c6125c86d1127a49. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Correct ffs/fls regression for PowerPC etcSimon Kagstrom2009-09-17-9/+1
| | | | | | | | | | | | | | | Commits 02f99901ed1c9d828e3ea117f94ce2264bf8389e 52d61227b66d4099b39c8309ab37cb67ee09a405 introduced a regression where platform-specific ffs/fls implementations were defined away. This patch corrects that by using PLATFORM_xxx instead of the name itself. Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net> Acked-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Stefan Roese <sr@denx.de>
* Move __set/clear_bit from ubifs.h to bitops.hSimon Kagstrom2009-09-15-0/+1
| | | | | | | | | __set_bit and __clear_bit are defined in ubifs.h as well as in asm/include/bitops.h for some architectures. This patch moves the generic implementation to include/linux/bitops.h and uses that unless it's defined by the architecture. Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
* Blackfin: use scratch pad for exception stackMike Frysinger2009-09-02-0/+4
| | | | | | | | | If the memory layout pushes the stack out of the default DCPLB coverage, the exception handler may trigger a double fault by trying to push onto the uncovered stack. So handle the exception stack similar to the kernel by using the top of the scratch pad SRAM. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: increase default console sizeMike Frysinger2009-09-02-5/+1
| | | | | | | The default console size indirectly applies to length of env vars, so a smaller length makes it hard to pass longer command lines to kernels. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: change global data register from P5 to P3Robin Getz2009-09-02-1/+1
| | | | | | | | | | | Since the Blackfin ABI favors higher scratch registers by default, use the last scratch register (P3) for global data rather than the first (P5). This allows the compiler's register allocator to use higher number scratch P registers, which in turn better matches the Blackfin instruction set, which reduces the size of U-Boot by more than 1024 bytes... Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add os log functionsMike Frysinger2009-07-18-0/+3
| | | | | | | | Part of the mini Blackfin ABI with operating systems is that they can use 0x4f0-0x4f8 to pass log buffers to/from bootloaders. So add support to U-Boot for reading the log buffer. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* asm-generic: Consolidate errno.h to asm-generic/errno.hMichal Simek2009-07-09-156/+1
| | | | | | | | | | | | | | | This patch use blackfin errno.h implementation which correspond Linux kernel one. MIPS implemetation is different that's why I keep it. I removed ppc_error_no.h from Marvell boards which was the same too. I have got ack from ppc40x, blackfin, arm, coldfire and avr custodians. Acked-by: Stefan Roese <sr@denx.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* Blackfin: convert specific pre/post config headers to common methodMike Frysinger2009-06-14-168/+144
| | | | | | | | | | The Blackfin port was using asm/blackfin-config-{pre,post}.h to setup common Blackfin board defines. The common method now is to use config.h, so convert blackfin-config-post.h to that. Rename the still Blackfin specific blackfin-config-pre.h to config-pre.h so the naming conventions at least line up. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: new spibootldr commandMike Frysinger2009-06-14-0/+27
| | | | | | | Newer Blackfin parts can an on-chip ROM that can boot LDRs over SPI flashes, so add a new 'spibootldr' command to take advantage of it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix if() logic in bootrom evt1 checkMike Frysinger2009-05-29-1/+1
| | | | | | | A missing set of parenthesis caused the silicon revision to apply only to the BF533 and not the BF531/BF532 variants. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix booting with older bootroms (no EVT1)Mike Frysinger2009-05-06-0/+8
| | | | | | | | | | | When dropping jump block support, the assumption was that all bootroms supported entry point redirection via the EVT1 register. Unfortunately, this turned out to be incorrect for the oldest Blackfin parts (BF533-0.2 and older and BF561). No one really noticed earlier because these parts usually are booted by bypassing the bootrom entirely, and older BF533 parts are not supported at all (too many anomalies). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update anomaly sheetsMike Frysinger2009-04-06-69/+150
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: force all boards to HZ of 1000Mike Frysinger2009-04-02-2/+6
| | | | | | | Since the Blackfin timer code requires HZ to be 1000, barf on any board that tries to use a different value. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp: rewrite MAC-in-flash handlingMike Frysinger2009-03-24-0/+28
| | | | | | | Use the common net eth functions to setup the env/global data with the MAC address, and properly handle the case where CONFIG_SYS_NO_FLASH is defined. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix SIC_RVECT definition: it is 16bits, not 32bitsMike Frysinger2009-03-23-6/+6
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: drop SPORT_TX read helper macrosMike Frysinger2009-03-23-26/+0
| | | | | | | The SPORT_TX registers cannot be read (the hardware will trigger an error), so drop the read helper macros. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: unify duplicate CPU port definitionsMike Frysinger2009-03-23-320/+314
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: drop now-unused CONFIG_SYS_BFIN_CMD_XXXMike Frysinger2009-03-23-6/+0
| | | | | | | With the new CONFIG_XXX system and CONFIG_CMD_XXX handling, these defines are no longer used/needed. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update lockbox api according to latest documentationMike Frysinger2009-03-23-35/+35
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix SWRST/SYSCR register sizesMike Frysinger2009-03-23-9/+9
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update anomaly listsMike Frysinger2009-03-23-11/+39
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* remove bi_enet*addr from global data for all archesMike Frysinger2009-03-20-1/+0
| | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com> CC: Daniel Hellstrom <daniel@gaisler.com> CC: Michal Simek <monstr@seznam.cz> CC: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> CC: Scott McNutt <smcnutt@psyent.com> CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Add an architecture specific config.h for common definesKumar Gala2009-02-10-0/+24
| | | | | | | | | | We have common defines that we duplicate in various ways. Having an arch specific config.h gives us a common location for those defines. Eventually we should be able to replace this when we have proper Kconfig support. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* Blackfin: move default boot SPI CS to common codeMike Frysinger2009-02-05-0/+9
| | | | | | | Move the default SPI CS that we boot from into common code so that it can be used in other SPI drivers and environment settings. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update anomaly listsMike Frysinger2009-02-03-84/+213
| | | | | | Update the anomaly lists to match latest anomaly sheets. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add driver for on-chip MMC/SD controllerCliff Cai2009-02-02-0/+123
| | | | | | | This is a port of the Linux Blackfin on-chip SDH driver to U-Boot. Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: output booting source when bootingMike Frysinger2009-02-02-0/+22
| | | | | | | Knowing the booting source of the part is useful, especially when the part can switch dynamically between sources. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: set default CONFIG_ENV_SPI_CS based on bootromMike Frysinger2009-02-02-0/+5
| | | | | | | Set the default CONFIG_ENV_SPI_CS value to match the SPI CS that is used by the Blackfin on-chip bootrom to boot out of SPI flash. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update asm-blackfin/posix_types.h to latest Linux versionMike Frysinger2009-02-02-11/+9
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add port I bitsMike Frysinger2009-02-02-1/+19
| | | | | | Some people need to access port I, so make sure the pins are defined. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add driver for on-chip ATAPI controllerSonic Zhang2009-02-02-0/+220
| | | | | | | This is a port of the Linux Blackfin on-chip ATAPI driver to U-Boot. Signed-off-by: Sonic Zhang <Sonic.Zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix up EBIU definesMike Frysinger2009-02-02-2/+2
| | | | | | The EBIU defines for EBSZ 256/512 were incorrect. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: only flag L1 instruction for DMA memcpyMike Frysinger2009-02-02-10/+4
| | | | | | | | | The performance difference from doing an 8 bit DMA memcpy vs an optimized core memcpy can be pretty big when you add in the overhead of setting up the MDMA registers, cache flushes, etc... So only use dma_memcpy() when we actually require it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: rewrite cache handling functionsMike Frysinger2009-02-02-0/+4
| | | | | | | Take the cache flush functions from the kernel as they use hardware loops in order to get optimal performance. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: cache core/system clock valuesMike Frysinger2009-02-02-0/+2
| | | | | | | | Calculating the clocks requires a bit of calls to gcc math functions, so cache the values after the first run since they'll most likely never change once U-Boot is up and running. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update on-chip ROM APIMike Frysinger2009-01-28-40/+44
| | | | | | | This brings the API for the on-chip ROM in line with the toolchain and hardware documentation. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix dcache handling when doing dma memcpy'sMike Frysinger2009-01-28-1/+1
| | | | | | | | Our dcache invalidate function doesn't just invalidate, it also flushes. So rename the function accordingly and fix the dma_memcpy() function so it doesn't inadvertently corrupt the data destination. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: set more sane default board config valuesMike Frysinger2009-01-28-6/+71
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: convert CMD_LINE_ADDR to CONFIG_LINUX_CMDLINE_{ADDR,SIZE}Mike Frysinger2009-01-28-2/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add bit defines for DDR partsMike Frysinger2009-01-28-1/+20
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add defines to describe active bootrom behaviorMike Frysinger2009-01-28-0/+11
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Introduce virt_to_phys()Kumar Gala2008-12-15-0/+5
| | | | | | | | | | | | virt_to_phys() returns the physical address given a virtual. In most cases this will be just the input value as the vast majority of systems run in a 1:1 mode. However in systems that are not running this way it should report the physical address or ~0 if no mapping exists for the given virtual address. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* Blackfin: fix SWRST register definitionMike Frysinger2008-10-23-9/+9
| | | | | | The SWRST register is a 16bit, not 32bit, register. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: punt old unused mem_init.h headerMike Frysinger2008-10-23-321/+0
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: delete unused page_descriptor_table_size defineMike Frysinger2008-10-23-5/+0
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix typo in boot mode comment and add NAND defineMike Frysinger2008-10-23-1/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix port mux defines for BF54xBen Maan2008-10-23-32/+32
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update anomaly listsMike Frysinger2008-10-23-25/+169
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>