summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2012-07-07SPEAr: Configure FSMC driver for NAND interfaceVipin KUMAR
Since FSMC is a standard IP and it supports different memory interfaces, it is supported independent of spear platform and spear is configured to use that driver for interfacing with the NAND device Signed-off-by: Vipin Kumar <[email protected]> Signed-off-by: Amit Virdi <[email protected]> Signed-off-by: Stefan Roese <[email protected]> Acked-by: Scott Wood <[email protected]>
2012-07-07mtd/NAND: Add FSMC driver supportVipin KUMAR
Flexible static memory controller is a peripheral provided by ST, which controls the access to NAND chips along with many other memory device chips eg NOR, SRAM. This patch adds the driver support for FSMC controller interfacing with NAND memory. Signed-off-by: Vipin Kumar <[email protected]> Signed-off-by: Amit Virdi <[email protected]> Signed-off-by: Stefan Roese <[email protected]> Acked-by: Scott Wood <[email protected]>
2012-07-07arm/km: remove calls to kw_gpio_* in board_early_init_fHolger Brunck
These functions tried to access two static tables before relocation (board_early_init_f is executed before relocation). But these static tables lie in the bss section which is not valid before relocation. These accesses then overwrote some parts of u-boot binary before it was relocated. For the kmnusa build, this results in a corrupted important env variable (bootcmd) but it may be that some other parts of the u-boot binary are corrupted. This patch solves this problem by moving all the kw_gpio_* calls to board_init, which should be early enough in the boot sequence. The only calls that could not be moved is the one for the SOFT (bitbang) I2C, and they have been replaced by a direct access to the GPIO dataout Control register to set the two GPIOs as output. Signed-off-by: Valentin Longchamp <[email protected]> cc: Holger Brunck <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: add implementation for read_dip_switchThomas Herzmann
Add a function to read the dip_switch on kmcoge5un. If the switch is set the actual_bank is set to 0 and this SW is booted. Signed-off-by: Thomas Herzmann <[email protected]> Signed-off-by: Holger Brunck <[email protected]>
2012-07-07arm/km: cleanup km_kirkwood boardsHolger Brunck
Remove config options from boards.cfg and simply add one switch per board and differ afterwards in km_kirkwood.h between the features. More boards are upcoming and therefore it's easier to have this at one place. Signed-off-by: Holger Brunck <[email protected]> Signed-off-by: Valentin Longchamp <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: enable BOCO2 FPGA download supportValentin Longchamp
This adds a first support of the FPGA download for a PCIe FPGA based on the BOCO2 CPLD. This takes place in 3 steps, all done accessing the SPICTRL reg of the BOCO2: 1) start the FPGA config with an access to the FPGA_PROG bit 2) later in the boot sequence, wait for the FPGA_DONE bit to toggle to 1 for the end of the FPGA configuration (with a timeout) 3) reset the FPGA 4) finally remove the access to its config EEPROM from the FPGA so that the CPU can update the FPGA configuration when the kernel is running The boards with a PCIe FPGA but without BOCO2 still are supported. The config option name is CONFIG_KM_FPGA_CONFIG Signed-off-by: Valentin Longchamp <[email protected]> Signed-off-by: Holger Brunck <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: remove portl2.h and use km_kirkwood insteadHolger Brunck
The additional headerfile is unneeded here, we can use the generic km_kirkwood.h instead. And we can use the better config option KM_PIGGY4_88E6061 for the specific features for boards with this design in km_arm.c. Signed-off-by: Holger Brunck <[email protected]> Signed-off-by: Valentin Longchamp <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: convert mgcoge3un target to km_kirkwoodHolger Brunck
Use the generic header km_kirkwood.h and get rid of the board specific header. changes for v2: rebased because of changes in other patches Signed-off-by: Holger Brunck <[email protected]> Signed-off-by: Valentin Longchamp <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: add kmcoge5un board supportHolger Brunck
For u-boot this board is similar to mgcoge3un. But some differences are present. We have a different SDRAM on it and therefore a new SDRAM config file. Additionaly this board has a direct MAC/MAC connection from the kirkwood to a marvell simple switch without a phy inbetween, this needs a new configuration for the mvgbe driver. Signed-off-by: Holger Brunck <[email protected]> Signed-off-by: Valentin Longchamp <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: add kmnusa board supportHolger Brunck
This board is similar to portl2, but it has the u-boot environment in a SPI NOR flash and not in an i2c eeprom like portl2 have. Some other details: - IVM EEPROM is at adress: pca9547:70:9 - PCI is enabled - PIGGY4 is connected via MV88E6352 simple switch. There is no phy between the simple switch and the kirkwood. Signed-off-by: Holger Brunck <[email protected]> Signed-off-by: Valentin Longchamp <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07cm-t35: fix incorrect NAND_ECC layout selectionNikita Kiryanov
The current configuration selects an incorrect NAND ECC layout, which causes u-boot to write HW ECC data incorrectly. This patch selects the right layout. Signed-off-by: Nikita Kiryanov <[email protected]>
2012-07-07ARM: OMAP4/5: Do not configure non essential pads, clocks, dplls.SRICHARAN R
Currently on OMAP4/5 platforms, many kernel drivers are dependent upon the bootloaders for mux, dpll and clock configurations. This should not be the case and bootloaders should set only the minimum required for the uboot functionality and kernel boot. Note that this is going to break the kernel drivers. But this is the only way to get things fixed in the kernel. Signed-off-by: R Sricharan <[email protected]>
2012-07-07Kirkwood: Add support for Ka-Ro TK71Marek Vasut
Signed-off-by: Marek Vasut <[email protected]> Cc: Prafulla Wadaskar <[email protected]> Cc: Wolfgang Denk <[email protected]>
2012-07-07arm/km: use spi claim bus to switch between SPI and NANDValentin Longchamp
We overwrite these weak functions from the kirkwood spi code to use our own method to be able to switch between the SPI NOR and the NAND flash. This is needed e.g. to update the u-boot. The former command do_spi_toggle can therefore be removed. And the usage of this command is removed from the u-boot update command in the u-boot environment. Signed-off-by: Valentin Longchamp <[email protected]> Signed-off-by: Prafulla Wadaskar <[email protected]> cc: Holger Brunck <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07lacie_kw: fix CONFIG_SYS_KWD_CONFIG for inetspace_v2Simon Guinot
Signed-off-by: Simon Guinot <[email protected]>
2012-07-07lacie_kw: fix SDRAM banks number for net2big_v2Simon Guinot
Signed-off-by: Simon Guinot <[email protected]>
2012-07-07Kirkwood: add lschlv2 and lsxhl board supportMichael Walle
This patch adds support for both the Linkstation Live (LS-CHLv2) and Linkstation Pro (LS-XHL) by Buffalo. Signed-off-by: Michael Walle <[email protected]> Cc: Prafulla Wadaskar <[email protected]>
2012-07-07net: add helper to generate random mac addressMichael Walle
Add new function eth_random_enetaddr() to generate a locally administered ethernet address. Signed-off-by: Michael Walle <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2012-07-07net: use common rand()/srand() functionsMichael Walle
Replace rand() with the functions from lib/. The link-local network code stores its own seed, derived from the MAC address. Thus making it independent from calls to srand() in other modules. Signed-off-by: Michael Walle <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2012-07-07lib: add rand() functionMichael Walle
It's a PRNG using the simple and fast xorshift method. Signed-off-by: Michael Walle <[email protected]> Cc: Wolfgang Denk <[email protected]>
2012-07-07km_arm: use filesize for erase in update commandValentin Longchamp
We used to have an arbitrary value, which can be a problem if we have a u-boot image that is bigger than this value. This patch is dependant on the whole km/arm series and will be included in the v3 of the series if there is one. Signed-off-by: Valentin Longchamp <[email protected]> cc: Holger Brunck <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: enable mii cmdValentin Longchamp
This is useful to debug the switch initialization Signed-off-by: Valentin Longchamp <[email protected]> Signed-off-by: Holger Brunck <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: remove CONFIG_RESET_PHY_RHolger Brunck
This is already defined in the generic kirkwood header. Signed-off-by: Holger Brunck <[email protected]> Signed-off-by: Valentin Longchamp <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: rename CONFIG option CONFIG_KM_DEF_ENV_UPDATEHolger Brunck
This config option sounds like the it is responsible for the update of the environment, but it is the u-boot update handling. Therefore we adapt it to a more apropriate naming. Signed-off-by: Holger Brunck <[email protected]> Signed-off-by: Prafulla Wadaskar <[email protected]> Signed-off-by: Valentin Longchamp <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: add piggy mac adress offset for mgcoge3unHolger Brunck
On mgcoge3un the piggy mac adress is at offset 3. Signed-off-by: Holger Brunck <[email protected]> Signed-off-by: Valentin Longchamp <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07arm/km: add board type to boards.cfgHolger Brunck
Some other kirkwood boards from keymile will follow. They will have some small differences, but we want to use the km_kirkwood.h for all to distinguish them. This patch a preparation for this. Signed-off-by: Holger Brunck <[email protected]> Signed-off-by: Valentin Longchamp <[email protected]> cc: Gerlando Falauto <[email protected]> cc: Prafulla Wadaskar <[email protected]>
2012-07-07AT91SAM9*: Change kernel address in dataflash to match u-boot's sizeAlexandre Belloni
On at91sam platforms, u-boot grew larger than the allocated size in dataflash, the layout was: bootstrap 0x00000000 ubootenv 0x00004200 uboot 0x00008400 kernel 0x00042000 fs 0x00252000 u-boot with the defconfig doesn't seem to fit in 0x42000 - 0x8400 = 0x39C00 bytes anymore. Now, the layout is: bootstrap 0x00000000 ubootenv 0x00004200 uboot 0x00008400 kernel 0x00084000 fs 0x00294000 Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Andreas Bießmann <[email protected]>
2012-07-07AT91: at91sam9m10g45ek : Enable EHCI instead OHCIBo Shen
Enable EHCI support instead OHCI Signed-off-by: Bo Shen <[email protected]> Signed-off-by: Andreas Bießmann <[email protected]>
2012-07-07Fix: AT91SAM9263 nor flash usage[email protected]
Fix: board doesn't boot from norflash Fix: environment can't write to flash (end address/start address not on sector boundary) Signed-off-by: Jens Scharsig (BuS Elektronik) <[email protected]> Signed-off-by: Andreas Bießmann <[email protected]>
2012-07-07mx53smd: Remove CONFIG_SYS_I2C_SLAVE definitionFabio Estevam
According to include/i2c.h: "/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif " As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file. Signed-off-by: Fabio Estevam <[email protected]>
2012-07-07mx53loco: Remove CONFIG_SYS_I2C_SLAVE definitionFabio Estevam
According to include/i2c.h: "/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif " As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file. Cc: Jason Liu <[email protected]> Signed-off-by: Fabio Estevam <[email protected]>
2012-07-07mx53evk: Remove CONFIG_SYS_I2C_SLAVE definitionFabio Estevam
According to include/i2c.h: "/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif " As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file. Cc: Jason Liu <[email protected]> Signed-off-by: Fabio Estevam <[email protected]>
2012-07-07mx53ard: Remove CONFIG_SYS_I2C_SLAVE definitionFabio Estevam
According to include/i2c.h: "/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif " As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file. Signed-off-by: Fabio Estevam <[email protected]>
2012-07-07mx35pdk: Remove CONFIG_SYS_I2C_SLAVE definitionFabio Estevam
According to include/i2c.h: "/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif " As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file. Signed-off-by: Fabio Estevam <[email protected]>
2012-07-07imx31_phycore: Remove CONFIG_SYS_I2C_SLAVE definitionFabio Estevam
According to include/i2c.h: "/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif " As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file. Signed-off-by: Fabio Estevam <[email protected]>
2012-07-07mx53ard: Remove unused CONFIG_MII_GASKETFabio Estevam
CONFIG_MII_GASKET is not defined anywhere, so remove it. Signed-off-by: Fabio Estevam <[email protected]>
2012-07-07m28evk: use same notation to alloc the 128kB stackOtavio Salvador
Signed-off-by: Otavio Salvador <[email protected]> Acked-by: Wolfgang Denk <[email protected]>
2012-07-07m28evk: drop duplicated definition of CONFIG_OF_LIBFDTOtavio Salvador
Signed-off-by: Otavio Salvador <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Stefano Babic <[email protected]> Cc: Wolfgang Denk <[email protected]> Acked-by: Marek Vasut <[email protected]>
2012-07-07mx28evk: fix board config include guardian macro nameOtavio Salvador
Signed-off-by: Otavio Salvador <[email protected]> Acked-by: Fabio Estevam <[email protected]>
2012-07-07mx28evk: ensure command definition is in alphabetic orderOtavio Salvador
Signed-off-by: Otavio Salvador <[email protected]> Acked-by: Fabio Estevam <[email protected]>
2012-07-07m28evk: fix board config include guardian macro nameOtavio Salvador
Signed-off-by: Otavio Salvador <[email protected]> Acked-by: Marek Vasut <[email protected]>
2012-07-07mx53loco: Fix revision of Dialog boardsFabio Estevam
Original code was assuming that the fuse revision version for all mx53loco boards based on Dialog PMIC was the same, which is not the case. Force the revision of all Dialog-based boards to 0. This fixes a kernel crash when PMIC is accessed in the 2.6.35 kernel for Dialog rev E boards. Signed-off-by: Fabio Estevam <[email protected]>
2012-07-07cm-t35: reduce the environment sizeIgor Grinberg
Reduce the environment size (128KB => 16KB) to improve the environment operations time (e.g. reading, ecc calculation). Also, remove the unused CONFIG_SYS_ENV_SECT_SIZE. Signed-off-by: Igor Grinberg <[email protected]>
2012-07-07omap3evm: Add CONFIG_CMD_ASKENVTom Rini
Signed-off-by: Tom Rini <[email protected]>
2012-07-07omap3_beagle: Add CONFIG_CMD_ASKENVTom Rini
Signed-off-by: Tom Rini <[email protected]>
2012-07-07omap3evm: Set BOOTDELAY to 3Tom Rini
We reduce the bootdelay from 10s to 3s to give users a short but usable window to interrupt the boot process if needed. Signed-off-by: Tom Rini <[email protected]>
2012-07-07OMAP3 Beagle: Set BOOTDELAY to 3Tom Rini
We change the bootdelay to give users a little bit longer to break in if needed. Signed-off-by: Tom Rini <[email protected]>
2012-07-07arm,davinci: update for enbw_cmc boardHeiko Schocher
- change gpio pin settings: - gpio pin 6[13] (PLC reset) default value low - gpio pin 6[0] (TPM reset) default value low - 4 new GPIO pins pin i/o name - 3[9] input Board Type - 2[7] input HW-ID0 - 2[6] input HW-ID1 - 2[3] input HW-ID2 - read board type and hw id from gpio pins on the enbw_cmc board, and use board type for setting up different gpio pin settings. - do not pass "davinci_mmc.use_dma=0" to linux, as MMC now works with DMA. - update logbuf support: store post word in RTC scratch register - add support for configuring KSZ8864RMN switch through a config file on u-boot startup. For more infos see: doc/README.switch_config Signed-off-by: Heiko Schocher <[email protected]> Cc: Wolfgang Denk <[email protected]> Cc: Tom Rini <[email protected]> Cc: Christian Riesch <[email protected]> Cc: Sandeep Paulraj <[email protected]>
2012-07-07omap4/5: Use CPUDIR for .lds scriptThomas Weber
Signed-off-by: Thomas Weber <[email protected]>
2012-07-07tegra: trimslice: fix a couple typosStephen Warren
Fix the .dts file USB unit addresses not to duplicate each-other. Fix the board name string to indicate the vendor is Compulab not NVIDIA. Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Tom Warren <[email protected]> Acked-by: Igor Grinberg <[email protected]>