summaryrefslogtreecommitdiff
path: root/cmd
Commit message (Collapse)AuthorAgeFilesLines
* Merge git://git.denx.de/u-boot-fdtTom Rini2017-06-041-1/+2
|\
| * pci: Correct cast for sandboxSimon Glass2017-06-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | This gives a warning with some native compilers: cmd/pci.c:152:11: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u64 {aka long unsigned int}’ [-Wformat=] Fix it with a cast. Signed-off-by: Simon Glass <sjg@chromium.org>
* | fs: fat: add kbuild configuration supportSekhar Nori2017-06-031-0/+1
|/ | | | | | | | | | | | | Add Kconfig symbols for various configurations supported by FAT filesystem support code. CONFIG_SUPPORT_VFAT has been left out since its force enabled in include/fat.h and probably should get removed at some point. Signed-off-by: Sekhar Nori <nsekhar@ti.com> [trini: add select FS_FAT for CMD_FAT and SPL_FAT_SUPPORT] Signed-off-by: Tom Rini <trini@konsulko.com>
* dm: Use dm.h header when driver mode is usedSimon Glass2017-06-011-1/+1
| | | | | | | | This header includes things that are needed to make driver build. Adjust existing users to include that always, even if other dm/ includes are present Signed-off-by: Simon Glass <sjg@chromium.org>
* Kconfig: Finish migration of hashing commandsDaniel Thompson2017-05-312-5/+29
| | | | | | | | | | | | Currently these (board agnostic) commands cannot be selected using menuconfig and friends. Fix this the obvious way. As part of this, don't muddle the meaning of CONFIG_HASH_VERIFY to mean both 'hash -v' and "we have a hashing command" as this makes the Kconfig logic odd. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> [trini: Re-apply, add imply for a few cases, run moveconfig.py, also migrate CRC32_VERIFY] Signed-off-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_LZMADEC to KconfigSimon Glass2017-05-222-2/+11
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_LZMADEC Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_KGDB to KconfigSimon Glass2017-05-221-0/+9
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_KGDB Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_IRQ to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | | This converts the following to Kconfig: CONFIG_CMD_IRQ Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* fs: Kconfig: Add a separate option for FS_JFFS2Simon Glass2017-05-222-2/+3
| | | | | | | | | Rather than using CMD_JFFS2 for both the filesystem and its command, we should have a separate option for each. This allows us to enable JFFS2 support without the command, if desired, which reduces U-Boot's size slightly. Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_JFFS2 to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_JFFS2 Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_IOTRACE to KconfigSimon Glass2017-05-221-0/+34
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_IOTRACE Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_IO to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_IO Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_IMMAP to KconfigSimon Glass2017-05-222-704/+0
| | | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_IMMAP Also move this command out of the cmd/ directory since it is PowerPC-specific. Signed-off-by: Simon Glass <sjg@chromium.org>
* Kconfig: Add a CONFIG_IDE optionSimon Glass2017-05-222-1/+2
| | | | | | | | | | | At present IDE support is controlled by CONFIG_CMD_IDE. Add a separate CONFIG_IDE option so that IDE support can be enabled without requiring the 'ide' command. Update existing users and move the ide driver into drivers/block since it should not be in common/. Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_IDE to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_IDE Signed-off-by: Simon Glass <sjg@chromium.org>
* Kconfig: Add CONFIG_HASH to enable hashing APISimon Glass2017-05-221-0/+2
| | | | | | | | | At present CONFIG_CMD_HASH enables the 'hash' command which also brings in the hashing API. Some boards may wish to enable the API without the command. Add a separate CONFIG to permit this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_HASH to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_HASH Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> [trini: Rework slightly, enable on some boards again] Signed-off-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_GETTIME to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | | This converts the following to Kconfig: CONFIG_CMD_GETTIME Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_FUSE to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_FUSE Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_FPGA_LOADBP et al to KconfigSimon Glass2017-05-221-0/+26
| | | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_FPGA_LOADBP CONFIG_CMD_FPGA_LOADFS CONFIG_CMD_FPGA_LOADMK CONFIG_CMD_FPGA_LOADP Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_FPGAD to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_FPGAD Signed-off-by: Simon Glass <sjg@chromium.org>
* Kconfig: Drop CONFIG_CMD_FDT_MAX_DUMPSimon Glass2017-05-221-5/+3
| | | | | | This option is not used by any board. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_FDC to KconfigSimon Glass2017-05-221-0/+5
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_FDC Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_ETHSW to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_ETHSW Also enable it for sandbox to increase build coverage. Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_ENV_FLAGS to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_ENV_FLAGS Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_ENV_CALLBACK to KconfigSimon Glass2017-05-221-0/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_ENV_CALLBACK Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_EEPROM et al to KconfigSimon Glass2017-05-222-4/+48
| | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_EEPROM CONFIG_CMD_EEPROM_LAYOUT CONFIG_EEPROM_LAYOUT_HELP_STRING Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> [trini: Rework Kconfig logic slightly, define EEPROM location on TI eval platforms] Signed-off-by: Tom Rini <trini@konsulko.com>
* Drop digital thermometer and thermostat (DTT) driversSimon Glass2017-05-222-121/+0
| | | | | | | | | | This subsystem is quite old. It has been replaced with a driver-model version (UCLASS_THERMAL). Boards are free to convert to that if required, but here is a removal patch that could be applied in the meantime. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* i2c: Finish dropping use of CONFIG_I2C_HARDSimon Glass2017-05-151-2/+0
| | | | | | | Drop use of this long-deprecated option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* cmd/led.c: Remove unnecessary check on 'cmd' valueTom Rini2017-05-121-2/+0
| | | | | | | | | | | We first check that if argc is less than 2 we return CMD_RET_USAGE. We then see if argc is greater than 2 and if so call get_led_cmd() to set 'cmd' and otherwise set it to LEDST_COUNT (which will always be positive as it's an enum with 0 already assigned). Therefore the test on if cmd is less than 0 will always be false and simply be omitted. Reported by clang-3.8. Signed-off-by: Tom Rini <trini@konsulko.com>
* cmd/io.c: Fix comparison of unsigned expression warningTom Rini2017-05-121-1/+2
| | | | | | | | The function cmd_get_data_size() returns an int and not unsigned. So we should assign it to an int rather than unsigned so that we can later compare the return value. Reported by clang-3.8. Signed-off-by: Tom Rini <trini@konsulko.com>
* cmd/bdinfo.c: Fix unused function warningTom Rini2017-05-121-1/+1
| | | | | | | On most architectures we do not call print_std_bdinfo() so mark it with __maybe_unused. Reported by clang-3.8. Signed-off-by: Tom Rini <trini@konsulko.com>
* common: env: remove superfluous assignmentxypron.glpk@gmx.de2017-05-121-1/+0
| | | | | | | | The value assigned to variable 'value' is never used. The problem was indicated by clang scan-build. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* cmd: cpu: refactor to ensure devices are probed and improve code styleÁlvaro Fernández Rojas2017-05-101-17/+13
| | | | | | | | | | | Use uclass_first_device and uclass_next_device in order to avoid exceptions for drivers that aren't probed when cpu ops are requested. Improve code style and fix indentations. Fix incorrect line break when cpu info is not available. Remove unneeded brackets. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* cmd: cpu: fix NULL cpu feature printsÁlvaro Fernández Rojas2017-05-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Commit 740d5d3 added two new features but only one feature name, which results in NULL prints when device_id feature is selected. Before: HG556a # cpu detail -1: cpu@0 BCM6358A1 ID = 0, freq = 300 MHz: L1 cache, MMU, NULL Device ID 0x2a010 -1: cpu@1 BCM6358A1 ID = 1, freq = 300 MHz: L1 cache, MMU, NULL Device ID 0x2a010 After: HG556a # cpu detail -1: cpu@0 BCM6358A1 ID = 0, freq = 300 MHz: L1 cache, MMU, Device ID Device ID 0x2a010 -1: cpu@1 BCM6358A1 ID = 1, freq = 300 MHz: L1 cache, MMU, Device ID Device ID 0x2a010 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* arm64: mvebu: Fix the bubt comamnd NAND device supportKonstantin Porotchkin2017-05-091-6/+7
| | | | | | | | | | | Fix the NAND structures in bubt command according to latest changes in MTD API. Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Cc: Stefan Roese <sr@denx.de> Cc: Igal Liberman <igall@marvell.com> Cc: Nadav Haklai <nadavh@marvell.com> Signed-off-by: Stefan Roese <sr@denx.de>
* cmd: add Kconfig option for 'date' commandChris Packham2017-05-011-0/+7
| | | | | | Signed-off-by: Chris Packham <judge.packham@gmail.com> [trini: default y if DM_RTC, re-sync] Signed-off-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_DISPLAY to KconfigSimon Glass2017-04-301-0/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_DISPLAY Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_DIAG to KconfigSimon Glass2017-04-301-0/+8
| | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_DIAG Signed-off-by: Simon Glass <sjg@chromium.org> [trini: imply CMD_DIAG on some keymile configs] Signed-off-by: Tom Rini <trini@konsulko.com>
* fs: Kconfig: Add a separate option for FS_CRAMFSSimon Glass2017-04-301-0/+1
| | | | | | | | | | | Rather than using CMD_CRAMFS for both the filesystem and its command, we should have a separate option for each. This allows us to enable CRAMFS support without the command, if desired, which reduces U-Boot's size slightly. Signed-off-by: Simon Glass <sjg@chromium.org> [trini: imply FS_CRAMFS for keymile] Signed-off-by: Tom Rini <trini@konsulko.com>
* fs: Convert CONFIG_CMD_CRAMFS to KconfigSimon Glass2017-04-301-0/+10
| | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_CRAMFS Signed-off-by: Simon Glass <sjg@chromium.org> [trini: imply CMD_CRAMFS for keymile] Signed-off-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_CLK to KconfigSimon Glass2017-04-301-0/+9
| | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_CLK Signed-off-by: Simon Glass <sjg@chromium.org> [trini: imply CMD_CLK on ARCH_ZYNQ] Signed-off-by: Tom Rini <trini@konsulko.com>
* fs: Kconfig: Add a separate config for FS_CBFSSimon Glass2017-04-301-0/+1
| | | | | | | | | | | Rather than using CMD_CBFS for both the filesystem and its command, we should have a separate option for each. This allows us to enable CBFS support without the command, if desired, which reduces U-Boot's size slightly. Signed-off-by: Simon Glass <sjg@chromium.org> [trini: imply FS_CBFS on SYS_COREBOOT] Signed-off-by: Tom Rini <trini@konsulko.com>
* fs: Convert CONFIG_CMD_CBFS to KconfigSimon Glass2017-04-301-0/+9
| | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_CBFS Signed-off-by: Simon Glass <sjg@chromium.org> [trini: imply CMD_CBFS on SYS_COREBOOT] Signed-off-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_BSP to KconfigSimon Glass2017-04-301-0/+10
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_BSP Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_BMP to KconfigSimon Glass2017-04-301-0/+12
| | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_BMP Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Add depends on LCD || DM_VIDEO || VIDEO] Signed-off-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_BLOB to KconfigSimon Glass2017-04-302-1/+45
| | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_BLOB Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Add imply CMD_BLOB under CHAIN_OF_TRUST] Signed-off-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_BEDBUG to KconfigSimon Glass2017-04-301-0/+11
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_BEDBUG Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_AES et al to KconfigSimon Glass2017-04-301-0/+10
| | | | | | | | | | This converts the following to Kconfig: CONFIG_CMD_AES CONFIG_AES Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Add select AES to CMD_AES] Signed-off-by: Tom Rini <trini@konsulko.com>
* add Kconfig for fsuuid commandJosua Mayer2017-04-271-0/+5
| | | | | | | | CONFIG_CMD_FS_UUID was neither whitelisted, nor was it declared in Kconfig. Now it can be enabled in .config and defconfig as expected. Signed-off-by: Josua Mayer <josua.mayer97@gmail.com>