summaryrefslogtreecommitdiff
path: root/include/asm-blackfin
Commit message (Collapse)AuthorAgeLines
* 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>
* Blackfin: unify DSPID/DBGSTAT MMR definitionsMike Frysinger2008-10-23-64/+8
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD2008-10-18-8/+8
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Allow console input to be disabledMark Jackson2008-09-06-0/+1
| | | | | | | | | Added new CONFIG_DISABLE_CONSOLE define and GD_FLG_DISABLE_CONSOLE. When CONFIG_DISABLE_CONSOLE is defined, setting GD_FLG_DISABLE_CONSOLE disables all console input and output. Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
* Change bd/gd memsize/ram_size to be phys_size_t.Becky Bruce2008-06-12-2/+2
| | | | | | | | | | Currently, both are defined as an unsigned long, but should be phys_size_t. This should result in no real change, since phys_size_t is currently an unsigned long for all the default configs. Also add print_lnum to cmd_bdinfo to deal with the potentially wider memsize. Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
* Merge branch 'lwmon5' of /home/wd/git/u-boot/projectsWolfgang Denk2008-05-21-0/+2
|\
| * POST: replace the LOGBUFF_INITIALIZED flag in gd->post_log_word (1 << 31) ↵Yuri Tikhonov2008-05-20-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | with the GD_FLG_LOGINIT flag in gd->flags. This way we become able to utilize the full post_log_word for POST activities (overwise, POST ECC, which has 0x8000 ID, could be erroneously treated as started in post_output_backlog() even if there was actually no POST ECC run (because of OCM POST failure, for example). Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
| * POST: add POST_STOP flagYuri Tikhonov2008-05-20-0/+1
| | | | | | | | | | | | | | | | Don't run futher tests in case of a test fails that is marked as POST_STOP. Signed-off-by: Ilya Yanok <yanok@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>