summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' of git://git.denx.de/u-boot-mpc85xxWolfgang Denk2011-05-19-8/+32
|\ | | | | | | | | | | * 'master' of git://git.denx.de/u-boot-mpc85xx: powerpc/85xx: add support for env in MMC/SPI on corenet ds boards powerpc/85xx: Enable eSPI support on corenet ds boards
| * powerpc/85xx: add support for env in MMC/SPI on corenet ds boardsShaohui Xie2011-05-18-8/+22
| | | | | | | | | | Signed-off-by: Shaohui Xie <b21989@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * powerpc/85xx: Enable eSPI support on corenet ds boardsShaohui Xie2011-05-18-0/+10
| | | | | | | | | | Signed-off-by: Shaohui Xie <b21989@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* | km/common: add pnvramsize to default environmentHolger Brunck2011-05-18-0/+1
| | | | | | | | | | | | | | | | | | | | | | The pnvram size was used later from start scripts in linux. Therefore it was added to the default environment. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de>
* | km/common: simplify default environmentHolger Brunck2011-05-18-126/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a first step to simplify the default environment. Move all the environment variables which are only needed for debugging purpose to textfiles in the scripts directory. In case of debugging these files can be loaded via tftp into RAM and set via the env import command. Other variables are identified as obsolete and were removed. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de>
* | km/common: implement boardId HWkey checks as u-boot cmdThomas Herzmann2011-05-18-29/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BoardId and HWKey are used to identify the HW class of a given board. The correct values are stored in the inventory eeprom. During creation time of a boot package the boardId and HWkey for the SW is stored in the default environment and burned into the flash. During boottime the values in the inventory and in the environment are compared to avoid starting of a SW which is not authorized for this board. Some bootpackages are allowed to run on a set of different boardId hwKey. In this case the environment variable boardIdListHex was added to the default environment. In this case the command iterates over the pair values and compares them with the values read from the inventory eeprom. The syntax of such a boardIdListHex value is e.g.: 158_1 159_1 159_2 Signed-off-by: Thomas Herzmann <thomas.herzmann@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de>
* | mmc: enable partition switch function for emmcLei Wen2011-05-18-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For emmc, it may have up to 7 partitions: two boot partitions, one user partition, one RPMB partition and four general purpose partitions. (Refer to JESD84-A44.pdf/page 154) As bootloader may need to read out or reflashing images on those different partitions, it is better to enable the partition switch with console command support. Also for partition would be restore to user partition(part 0) when CMD0 is used, so change mmc_init routine to perform normal initialization only once for each slot, unless use the rescan command to force init again. Signed-off-by: Lei Wen <leiwen@marvell.com> Acked-by: Andy Fleming <afleming@freescale.com>
* | cmd_mmc: eliminate device num in the mmc commandLei Wen2011-05-18-0/+1
| | | | | | | | | | | | | | mmc command applied device, like ide and usb... Signed-off-by: Lei Wen <leiwen@marvell.com> Acked-by: Andy Fleming <afleming@freescale.com>
* | mmc_spi: generate response for send status commandThomas Chou2011-05-18-0/+1
|/ | | | | | | | | | A "send status" command is added with the commit "mmc: checking status after commands with R1b response". But the status register returned from send status command of SPI protocol is different from that of MMC/SD protocol. We do a simple test and generate a response in stead of full bit-by-bit translation. Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
* at91: reworked support for otc570 boardDaniel Gorsulowski2011-05-18-115/+150
| | | | | | | The otc570 board support was broken. Within this opportunity, I completely reworked the board files. Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
* hammerhead: move CONFIG_SYS_TEXT_BASE to headerAndreas Bießmann2011-05-18-0/+1
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* mimc200: move CONFIG_SYS_TEXT_BASE to headerAndreas Bießmann2011-05-18-0/+1
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* favr-32-ezkit: move CONFIG_SYS_TEXT_BASE to headerAndreas Bießmann2011-05-18-0/+1
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* atstk100x: move CONFIG_SYS_TEXT_BASE to headerAndreas Bießmann2011-05-18-0/+4
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* atngw100: move CONFIG_SYS_TEXT_BASE to headerAndreas Bießmann2011-05-18-0/+1
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* mimc200: fix "#define XXXX 1"Andreas Bießmann2011-05-18-28/+28
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* hammerhead: fix "#define XXXX 1"Andreas Bießmann2011-05-18-24/+24
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* favr-32-ezkit: fix "#define XXXX 1"Andreas Bießmann2011-05-18-23/+23
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* atstk1006: fix "#define XXXX 1"Andreas Bießmann2011-05-18-24/+24
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* atstk1004: fix "#define XXXX 1"Andreas Bießmann2011-05-18-21/+21
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* atstk1003: fix "#define XXXX 1"Andreas Bießmann2011-05-18-21/+21
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* atstk1002: fix "#define XXXX 1"Andreas Bießmann2011-05-18-24/+24
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* atngw100: fix "#define XXXX 1"Andreas Bießmann2011-05-18-27/+27
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* ATMEL: fix dataflash (dirty) this file should be converted to struct SoC accessReinhard Meyer2011-05-18-1/+0
| | | | Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
* avr32: fixup definitions to ATMEL_BASE_xxxAndreas Bießmann2011-05-18-24/+17
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* avr32: rename memory-map.h -> hardware.hAndreas Bießmann2011-05-18-7/+7
| | | | Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* ftpmu010.h: fix some missing declaration in headerMacpaul Lin2011-05-12-0/+3
| | | | | | Fix some missing declaration in header. Signed-off-by: Macpaul Lin <macpaul@andestech.com>
* ftsmc020: add missing definitionsMacpaul Lin2011-05-12-0/+5
| | | | | | Add missing definitions in header file according to datasheet. Signed-off-by: Macpaul Lin <macpaul@andestech.com>
* ftsmc020: un-nest the register structure in headerMacpaul Lin2011-05-12-6/+8
| | | | | | Un-nestted the register structure in ftsmc020.h Signed-off-by: Macpaul Lin <macpaul@andestech.com>
* ftsdmc021: add register definitions of ftsdmc021Macpaul Lin2011-05-12-0/+151
| | | | | | Support registers definitions of ftsdmc021 SDRAM controller. Signed-off-by: Macpaul Lin <macpaul@andestech.com>
* ftahbc020s: Faraday FTAHBC020s AHB Bus ControllerMacpaul Lin2011-05-12-0/+59
| | | | | | | | ftahbc020s.h provides basic definitions of this controller to help a SoC which use this AHB Controller could do scalable software settings in lowlevel_init.S. Signed-off-by: Macpaul Lin <macpaul@andestech.com>
* Remove remnants of obsolete CONFIG_SYS_GBL_DATA_SIZE commentsMichael Jones2011-05-12-63/+0
| | | | | | | commit 25ddd1fb0a2281b182529afbc8fda5de2dc16d96 left remnants of many comments about CONFIG_SYS_GBL_DATA_SIZE. Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
* lib, vsprintf: introduce strict_strtoulHeiko Schocher2011-05-12-0/+3
| | | | | | | | | | | | | | | as checkpatch proposes to use strict_strtoul instead of simple_strtoul, introduce it. Ported this function from Linux 2.6.38 commit ID: 521cb40b0c44418a4fd36dc633f575813d59a43d Signed-off-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
* NET: pass source IP address to packet handlersLuca Ceresoli2011-05-12-5/+10
| | | | | | | | | | This is needed for the upcoming TFTP server implementation. This also simplifies PingHandler() and fixes rxhand_f documentation. Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: Detlev Zundel <dzu@denx.de>
* Merge branch 'master' of git://git.denx.de/u-boot-ppc4xxWolfgang Denk2011-05-12-0/+14
|\
| * PPC405EX CHIP_21 erratumSteven A. Falco2011-05-12-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | APM errata CHIP_21 for the 405EX/EXr (from the rev 1.09 document dated 4/27/11) states that rev D processors may wake up with the wrong feature set. This patch implements the APM-proposed workaround. To enable this patch for your board, add the appropriate define for your CPU to your board header file. See kilauea.h for more information. The following variants are supported: #define CONFIG_SYS_4xx_CHIP_21_405EX_NO_SECURITY #define CONFIG_SYS_4xx_CHIP_21_405EX_SECURITY #define CONFIG_SYS_4xx_CHIP_21_405EXr_NO_SECURITY #define CONFIG_SYS_4xx_CHIP_21_405EXr_SECURITY Please note that if you select the wrong define, your board will not boot, and JTAG will be required to recover. Tested on custom boards using: CONFIG_SYS_4xx_CHIP_21_405EX_NO_SECURITY <sfalco@harris.com> CONFIG_SYS_4xx_CHIP_21_405EX_SECURITY <eibach@gdsys.de> Signed-off-by: Steve Falco <sfalco@harris.com> Acked-by: Dirk Eibach <eibach@gdsys.de> Signed-off-by: Stefan Roese <sr@denx.de>
* | Enable multiple fs options for Marvell SoC family on OpenRD boardsClint Adams2011-05-11-0/+1
| | | | | | | | | | | | | | Signed-off-by: Clint Adams <clint@debian.org> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Prafulla Wadaskar <prafulla@marvell.com> Cc: Julian Pidancet <julian.pidancet@citrix.com>
* | Initialize second PHY on OpenRD-Client and OpenRD-UltimateClint Adams2011-05-11-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Though the OpenRD-Base only has one gigabit Ethernet port, both the OpenRD-Client and OpenRD-Ultimate each have two. On the Ultimate, the PHY addresses are consecutive, but on the Client they are not. (based on <62a0952ce368acc725063a00a5ec680a639d6c27.1301040318.git.julian.pidancet@citrix.com> <ad0a2dc1e422698b005d6f0ceb6dd6f75a87e00a.1301040318.git.julian.pidancet@citrix.com> ) Signed-off-by: Clint Adams <clint@debian.org> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Prafulla Wadaskar <prafulla@marvell.com> Cc: Julian Pidancet <julian.pidancet@citrix.com>
* | Add definitions for OpenRD-Client and OpenRD-UltimateClint Adams2011-05-11-1/+13
| | | | | | | | | | | | | | Signed-off-by: Clint Adams <clint@debian.org> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Prafulla Wadaskar <prafulla@marvell.com> Cc: Julian Pidancet <julian.pidancet@citrix.com>
* | Rename openrd_base files to openrdClint Adams2011-05-11-2/+2
| | | | | | | | | | | | | | Signed-off-by: Clint Adams <clint@debian.org> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Prafulla Wadaskar <prafulla@marvell.com> Cc: Julian Pidancet <julian.pidancet@citrix.com>
* | mv-common.h: fix DRAM banks configurationSimon Guinot2011-05-11-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | The asm/arch/config.h header define CONFIG_NR_DRAM_BANKS_MAX, which is needed to configure DRAM banks. This patch move the asm/arch/config.h header inclusion above the DRAM banks configuration. Additionally this patch fix a typo. Signed-off-by: Simon Guinot <sguinot@lacie.com>
* | MX31: mx31pdk: Add watchdog supportFabio Estevam2011-05-11-0/+3
|/ | | | Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
* keymile boards: move keymile specific header in subdirValentin Longchamp2011-05-10-14/+14
| | | | | | | | | | | | Collect all keymile specific common headers in include/configs/km. Signed-off-by: Heiko Schocher <hs@denx.de> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Prafulla Wadaskar <prafulla@marvell.com> cc: Kim Phillips <kim.phillips@freescale.com> cc: Holger Brunck <holger.brunck@keymile.com>
* km/common: fix coding style issues in generic headerHolger Brunck2011-05-10-7/+7
| | | | | | | | | Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
* common/hush: make get_local_var visible for other usersHolger Brunck2011-05-10-0/+1
| | | | | | | | | Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
* km/common: fix initial_boot_bank for bootpackagesThomas Herzmann2011-05-10-7/+8
| | | | | | | | | | | | | | The initial_boot_bank can be set when more than one application is used in a bootpackage. But a value n <> 0 never led to booting from bank n. Instead, bank 0 was booted. This patch fixes this. Signed-off-by: Thomas Herzmann <thomas.herzmann@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
* powerpc/km82xx: fix compile issue for mgcoge2neHolger Brunck2011-05-10-0/+3
| | | | | | | | | | commit 91a3c14c (ppc, mgcoge: add DIP switch detection) introduces an compile error due to an missing define in the mgcoge2ne.h. DIP switch detection is valid for both boards. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> cc: Wolfgang Denk <wd@denx.de> cc: Heiko Schocher <hs@denx.de>
* poweprc/km82xx: add board specific environment variableHolger Brunck2011-05-10-0/+5
| | | | | | | | | | | | | | On mgcoge3ne a new environment variable bobcatreset is used. So this patch adds a possibility to add board specific environment variables in general and this specific variable for mgcoge3ne. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
* powerpc/km82xx: adapt CONFIG_SYSSYPCR to manualHolger Brunck2011-05-10-1/+1
| | | | | | | | | | | Reserved bit was changed according to the processors manual. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
* powerpc/km82xx: add mgcoge3ne and remove mgcoge2ne supportHolger Brunck2011-05-10-36/+64
| | | | | | | | | | | | | | | | | This patch adds support for the MPC8247 based board mgcoge3ne. Additionaly mgcoge2ne board supprot was removed, because due to the mgcoge3ne, this board is obsolete and not longer maintained. The board is similar to mgcoge. The difference is that a NUMONYX flash is used and a different SDRAM (256MB). Also introduce CONFIG_KM_82XX to collect ppc82xx common settings and remove staticness from the common set_pin function. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de>