summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* Add support for building native win32 toolsPeter Tyser2009-04-04-7/+231
| | | | | | | | | | | | | Add support for compiling the host tools in the tools directory using the MinGW toolchain. This produces executables which can be used on standard Windows computers without requiring cygwin. One must specify the MinGW compiler and strip utilities as if they were the host toolchain in order to build win32 executables, eg: make HOSTCC=i586-mingw32msvc-gcc HOSTSTRIP=i586-mingw32msvc-strip tools Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Simplify HOST_CFLAGS/HOST_LDFLAGS generationPeter Tyser2009-04-04-12/+5
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Create generic build rulesPeter Tyser2009-04-04-46/+9
| | | | | | | Create a few generic build rules to replace the current method which has 1 build target for each file Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Use auto-generated object file dependenciesPeter Tyser2009-04-04-12/+12
| | | | | | | Files in the SRCS variable have their dependencies automatically generated so remove duplicate explicit dependencies Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Remove symlinks for remaining source filesPeter Tyser2009-04-04-38/+14
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Dynamically generate libfdt object dependenciesPeter Tyser2009-04-04-7/+6
| | | | | | | Add the libfdt files to the SRCS variable so that they have their dependencies automatically generated Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Remove symlinks for fdt targetsPeter Tyser2009-04-04-32/+8
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Add libfdt/ to the include search pathPeter Tyser2009-04-04-11/+7
| | | | | | | This change makes the process of symlinking libfdt_internal.h unnecessary Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools: Remove unecessary symlinking of zlib.hPeter Tyser2009-04-04-7/+2
| | | | | | | | crc32.c uses the zlib.h header in include/u-boot/zlib.h. The symlink was previously necessary to give U-Boot's version of zlib.h precedence over the host computer's version of zlib.h. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Add tools/ to the include search pathPeter Tyser2009-04-04-6/+1
| | | | | | | This change makes the process of symlinking mkimage.h and fdt_host.h unnecessary Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Compile ncb when CONFIG_NETCONSOLEPeter Tyser2009-04-04-4/+4
| | | | | | Also conditionally add ncb.o to OBJ_FILES list Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make gen_eth_addr dependent upon CONFIG_CMD_NETPeter Tyser2009-04-04-2/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make envcrc dependent upon CONFIG_ENV_IS_EMBEDDEDPeter Tyser2009-04-04-2/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make inca-swap-bytes dependent on CONFIG_INCA_IPPeter Tyser2009-04-04-5/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make ubsha1 dependent upon CONFIG_SHA1_CHECK_UB_IMGPeter Tyser2009-04-04-2/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make img2srec dependent upon CONFIG_CMD_LOADSPeter Tyser2009-04-04-2/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Build bmp_logo only when LCD or VIDEO logos are enabledPeter Tyser2009-04-04-3/+8
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Split variable declarations into multiple linesPeter Tyser2009-04-04-33/+53
| | | | | | | | | | | | Split variable declarations into multiple lines and use the standard VAR-y convention. Also move object and binary variable declarations to after config.mk has been included to allow for these lists to utilize the CONFIG_XXX variables. These changes lay the groundwork for conditional compilation of files in the tools directory. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Remove inappropriate double-tabsPeter Tyser2009-04-04-76/+77
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Remove HOSTARCH HOSTOS definesPeter Tyser2009-04-04-12/+0
| | | | | | | The values of HOSTARCH and HOSTOS which are exported from the top-level Makefile should be used Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* gen_eth_addr: Use POSIX rand() and srand()Peter Tyser2009-04-04-3/+3
| | | | | | | | | Replace random()/srandom() use with rand()/srand() to support compilation with the mingw toolchain. The rand()/srand() functions are generally more common and are functionally equivalent to the original random()/srandom() calls. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* elf.h: Use stdint.h to provide standard typedefs for WIN32Peter Tyser2009-04-04-6/+1
| | | | | | | | The original code provided an incomplete set of typedefs for WIN32 compiles and replicated the standard typedefs that are already provided by stdint.h Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* common/Makefile: Conditionally compile env_embedded.oPeter Tyser2009-04-04-1/+1
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* Makefile: Add removal of *.exe files to clean targetPeter Tyser2009-04-04-1/+1
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* Makefile: Make autoconf.mk a dependency of the depend targetPeter Tyser2009-04-04-8/+8
| | | | | | | | The original code did not generate autoconf.mk until after some targets dependencies had already been calculated, for example the directories in the SUBDIRS variable Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* mflash: Initial mflash supportunsik Kim2009-04-03-8/+1080
| | | | | | | | | | | | | | | | | | | | Mflash is fusion memory device mainly targeted consumer eletronic and mobile phone. Internally, it have nand flash and other hardware logics and supports some different operation (ATA, IO, XIP) modes. IO mode is custom mode for the host that doesn't have IDE interface. (Many mobile targeted SoC doesn't have IDE bus) This driver support mflash IO mode. Followings are brief descriptions about IO mode. 1. IO mode based on ATA protocol and uses some custom command. (read confirm, write confirm) 2. IO mode uses SRAM bus interface. Signed-off-by: unsik Kim <donari75@gmail.com>
* Merge branch 'master' of git://git.denx.de/u-boot-nand-flashWolfgang Denk2009-04-03-120/+64
|\
| * Noisily disable the legacy NAND subsystem.Scott Wood2009-04-03-96/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Legacy NAND is marked for feature removal after April 2009 (i.e. this upcoming release). There are still several boards that reference it (though many do so only for disk-on-chip support which has been silently disabled for a while now). These boards will now fail to build with #error, though the code is still there if the user removes #error. The plan is to remove the code outright in the next release, along with any board code that refers to it (such as board/esd/common/auto_update.c). Also, remove the legacy NAND API description from README.nand. Signed-off-by: Scott Wood <scottwood@freescale.com>
| * Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LENapgmoorthy2009-04-03-24/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently OneNAND initial program loader (ipl) reads only block 0 ie 128KB. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read CONFIG_SYS_MONITOR_LEN. CONFIG_SYS_MONITOR_LEN macro holds the U-Boot image size. Signed-off-by: Rohit Hagargundgi <h.rohit@samsung.com> Signed-off-by: Gangheyamoorthy <moorthy.apg@samsung.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
* | Merge branch 'sf' of git://git.denx.de/u-boot-blackfinWolfgang Denk2009-04-03-20/+780
|\ \
| * | sf: stmicro: dont send 4 bytes when reading status registerMike Frysinger2009-04-02-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I can't find anywhere in the datasheet that says the status register needs 3 dummy bytes sent to it before being able to read back the first real result. Tests on a Blackfin board show that after writing the opcode, the status register starts coming back immediately. So only write out the read status register opcode before polling the result. Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Jason McMullan <mcmullan@netapp.com> CC: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
| * | sf: set common timeouts in seconds, not millisecondsMike Frysinger2009-04-02-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since timeouts are only hit when there is a problem in the system, we don't want to prematurely timeout on a functioning setup. Thus having low timeouts (in milliseconds) doesn't gain us anything in the production case, but rather increases likely hood of causing problems where none otherwise exist. Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
| * | sf: stmicro: use common page timeout defineMike Frysinger2009-04-02-2/+1
| | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
| * | sf: always read 5 bytes for the idcodeMike Frysinger2009-04-02-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some SPI flash drivers like to have extended id information available (like the spansion flash), so rather than making it re-issue the ID cmd to get at the last 2 bytes, have the common code read 5 bytes rather than just 3. This also matches the Linux behavior where it always reads 5 id bytes from all flashes. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> CC: Mingkai Hu <Mingkai.hu@freescale.com>
| * | sf: stmicro: drop redundant id readMike Frysinger2009-04-02-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The common SPI flash code reads the idcode and passes it down to the SPI flash driver, so there is no need to read it again ourselves. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> CC: Jason McMullan <mcmullan@netapp.com> CC: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
| * | sf: add driver for SST flashesMike Frysinger2009-04-02-0/+365
| | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
| * | sf: drop DEBUG definesMike Frysinger2009-04-02-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
| * | mtd: add some at45 spi flash supportJean-Christophe PLAGNIOL-VILLARD2009-04-02-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - AT45DB321D - AT45DB161D - AT45DB081D - AT45DB041D - AT45DB021D - AT45DB011D Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | mtd: SPI Flash: Support the Spansion FlashMingkai Hu2009-04-02-0/+357
| |/ | | | | | | | | | | | | | | Add MTD SPI Flash support for S25FL008A, S25FL016A, S25FL032A, S25FL064A, S25FL128P. Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | Merge branch 'master' of git://git.denx.de/u-boot-blackfinWolfgang Denk2009-04-03-78/+3140
|\ \
| * | 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: bf533-stamp: drop old spi flash driverMike Frysinger2009-04-02-3/+0
| | | | | | | | | | | | | | | | | | | | | Now that the common SPI flash code supports all the flashes, we can stop using the old driver. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | Blackfin: add BF538/BF539 SPI portmux handlingMike Frysinger2009-04-02-0/+18
| | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | Blackfin: do not delay on output bytesMike Frysinger2009-04-02-4/+0
| | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | Blackfin: drop newline from OTP helpMike Frysinger2009-04-02-1/+1
| | | | | | | | | | | | | | | | | | | | | Looks like I accidentally added a newline to the OTP help when merging and older change. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | Blackfin: convert bfin_sdh to legacy mmcMike Frysinger2009-04-02-12/+2
| | | | | | | | | | | | | | | | | | | | | The Blackfin SDH controller is still using the legacy framework, so update the driver to use the renamed functions. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | Blackfin: bf537-stamp: split CF/IDE code out into dedicated cf-ide.cMike Frysinger2009-04-02-54/+70
| | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | Blackfin: fix crash when booting from external memoryMike Frysinger2009-04-02-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | When testing a u-boot binary that hasn't been booted from the bootrom, we have to make sure the bootstruct structure has sane storage space. If we don't, the initcode will crash when it tries to dereference an invalid pointer. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | Blackfin: bf518f-ezbrd: new board portMike Frysinger2009-04-02-3/+467
| | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | Blackfin: bf526-ezbrd: new board portMike Frysinger2009-04-02-3/+543
| | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>