summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-02-10mpc86xx: Add support to populate addr map based on BATsBecky Bruce
If CONFIG_ADDR_MAP is enabled, update the address map whenever we write a bat. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
2009-02-10powerpc: Move duplicated BAT defines to mmu.hBecky Bruce
The BAT fields are architected; there's no need for these to be in cpu-specific files. Drop the duplication and move these to include/asm-ppc/mmu.h. Also, remove the BL_xxx defines that were only used by the alaska board, and switch to using the BATU_BL_xxx defines used by all the other boards. The BL_ defines previously in use had to be shifted into the proper position for use, which was inefficient. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
2009-02-10drivers/pci: Create pci_map_bar functionBecky Bruce
It is no longer always true that the pci bus address can be used as the virtual address for pci accesses. pci_map_bar() is created to return the virtual address for a pci region. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
2009-02-10mpc8641hpcn: Set up outbound pci windows before inboundBecky Bruce
Because the inbound pci windows are mapped generously, set up the more specific outbound windows first. This way, when we search the pci regions for something, we will hit on the more specific region. This can actually be a problem on systems with large amounts of RAM. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
2009-02-10mpc8641hpcn: Use physical address in flash banks defintionBecky Bruce
If the VA and PA of the flash aren't the same, the banks list should be initialized to hold the physical address. Correct this. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
2009-02-07Merge branch 'master' of ssh://gemini/home/wd/git/u-boot/masterWolfgang Denk
2009-02-07pci: give preference to non-PCI_REGION_SYS_MEMORY regions when matchingKumar Gala
When we search for an address match in pci_hose_{phys_to_bus,bus_to_phys} we should give preference to memory regions that aren't system memory. Its possible that we have over mapped system memory in the regions and we want to avoid depending on the order of the regions. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2009-02-07pci: Rename PCI_REGION_MEMORY to PCI_REGION_SYS_MEMORY for clarityKumar Gala
The PCI_REGION_MEMORY and PCI_REGION_MEM are a bit to similar and can be confusing when reading the code. Rename PCI_REGION_MEMORY to PCI_REGION_SYS_MEMORY to clarify its used for system memory mapping purposes. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2009-02-07Merge branch 'master' of git://git.denx.de/u-boot-nand-flashWolfgang Denk
2009-02-07Merge branch 'master' of git://git.denx.de/u-boot-coldfireWolfgang Denk
2009-02-07Merge branch 'master' of git://git.denx.de/u-boot-blackfinWolfgang Denk
2009-02-07Merge branch 'master' of git://git.denx.de/u-boot-cfi-flashWolfgang Denk
2009-02-07Merge branch 'master' of git://git.denx.de/u-boot-ppc4xxWolfgang Denk
2009-02-07Merge branch 'master' of git://git.denx.de/u-boot-mpc5xxxWolfgang Denk
2009-02-06NAND: Add timeout for reset commandPeter Tyser
Without the timeout present an infinite loop can occur if the NAND device is broken or not present. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2009-02-06NAND: Silence warning when CONFIG_SYS_NAND_QUIET_TESTPeter Tyser
Commit cfa460adfdefcc30d104e1a9ee44994ee349bb7b removed support for disabling the "No NAND device found!!!" warning when CONFIG_SYS_NAND_QUIET_TEST was defined. This re-adds support for silencing the warning. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2009-02-06NAND: Fixed invalid pointers to static relocated chip namesValeriy Glushkov
Dear Wolfgang, You are right, the patch was ugly. The new one seems to be better. Signed-off-by: Valeriy Glushkov <gvv@lstec.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2009-02-06env_nand: fix env memory releasederek@siconix.com
This fixes a bug that tmp environment memory not being released. Signed-off-by: Derek Ou <dou@siconix.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2009-02-06Coldfire: M527x: Add missing GPIO register address definesRichard Retanubun
Add missing GPIO registers address definition for Coldfire M5271. Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
2009-02-06Coldfire: mcfmii: Allow non-autonegotiating PHYs to use mii commandRichard Retanubun
Modified mii_init to support boards with PHYs that are not set to autonegotiate, but still want to use u-boot's mii commands to probe the smi bus. Such PHYs will not set the Autonegotiate-done bit. Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
2009-02-06Coldfire: Applied baudrate formula of serial_init to serial_setbrgRichard Retanubun
Applied the patch for baudrate divider value truncation for serial_init to serial_setbrg as well. Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
2009-02-06Coldfire: M5271EVB: Board header update (dependencies)Richard Retanubun
Cleanup for M5271EVB: Added clarification on the use of CONFIG_SYS_CLOCK. Modified to use u-boot's HUSH parser. Cleanup on environment settings. Removed compiler warning by defining CONFIG_SYS_CS0_* Dependencies: Added the use of CONFIG_SYS_MCF_SYNCR for clock multiplier. This depends on a patch to include/asm-m68k/m5271.h that defines the multiplier and divider ratios. Removed the definition of CONFIG_SYS_FECI2C. This depends on a patch that removes the use of it in cpu/mcf52x2/cpu_init.c Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
2009-02-06Coldfire: M5271: Allow board header file to specify clock multiplierRichard Retanubun
M5271 dynamic clock multiplier. It is currently fixed at 100MHz. Allow the board header file to set their own multiplier and divider. Added the #define for the multiplier and divider to the cpu header file. Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
2009-02-06Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2CRichard Retanubun
Discontinue the use of CONFIG_SYS_FECI2C (only used by M5271EVB). Use read-modify-write to activate the FEC pins without disabling I2C. Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
2009-02-06Coldfire: cmd_bdinfo cleanupRichard Retanubun
CONFIG_M68K bdinfo cleanup: Fixed compiler warning about baudrate printing. format '%d' expects type 'int', but argument 2 has type 'long unsigned int'. Added printing of "cpufreq" Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
2009-02-06Coldfire: Fix half-baud UART by adding M5271 to Coldfire v2 core listRichard Retanubun
Added the CONFIG_M5271 to the list of Coldfire V2 processor. This was causing the bus clock (not CPU clock) to be declared twice as fast as it actually is. This causes UARTS to operate at half the specified baudrate. Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
2009-02-06ppc4xx: Make PCIE support selectableDirk Eibach
On some platforms PCIE support is not required, but would be included because the cpu supports it. To reduce fooprint it is now configurable via CONFIG_PCI_DISABLE_PCIE. Signed-off-by: Dirk Eibach <eibach@gdsys.de> Signed-off-by: Stefan Roese <sr@denx.de>
2009-02-06ppc4xx: Only fixup opb attached UARTsMatthias Fuchs
This patch updates the fdt UART clock fixup code to only touch CPU internal UARTs on 4xx systems. Only these UARTs are definitely clocked by gd->uart_clk. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com> Signed-off-by: Stefan Roese <sr@denx.de>
2009-02-05Blackfin: move default boot SPI CS to common codeMike Frysinger
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>
2009-02-05Blackfin: dynamically update UART speed when initializingMike Frysinger
Previously, booting over the UART required the baud rate to be known ahead of time. Using a bit of tricky simple math, we can calculate the new board rate based on the old divisors. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
2009-02-05Blackfin: add support for fast SPI reads with Boot ROMMike Frysinger
Newer Blackfin boot roms support using the fast SPI read command rather than just the slow one. If the functionality is available, then use it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-02-05Blackfin: check for reserved settings in DDR MMRsMike Frysinger
Some bits of the DDR MMRs should not be set. If they do, bad things may happen (like random failures or hardware destruction). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-02-05Blackfin: set default voltage levels for BF538/BF539 partsMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-02-05Blackfin: use on-chip syscontrol() rom function when availableMike Frysinger
Newer Blackfin's have an on-chip rom with a syscontrol() function that needs to be used to properly program the memory and voltage settings as it will include (possibly critical) factory tested bias values. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-02-05cfi_flash: Fix typo in cfi_flash.cStefan Roese
Patch "flash/cfi_flash: Use virtual sector start address, not phys" introduced a small typo and compilation warning for systems with CFI legacy support (e.g. hcu4). This patch fixes it. Signed-off-by: Stefan Roese <sr@denx.de>
2009-02-05jedec_flash: Only use manufacturer defines from common flash.hStefan Roese
This patch removes the double defined manufacturer defines from jedec_flash.c. Since the common defines in flash.h are 32bit we now need the (16) cast. This patch also removes the compilation warning (e.g. seen on hcu5): ./MAKEALL hcu5 Configuring for hcu5 board... jedec_flash.c:219: warning: large integer implicitly truncated to unsigned type Signed-off-by: Stefan Roese <sr@denx.de>
2009-02-05cfi_flash: Silence compilation warningStefan Roese
Patch "flash/cfi_flash: Use virtual sector start address, not phys" introduced a small compilation warning. This patch fixes it. Signed-off-by: Stefan Roese <sr@denx.de>
2009-02-05flash/cfi_flash: Use virtual sector start address, not physBecky Bruce
include/flash.h was commented to say that the address in flash_info->start was a physical address. However, from u-boot's point of view, and looking at most flash code, it makes more sense for this to be a virtual address. So I corrected the comment to indicate that this was a virtual address. The only flash driver that was actually treating the address as physical was the mtd/cfi_flash driver. However, this code was using it inconsistently as it actually directly dereferenced the "start" element, while it used map_physmem to get a virtual address in other places. I changed this driver so that the code which initializes the info->start field calls map_physmem to get a virtual address, eliminating the need for further map_physmem calls. The code is now consistent. The *only* place a physical address should be used is when defining the flash banks list that is used to initialize the flash_info struct, usually found in the board config file. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org> Signed-off-by: Stefan Roese <sr@denx.de>
2009-02-04Fix compiler warningWolfgang Denk
(shows up only when DEBUG is enabled) Signed-off-by: Wolfgang Denk <wd@denx.de>
2009-02-03Blackfin: update anomaly listsMike Frysinger
Update the anomaly lists to match latest anomaly sheets. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-02-03ADS5121 Add PATA supportRalph Kondziella
Original patch from Ralph Kondziella plus clean up by Wolfgang Denk plus changes by John Rigby use ips clock not lpc port forward to current u-boot release Signed-off-by: Ralph Kondziella <rk@argos-messtechnik.de> Signed-off-by: Wolfgang Denk <wd@denx.de> Signed-off-by: John Rigby <jrigby@freescale.com>
2009-02-03ADS5121 Add IC Ident Module (IIM) supportMartha Marx
IIM (IC Identification Module) is the fusebox for the mpc5121. Use #define CONFIG_IIM to turn on the clock for this module use #define CONFIG_CMD_FUSE to add fusebox commands. Fusebox commands include the ability to read the status, read the register cache, override the register cache, program the fuses and sense them. Signed-off-by: Martha Marx <mmarx@silicontkx.com> Signed-off-by: John Rigby <jrigby@freescale.com>
2009-02-03Merge branch 'master' of git://git.denx.de/u-boot-usbWolfgang Denk
2009-02-03ADS5121 Fix rev2 silicon pci iopad configJohn Rigby
Reset config is not correct Signed-off-by: John Rigby <jrigby@freescale.com>
2009-02-03ADS5121 DIU Add diu_bmp_addr envJohn Rigby
Add support for using a bmp other than FSL_Logo_BMP for the DIU splash screen. Can now set the env var "diu_bmp_addr" to the address of a BMP in flash to use instead of the default FSL_Logo_BMP. Signed-off-by: Martha Marx <mmarx@silicontkx.com> Signed-off-by: John Rigby <jrigby@freescale.com>
2009-02-03ADS5121 DIU Make inclusion of FSL logo optionalJohn Rigby
Make inclusion of FSL logo optional and turn it off by default. Signed-off-by: John Rigby <jrigby@freescale.com>
2009-02-02Compile warning fix in onenand_uboot.hRemy Bohmer
Regression since merge window after 2009.01 Signed-off-by: Remy Bohmer <linux@bohmer.net>
2009-02-02USB: Add EHCI support for VCT EHCI controller (really with driver now)Stefan Roese
Somehow I missed the real driver part in my last patch version. This patch now adds the driver. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Remy Bohmer <linux@bohmer.net>
2009-02-02Blackfin: add driver for on-chip MMC/SD controllerCliff Cai
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>
2009-02-02Blackfin: add port muxing for BF51x SPIMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>