summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bzip2: Support compression for sandboxSimon Glass2016-01-204-0/+1852
| | | | | | | | | | | Add the missing code to allow bzip2 compression to be used. This is useful for sandbox tests. These files are taken from the bzip2 1.0.6 release. The license text is copied to the top of each file as is done with other bzip2 files in U-Boot. The only other change is to squash a compiler warning with nBytes. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* dm: core: Call uclass post_bind() after the driver's bind() methodSimon Glass2016-01-202-5/+7
| | | | | | | | | | | | | | | | | At present the uclass's post_bind() method is called before the driver's bind() method. This means that the uclass cannot use any of the information set up by the driver. Move it later in the sequence to permit this. This is an ordering change which is always fairly major in nature. The main impact is that devices which have children will not see them appear in their bind() method. From what I can see, existing drivers do not look at their children in the bind() method, so this should be safe. Conceptually this change seems to result in a 'more correct' ordering, since the uclass (which is broader than the device) gets the last word. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* sandbox: Support the bmp commandSimon Glass2016-01-201-5/+8
| | | | | | | | Adjust this command to use map_sysmem() correctly so that it works on sandbox. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* tiny-printf: Always print zeroesSimon Glass2016-01-201-4/+12
| | | | | | | | | At present this does not print zero values in numeric format (hex and decimal). Add a special case for this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* pinctrl: Avoid binding all pinconfig nodes before relocationSimon Glass2016-01-201-0/+4
| | | | | | | | This can create a large number of pinctrl devices. It chews up early malloc() memory and takes time. Only bind those which are marked as needed before relocation. Signed-off-by: Simon Glass <sjg@chromium.org>
* i2c: Correct command return valuesSimon Glass2016-01-201-2/+4
| | | | | | | | | We should not return a -ve error code from command functions. Instead, return CMD_RET_FAILURE. This avoids the "exit not allowed from main input shell" error messages from the hush shell. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de>
* dm: mmc: Try to honour the sequence orderSimon Glass2016-01-201-5/+15
| | | | | | | | | | | | At present we add driver-model MMC devices in the order we find them. The 'alias' order is not honoured. It is difficult to fix this for the case where we have holes in the sequence. But for the common case where the devices are numbered from 0 without any gaps, we can add the devices to the internal data structures in this order. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: gpio: Allow the uclass to work without printf()Simon Glass2016-01-201-0/+8
| | | | | | | For SPL we don't really need sprintf() and with tiny-printf this is not available. Allow this to be dropped in SPL when using tiny-printf. Signed-off-by: Simon Glass <sjg@chromium.org>
* tiny-printf: Avoid printing NULL stringsSimon Glass2016-01-201-2/+4
| | | | | | | Add a check for NULL strings to avoid printing junk to the console. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de>
* defconfig: dra74_evm: enable timer driver modelMugunthan V N2016-01-201-0/+2
| | | | | | | | Enable timer driver model for dra74_evm_defconfig as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* arm: dts: dra7-evm: add tick-timer to chosen nodeMugunthan V N2016-01-201-0/+1
| | | | | | | Specify timer2 to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* defconfig: dra72_evm: enable timer driver modelMugunthan V N2016-01-201-0/+2
| | | | | | | | Enable timer driver model for dra72_evm_defconfig as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* arm: dts: dra72-evm: add tick-timer to chosen nodeMugunthan V N2016-01-201-0/+1
| | | | | | | Specify timer2 to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* ti_omap5_common: timer: do not define CONFIG_TIMER for splMugunthan V N2016-01-201-0/+1
| | | | | | | | Since OMAP's spl doesn't support DM currently, do not define CONFIG_TIMER for spl build. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* defconfig: am335x_gp_evm: enable timer driver modelMugunthan V N2016-01-201-0/+2
| | | | | | | | Enable timer driver model for am335x_gp_evm as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* arm: dts: am335x-evm: add tick-timer to chosen nodeMugunthan V N2016-01-201-0/+1
| | | | | | | Specify timer2 to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* defconfig: am335x_boneblack_vboot: enable timer driver modelMugunthan V N2016-01-201-0/+2
| | | | | | | | Enable timer driver model for am335x_boneblack_vboot as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* arm: dts: am335x-boneblack: add tick-timer to chosen nodeMugunthan V N2016-01-201-0/+1
| | | | | | | Specify which timer to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* am335x_evm: timer: do not define CONFIG_TIMER for splMugunthan V N2016-01-201-0/+1
| | | | | | | | Since OMAP's spl doesn't support DM currently, do not define CONFIG_TIMER for spl build. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* defconfig: am437x_gp_evm: enable timer driver modelMugunthan V N2016-01-201-0/+2
| | | | | | | | Enable timer driver model for am437x_gp_evm as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* arm: dts: am437x-gp-evm: add tick-timer to chosen nodeMugunthan V N2016-01-201-0/+1
| | | | | | | Specify which timer to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* defconfig: am437x_sk_evm: enable timer driver modelMugunthan V N2016-01-201-0/+2
| | | | | | | | Enable timer driver model for am437x_sk_evm as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* arm: dts: am437x-sk-evm: add tick-timer to chosen nodeMugunthan V N2016-01-201-0/+1
| | | | | | | Specify which timer to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* am43xx_evm: timer: do not define CONFIG_TIMER for splMugunthan V N2016-01-201-0/+1
| | | | | | | | Since OMAP's spl doesn't support DM currently, do not define CONFIG_TIMER for spl build. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* drivers: timer: omap_timer: add timer driver for omap devices based on dmMugunthan V N2016-01-203-0/+115
| | | | | | | Adding a timer driver for omap devices based on driver model and device tree. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
* dm: timer: uclass: Add flag to control sequence numberingMugunthan V N2016-01-201-0/+1
| | | | | | | | | | | | Like SPI and I2C, timer devices also have multiple chip instances. This patch adds the flag 'DM_UC_FLAG_SEQ_ALIAS' in timer_uclass driver to control device sequence numbering. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* dm: timer: uclass: add timer init in uclass driver to add timer deviceMugunthan V N2016-01-204-17/+96
| | | | | | | | | | Adding timer init function in timer-uclass driver to create and initialize the timer device on platforms where u-boot,dm-pre-reloc is not used. Since there will be multiple timer devices in the system, adding a tick-timer node in chosen node to know which timer device to be used as tick timer in u-boot. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
* arm: omap-common: do not build timer when CONFIG_TIMER definedMugunthan V N2016-01-201-0/+6
| | | | | | | | | | To prepare timer driver to DM/DT conversion do not build the exiting timer driver when CONFIG_TIMER is defined. But since omap's SPL doesn't support DM yet so built timer driver only for SPL build when CONFIG_TIMER is defined. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* dm: core: Provide uclass_find_device_by_phandle() only when neededSimon Glass2016-01-201-0/+4
| | | | | | | This function cannot be used unless support is enabled for device tree control. Adjust the code to reflect that. Signed-off-by: Simon Glass <sjg@chromium.org>
* iocon / bamboo: Drop CONFIG_SYS_LONGHELPTom Rini2016-01-202-0/+6
| | | | | | | | | | The iocon and bamboo boards are often on the verge of, or going over, their allowed size limits depending on toolchain used. If we turn off CONFIG_SYS_LONGHELP we can gain approximately 14KiB back. Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Stefan Roese <sr@denx.de> Acked-by: Dirk Eibach <dirk.eibach@gdsys.cc>
* stm32: move stm32 specific code to mach-stm32Vikas Manocha2016-01-2019-7/+39
| | | | | | | This patch moves stm32 sources at one place, with this armv7m now contains only generic stuff. Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
* udoo:use load instead of fatloadOscar Curero2016-01-201-3/+3
| | | | | | | That way the FS can also be ext2/3/4 Signed-off-by: Oscar Curero <oscar@naiandei.net> Acked-by: Fabio Estevam <fabio.estevam@nxp.com>
* am335x: BeagleBones enable CONFIG_AUTOBOOT_KEYEDrobertcnelson@gmail.com2016-01-203-0/+12
| | | | | | | | | | | | | On startup, the BeagleBone family of boards can occationally halt at the U-Boot prompt. Due to U-Boot receiving random data on the usart. Migrate BeagleBone based boards to use CONFIG_AUTOBOOT_KEYED, user will now have to enter the <SPACE> key to get to U-Boot prompt Signed-off-by: Robert Nelson <robertcnelson@gmail.com> CC: Craig McQueen <craig.mcqueen@innerrange.com> CC: Tom Rini <trini@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* powerpc/83xx: fix build failureShengzhou Liu2016-01-201-1/+0
| | | | | | | Remove duplicated SDRAM_INTERVAL_BSTOPRE from mpc83xx.h, which has been defined in fsl_ddr_sdram.h Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
* igep00x0: Remove no-op macros from config headerLadislav Michl2016-01-201-5/+0
| | | | | | | | | The patch removes some macros that are not used. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Acked-by: Enric Balletbo Serra <enric.balletbo@collabora.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* igep00x0: Fix config header indentationLadislav Michl2016-01-201-3/+3
| | | | | | | | | The patch fixes some indentation style problems in omap3_igep00x0.h file. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Acked-by: Enric Balletbo Serra <enric.balletbo@collabora.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* igep00x0: Do not include config_distro_defaults.hLadislav Michl2016-01-201-2/+0
| | | | | | | | | | | File is already included: omap3_igep00x0.h -> ti_omap3_common.h -> ti_armv7_omap.h -> ti_armv7_common.h -> config_distro_defaults.h Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Acked-by: Enric Balletbo Serra <enric.balletbo@collabora.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* igep00x0: Cleanup ethernet supportLadislav Michl2016-01-201-14/+19
| | | | | | | | | | | - move chip reset to separate function - use CONFIG_SMC911X_BASE instead of hardcoded value - remove unneeded local variable from board_eth_init. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Enric Balletbo Serra <enric.balletbo@collabora.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* igep00x0: enable CONFIG_NET_RANDOM_ETHADDREnric Balletbò i Serra2016-01-203-0/+3
| | | | | | | | | Enable CONFIG_NET_RANDOM_ETHADDR to generate a random MAC address when ETHADDR is not set. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* armv7: Add missing newline after OMAP die IDLadislav Michl2016-01-201-2/+2
| | | | | Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Acked-by: Enric Balletbo Serra <enric.balletbo@collabora.com>
* ti_omap3_common: Do not define CONFIG_SPL_NAND_SUPPORTLadislav Michl2016-01-201-1/+0
| | | | | | | | Symbol is already defined in ti_armv7_common.h which is included via ti_armv7_omap.h Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* kbuild: drop workaround for old style CONFIG_SYS_TEXT_BASE definesMasahiro Yamada2016-01-201-6/+0
| | | | | | | | Now, there is no board defining CONFIG_SYS_TEXT_BASE by its config.mk, so this workaround is no longer needed. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Stefan Roese <sr@denx.de>
* powerpc: yucca: drop redundant CONFIG_SYS_TEXT_BASE from config.mkMasahiro Yamada2016-01-201-6/+0
| | | | | | | | | | The include/configs/yucca.h already has the same define: #define CONFIG_SYS_TEXT_BASE 0xfffb0000 Remove the redundant one from board/amcc/yucca/config.mk. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Stefan Roese <sr@denx.de>
* mips: pb1x00: move CONFIG_SYS_TEXT_BASE away from config.mkMasahiro Yamada2016-01-202-16/+5
| | | | | | | | | | We can delete board/pb1x00/config.mk by moving the define of CONFIG_SYS_TEXT_BASE to somewhere else. Other MIPS boards are still defining it in include/config/${BOARD}.h, so I am following that way here. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
* mips: dbau1x00: move CONFIG_SYS_TEXT_BASE away from config.mkMasahiro Yamada2016-01-202-16/+5
| | | | | | | | | | We can delete board/dbau1x00/config.mk by moving the define of CONFIG_SYS_TEXT_BASE to somewhere else. Other MIPS boards are still defining it in include/config/${BOARD}.h, so I am following that way here. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
* mips: vct: move CONFIG_SYS_TEXT_BASE away from config.mkMasahiro Yamada2016-01-202-13/+1
| | | | | | | | | | We can delete board/micronas/vct/config.mk by moving the define of CONFIG_SYS_TEXT_BASE to somewhere else. Other MIPS boards are still defining it in include/config/${BOARD}.h, so I am following that way here. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
* microblaze: move CONFIG_SYS_TEXT_BASE to defconfigMasahiro Yamada2016-01-203-3/+2
| | | | | | | This is how CONFIG options are defined by Kconfig. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Michal Simek <michal.simek@xilinx.com>
* m68k: M54418TWR: drop board/freescale/m54418twr/config.mkMasahiro Yamada2016-01-203-12/+5
| | | | | | | | | | | | | | The board/freescale/m54418twr/config.mk defined TEXT_BASE, which has the same value as CONFIG_SYS_TEXT_BASE. The TEXT_BASE is referenced by two files: - arch/m68k/cpu/mcf5445x/start.S and include/ - include/configs/M54418TWR.h Replace the references with CONFIG_SYS_TEXT_BASE and delete board/freescale/m54418twr/config.mk. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Angelo Dureghello <angelo at sysam.it>
* m68k: move CONFIG_SYS_TEXT_BASE to defconfig filesMasahiro Yamada2016-01-2062-144/+67
| | | | | | | | | | | | | | | | | | | | | | | | For historical reason, CONFIG_SYS_TEXT_BASE has been specified in various ways: [1] by board/${VENDOR}/${BOARD}/config.mk [2] by CONFIG_SYS_EXTRA_OPTIONS (This was "options" field of boards.cfg before Kconfig conversion) [3] by include/configs/${BOARD}.h [4] by configs/${BOARD}_defconfig Most of M68K boards use either [1] or [2], both of which we want to deprecate. Switch them into [4], which is the newest way (Kconfig). We still allow [3] too, because it is still used by many boards and we expect much time for conversion. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Angelo Dureghello <angelo at sysam.it> Reviewed-by: Simon Glass <sjg@chromium.org>
* spi: ti_qspi: Use 4-byte opcode for mmap readVignesh R2016-01-201-3/+3
| | | | | | | | | | | | ti-qspi driver currently uses 3-byte addressing mode(and opcodes) for memory-mapped read. This restricts maximum addressable flash size to 16MB. Enable the 4-byte addressing(and use 4-byte opcode) for memory-mapped read to allow access to addresses above 16MB. Signed-off-by: Ravi Babu <ravibabu@ti.com> [vigneshr@ti.com: Re-word commit description] Signed-off-by: Vignesh R <vigneshr@ti.com>
OpenPOWER on IntegriCloud