aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-01-28Blackfin: implement real write support for OTPMike Frysinger1-42/+115
Now that real documentation has been released for the OTP interface and the on-chip ROM wrt writing/timings, implement support for reading/writing as well as dumping/locking. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: update on-chip ROM APIMike Frysinger2-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>
2009-01-28Blackfin: allow serial console to be disabledMike Frysinger2-0/+8
Some devices have no UART device pulled out, so allow people to disable the driver completely in favor of other methods (like JTAG-console). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: support console-over-JTAGMike Frysinger4-4/+136
The Blackfin JTAG has the ability to pass data via a back-channel without halting the processor. Utilize that channel to emulate a console. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: handle new anomalies with resetMike Frysinger1-5/+15
Workaround fun new anomalies related to software reset of the processor. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: pass RETX to LinuxMike Frysinger2-1/+14
Make sure we save the value of RETX at power on and then pass it on to the kernel so that it can nicely debug a "double-fault-caused-a-reset" crash. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: clarify relocation comment during initMike Frysinger1-3/+7
People often ask questions about the init process and when things go from flash to relocated base, so clarify the comments a bit. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: just set SP register directly during initMike Frysinger1-3/+2
No need to set the SP register indirectly to the configured value when it can be set directly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: add portmuxing for UARTs on the BF51xMike Frysinger1-1/+10
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: respect CONFIG_CLKIN_HALFMike Frysinger1-1/+1
As pointed out by Ivan Koryakovskiy, the initialization code was not actually respecting the CONFIG_CLKIN_HALF option when configuring the PLL_CTL register. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: use common memcpy routine during initMike Frysinger1-21/+11
Rather than using a local custom memcpy function, just call the existing optimized Blackfin version. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: set default boot SPI CS for BF538/BF539Mike Frysinger1-2/+2
The BF538/BF539 use CS2 for booting off of rather than CS1 like newer Blackfin parts. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: punt unused BF533-STAMP definitionsMike Frysinger1-3/+0
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: resurrect BF533-STAMP video splash driverMike Frysinger3-4/+197
This video driver used to live in the Blackfin cpu directory, but it was lost during the unification process. This brings it back. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: tighten up post memory coding styleMike Frysinger1-12/+11
No functional changes here; just cleanup code style a bit. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: bf537-stamp nand: fix more style errors in previous commitMike Frysinger1-3/+3
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: drop dead/wrong debug code in initdram()Mike Frysinger4-49/+4
The DEBUG code in initdram() is quite old and was never really useful, so just drop it altogether. Common Blackfin debug code does a better job. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: bf533-ezkit: shuffle flash defines a littleMike Frysinger3-9/+8
Some of the flash defines weren't in the correct location and caused build problems in some configurations, so let's move types and defines to better local locations. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: overhaul i2c driverMike Frysinger7-470/+293
The current Blackfin i2c driver does not work properly with certain devices due to it breaking up transfers incorrectly. This is a rewrite of the driver and relocates it to the newer place in the source tree. Also remove duplicated I2C speed defines in Blackfin board configs and disable I2C slave address usage since it isn't implemented. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: respect CONFIG_SYS_MONITOR_LEN for default flash protectionMike Frysinger1-3/+3
Respect the CONFIG_SYS_MONITOR_LEN define rather than assuming a size of 128kB when setting up the default flash protection region for U-Boot itself. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: respect/check CONFIG_SYS_GBL_DATA_SIZEMike Frysinger1-1/+5
When setting up the global data, rather than relying on sizeof(), use the common CONFIG_SYS_GBL_DATA_SIZE define. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: implement general support for CONFIG_STATUS_LEDMike Frysinger2-0/+13
Here are the Blackfin-specific and board-independent pieces for status leds. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: do not init i2c in Blackfin board initMike Frysinger1-15/+0
The common code takes care of calling i2c_init() when needed, so no point in us doing it as well. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: bfin_mac: update port muxingMike Frysinger1-12/+35
Adds support more Blackfin parts and fixes broken muxing for older ones. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: fix dcache handling when doing dma memcpy'sMike Frysinger3-7/+10
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>
2009-01-28Blackfin: dont generate ldrs with --forceMike Frysinger1-1/+1
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: pass --bmode/--initcode when creating ldrMike Frysinger1-0/+4
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: minimize time cache is turned off when replacing cplb entriesMike Frysinger1-22/+9
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: split cache handling out of dma_memcpy()Mike Frysinger1-8/+17
Creating a new dma_memcpy() function that skips all cache checks allows us to use the function in very early init where the cache is not yet setup. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: abort dma_memcpy() for L1 scratchpadMike Frysinger1-1/+12
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: rename bootm.c to boot.cMike Frysinger2-2/+2
The boot file contains functions for more than just "bootm", so rename it accordingly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: set more sane default board config valuesMike Frysinger1-6/+71
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: convert CMD_LINE_ADDR to CONFIG_LINUX_CMDLINE_{ADDR,SIZE}Mike Frysinger2-5/+8
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: add bit defines for DDR partsMike Frysinger1-1/+20
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: add defines to describe active bootrom behaviorMike Frysinger1-0/+11
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 buildKim Phillips1-1/+5
extend commit c70564e6b1bd08f3230182392238907f3531a87e "NAND: Fix cache and memory inconsistency issue" to add the cache.o dependency to the simpc8313 build and fix this: ...Large Page NAND...Configuring for SIMPC8313 board... nand_boot_fsl_elbc.o: In function `nand_boot': nand_spl/board/sheldon/simpc8313/nand_boot_fsl_elbc.c:150: undefined reference to `flush_cache' make[1]: *** [/home/r1aaha/git/u-boot-mpc83xx/nand_spl/u-boot-spl] Error 1 make: *** [nand_spl] Error 2 Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
2009-01-28mpc8536ds.c: include sata.h to for needed function prototypesWolfgang Denk1-0/+1
Signed-off-by: Wolfgang Denk <wd@denx.de>
2009-01-28Command usage cleanupPeter Tyser163-352/+361
Remove command name from all command "usage" fields and update common/command.c to display "name - usage" instead of just "usage". Also remove newlines from command usage fields. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-01-28amcc: Clean up command usage outputPeter Tyser3-9/+9
Update taihu and taishan commands to use cmd_usage() function to display usage messages. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-01-28Standardize command usage messages with cmd_usage()Peter Tyser89-206/+213
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-01-28pcs440ep: Clean up led command definitionPeter Tyser1-1/+1
The pcs440ep's led command usage formatting is non-standard. It was made standard in preparation for larger command usage updates. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-01-28Clean up diufb command definitionsPeter Tyser2-2/+2
The diufb command usage formatting is non-standard. It was made standard in preparation for larger command usage updates. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-01-28Update CHANGELOG, tiny coding style cleanup.Wolfgang Denk2-1/+1228
Signed-off-by: Wolfgang Denk <wd@denx.de>
2009-01-27SATA: do not auto-initialize during bootMike Frysinger4-24/+15
Rather than have the board code initialize SATA automatically during boot, make the user manually run "sata init". This brings the SATA subsystem in line with common U-Boot policy. Rather than having a dedicated weak function "is_sata_supported", people can override sata_initialize() to do their weird board stuff. Then they can call the actual __sata_initialize(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-27part_efi: Fix partition size calculation due to inclusive ending LBA.Richard Retanubun1-1/+3
The ending LBA is inclusive. Hence, the partition size should be ((ending-LBA + 1) - starting-LBA) to get the proper partition size. This is confirmed against the results from the parted tool. (e.g. use parted /dev/sda -s unit S print) and observe the size. Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
2009-01-27jffs2: Fix zero sector_size when not using CONFIG_JFFS2_CMDLINETomasz Figa1-0/+92
This patch fixes a bug (?) introduced after inclusion of the new JFFS2 code. When not using CONFIG_JFFS2_CMDLINE, the code in cmd_jffs2.c doesn't fill in part->sector_size (keeping it as 0), but a correct value is needed by the code in jffs2_1pass.c. This causes all JFFS2 accesses to be in the same place of the memory, what obviously means impossibility to use the JFFS2 partition. This problem is fixed in this patch by including sector size calculation in non-CONFIG_JFFS2_CMDLINE mtdparts_init variant. Signed-off-by: Tomasz Figa <tomasz.figa_at_gmail.com>
2009-01-27saveenv: standardize enablementMike Frysinger1-18/+8
Rather than special casing each environment type for enabling the saveenv command, have them all behave the same. This avoids bitrot as new env sources are added/removed. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-27soft_i2c.c add option for repeated start in i2c_read()Andrew Dyer2-1/+20
This patch adds a #define to optionally change the behaviour of i2c_read() in soft_i2c.c to send an I2C repeated start instead of a stop-start between sending the device address pointer write and reading back the data. The current behaviour is retained as the default. While most devices will work either way, I have a smart battery(*) that requires repeated start, and someone at some point found a device that required a stop-start. (*) http://www.inspired-energy.com/Standard_Products/NL2054/NL2054%20Rev1.0%20Data%20Sheet.pdf Signed-off-by: Andrew Dyer <adyer@righthandtech.com>
2009-01-27{delta,zylonite}/lowlevel_init.S: fix typoWolfgang Denk2-2/+2
Commit 9d803d8c mistakenly changed some constants from 0x300 into 300 - this patch fixes it. Pointed out by Tom Evans <tom@ceos.com.au>, see http://article.gmane.org/gmane.comp.boot-loaders.u-boot/51992 for details. Signed-off-by: Wolfgang Denk <wd@denx.de>
2009-01-27drivers/net/e1000.c: missing terminator for supported devicesStefan Althoefer1-0/+1
Signed-off-by: Stefan Althoefer <stefan.althoefer@web.de>