aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-04-02nios2: Fix outx/writex parameter order in io.hScott McNutt10-53/+53
The outx/writex macros were using writex(addr, val) rather than the standard writex(val, addr), resulting in incompatibilty with architecture independent components. This change set uses standard parameter order. Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-02nios2: Add support for EPCS16 and EPCS64 configuration devices.Scott McNutt1-4/+8
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-02nios2: Add missing Ethernet initialization to board_init().Scott McNutt1-0/+7
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-02nios2: add struct stat support in linux/stat.hThomas Chou1-1/+1
This is needed for jffs2 support. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-02nios2: use bitops from linux-2.6 asm-genericThomas Chou4-10/+342
These are needed to use ubi/ubifs. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-02nios2: add local_irq_enable/disable to asm-nios2/system.hThomas Chou1-0/+33
Copy from linux header. This is needed for generic bitops. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-02nios2: add asm-nios2/errno.hThomas Chou1-0/+1
Just pull in asm-generic. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-02nios2: Move serial drivers to individual files in drivers/serialScott McNutt10-127/+178
The standard Altera UART & JTAG UART as well as the OpenCores YANU driver are now in individual files in drivers/serial rather than a single file uner cpu/nios2. Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-01Merge branch 'next'Wolfgang Denk136-2309/+3338
2010-03-31Prepare v2010.03v2010.03Wolfgang Denk2-1/+153
Signed-off-by: Wolfgang Denk <wd@denx.de>
2010-03-31net, doc: How to setup MAC address correctlyHeiko Schocher1-0/+11
As this seems unclear, document how the flow of setting up the MAC address is correct. Signed-off-by: Heiko Schocher <hs@denx.de> Text changed slightly, adding input from Mike Frysinger. Signed-off-by: Wolfgang Denk <wd@denx.de>
2010-03-31net, fec_mxc: only setup the device enetaddr with eeprom valueHeiko Schocher1-1/+0
Only fill the device enetaddr with the contents of the eeprom, do not program it in MAC address registers Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Ben Warren <biggerbadderben@gmail.com>
2010-03-31doc: Fix ramdisk examples in doc/uImage.FIT/multi.itsFelix Radensky1-0/+4
The ramdisk sections in doc/uImage.FIT/multi.its lack load address and entry point properties. Using examples from this file will result in unbootable image, u-boot will issue the following error messages: Can't get ramdisk subimage load address! Ramdisk image is corrupt or invalid This patch adds missing properties to ramdisk sections. Signed-off-by: Felix Radensky <felix@embedded-sol.com>
2010-03-31jffs2, suen3: Fix compiler warningHeiko Schocher1-15/+22
$ ./MAKEALL suen3 jffs2_1pass.c: In function 'get_fl_mem': jffs2_1pass.c:399: warning: unused variable 'id' jffs2_1pass.c: In function 'get_node_mem': jffs2_1pass.c:423: warning: unused variable 'id' Signed-off-by: Heiko Schocher <hs@denx.de> Tested-by: Tom <Tom.Rix@windriver.com>
2010-03-30Merge branch 'master' of git://git.denx.de/u-boot-mpc85xxWolfgang Denk11-22/+118
2010-03-30Merge branch 'master' of git://git.denx.de/u-boot-ppc4xxWolfgang Denk1-1/+4
2010-03-30mpc86xx: set the DDR BATs after calculating true DDR sizeTimur Tabi8-9/+53
After determining how much DDR is actually in the system, set DBAT0 and IBAT0 accordingly. This ensures that the CPU won't attempt to access (via speculation) addresses outside of actual memory. On 86xx systems, DBAT0 and IBAT0 (the BATs for DDR) are initialized to 2GB and kept that way. If the system has less than 2GB of memory (typical for an MPC8610 HPCD), the CPU may attempt to access this memory during speculation. The zlib code is notorious for generating such memory reads, and indeed on the MPC8610, uncompressing the Linux kernel causes a machine check (without this patch). Currently we are limited to power of two sized DDR since we only use a single bat. If a non-power of two size is used that is less than CONFIG_MAX_MEM_MAPPED u-boot will crash. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2010-03-3085xx: Fix enabling of L1 cache parity on secondary coresKumar Gala3-13/+65
Use the same code between primary and secondary cores to init the L1 cache. We were not enabling cache parity on the secondary cores. Also, reworked the L1 cache init code to match the e500mc L2 init code that first invalidates the cache and locks. Than enables the cache and makes sure its enabled before continuing. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2010-03-30ppc4xx: Fix problem with I2C bus >= 1 initializationStefan Roese1-1/+4
This patch fixes a problem introduced with patch eb5eb2b0 [ppc4xx: Cleanup PPC4xx I2C infrastructure]. We need to assign the I2C base address to the "i2c" pointer inside of the controller loop. Otherwise controller 0 is initialized multiple times instead of initializing each I2C controller sequentially. Tested on Katmai. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Heiko Schocher <hs@denx.de>
2010-03-29bootm, linux: fix booting Multi-File Image with "kernel+ramdisk+fdt"Heiko Schocher1-1/+2
Booting a "Multi-File Image" including a linux kernel, ramdisk and fdt, generated with mkimage -A ppc \ -O linux \ -T multi \ -C gzip \ -a 00000000 \ -e 00000000 \ -n "kernel-2.6+initrd+dtb" \ -d "vmlinux.bin.gz:ramdisk_image.gz:board.dtb" \ multi.bin actually fails, because ramdisk start and end addresses didn;t get initialized. This patch fixes this issue. Tested on the KUP4K board. Signed-off-by: Heiko Schocher <hs@denx.de>
2010-03-29i2c: made unused function i2c_mux_add_device staticFrans Meulenbroeks2-3/+1
and removed it from the .h file Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-03-29cmd_i2c: introduced get_alen helper functionFrans Meulenbroeks1-72/+47
The code to parse alen appeared 6 times in the function. Factored this out in a small helper function Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-03-29cmd_i2c: moved a define to before the functionsFrans Meulenbroeks1-2/+2
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-03-29cmd_i2c: moved mispositioned comment for i2c mdFrans Meulenbroeks1-4/+4
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-03-29cmd_i2c.c: declared local functions as staticFrans Meulenbroeks1-14/+14
Declared all functions that were not called outside the file as static Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-03-29Merge remote branch 'origin/master' into nextWolfgang Denk21-1760/+195
2010-03-29Merge branch 'next' of git://www.denx.de/git/u-boot-cfi-flash into nextWolfgang Denk1-7/+86
2010-03-28Prepare 2010.03-rc3v2010.03-rc3Wolfgang Denk2-1/+101
Update CHANGELOG Signed-off-by: Wolfgang Denk <wd@denx.de>
2010-03-28cmd_usb.c: print debug messages only when DEBUG is definedWolfgang Denk1-2/+2
Signed-off-by: Wolfgang Denk <wd@denx.de>
2010-03-28ml300: remove support for broken, orphaned boardWolfgang Denk13-1747/+0
The ml300 board has a number of issues, but nobody cares about this long-orphaned board any more. Remove it. Signed-off-by: Wolfgang Denk <wd@denx.de> Acked-by: Michal Simek <monstr@monstr.eu>
2010-03-28Merge branch 'master' of /home/wd/git/u-boot/custodiansWolfgang Denk3-6/+70
2010-03-28mkimage: fix Segmentation Fault when run without "-n name" optionWolfgang Denk1-0/+1
The restructuring of the mkimage command in commit 89a4d6b1 ("tools: mkimage: split code into core, default and FIT image specific") introduced a bug that caused mkimage to segfault when run without "-n name" option. Initialize the imagename entry to prevent that. Signed-off-by: Wolfgang Denk <wd@denx.de>
2010-03-28Merge branch 'master' of git://git.denx.de/u-boot-cfi-flashWolfgang Denk1-1/+4
2010-03-28Merge branch 'next' of git://git.denx.de/u-boot-coldfire into nextWolfgang Denk61-906/+2371
2010-03-26cfi flash: add status polling method for amd flashThomas Chou1-7/+86
This patch adds status polling method to offer an alternative to data toggle method for amd flash chips. This patch is needed for nios2 cfi flash interface, where the bus controller performs 4 bytes read cycles for a single byte read instruction. The data toggle method can not detect chip busy status correctly. So we have to poll DQ7, which will be inverted when the chip is busy. This feature is enabled with the config def, CONFIG_SYS_CFI_FLASH_STATUS_POLL Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Stefan Roese <sr@denx.de>
2010-03-25cfi_flash: precision and underflow problem in tout calculationRenato Andreola1-1/+4
With old configuration it could happen tout=0 if CONFIG_SYS_HZ<1000. Signed-off-by: Renato Andreola <renato.andreola@imagos.it> Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Stefan Roese <sr@denx.de>
2010-03-24ColdFire: Fix m54455EVB save environment bugTsiChung Liew1-1/+1
The ATMEL flash does not have buffer write feature. Assgined buffer_size = 1, so that when there is a write to the flash will not use buffer write function. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: Fix incorrect M5253DEMO default environmentTsiChung Liew1-1/+1
The flash location is at 0xff800000, not 0 Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: Cache update for all platformsTsiChung Liew30-599/+658
The CF will call cache functions in lib_m68/cache.c and the cache settings are defined in platform configuration file. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: Fix SDRAM size on M5208evb rev ETsiChung Liew1-1/+1
The proper SDRAM size is 32MB not 64MB Signed-off-by: Jingchang Lu <b22599@freescale.com>
2010-03-24ColdFire: Misc update for M53017TsiChung Liew2-3/+5
Reside Ethernet buffer descriptors in SRAM instead of DRAM. Add CONFIG_SYS_TX_ETH_BUFFER in platform configuration file. Update DRAM control and SRAM control register setting. Update cache setting where size does not write to proper region. Signed-off-by: TsiChung Liew <tsicliew@gmail.com> Signed-off-by: Jason Jin <Jason.jin@freescale.com>
2010-03-24ColdFire: Add CPU compile flag for mcf5301x and mcf532xTsiChung Liew1-0/+12
Add CPU compile flag -mcpu=53015 in cpu/config.mk Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: Update Extra environment Data for M5275EVBTsiChung Liew1-5/+17
Provide extra environment Data. Remove default network address and MAC address. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: M5271EVB DRAM Bring up issueTsiChung Liew1-2/+10
Fix proper portsize: The register for portsize is either 00b, 01b, or 1xb. The value that previous assigned is 32d. Fix DRAM bring up: insert asm("nop") for every DRAM register setup Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: Update M5253DEMO configuration fileTsiChung Liew1-7/+2
Fix incorrect default environment for flash erase or protect range. Change offset from 0 to 0xff80nnnn. Remove default ethernet setup and MAC address. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: Relocate vector table - mcf5445xTsiChung Liew1-0/+9
Newer ColdFire processors family boot from address 0 instead of 0xFFnn_nnnn. When the boot flash base chip select is set at new location instead of 0, an un-predictable error will occur if there is an vector being trigger and refer it to an invalid address or the vector table handler is not existed at address 0. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: Update uart_port_conf in serial driverTsiChung Liew1-2/+2
Provide proper port passing from serial_init to uart_part_conf. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: Update processors' serial port configurationTsiChung Liew7-51/+106
Provide parameter passing to uart_port_config(). Update port configuration - un-mask it before enable the bits. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24ColdFire: Correct bit definitionTsiChung Liew11-209/+206
Use correct definition for _MASK and _UNMASK. It was combined in the previous used and causes confusion. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
2010-03-24fix cmd_bdinfo.c:354: warning: 'print_eth' defined but not usedPhilippe De Muyter1-2/+2
This fixes the following warnings when running MAKEALL for coldfire : cmd_bdinfo.c:354: warning: 'print_eth' defined but not used Signed-off-by: Philippe De Muyter <phdm at macqel.be>