summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Convert CONFIG_CMD_ETHSW to KconfigSimon Glass2017-05-2218-3/+22
| | | | | | | | | 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_ESBC_VALIDATE to KconfigSimon Glass2017-05-224-3/+9
| | | | | | | | This converts the following to Kconfig: CONFIG_CMD_ESBC_VALIDATE Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_ERRATA to KconfigSimon Glass2017-05-22100-22/+85
| | | | | | | | This converts the following to Kconfig: CONFIG_CMD_ERRATA Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_CMD_ENV_FLAGS to KconfigSimon Glass2017-05-229-5/+12
| | | | | | | 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-227-3/+11
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_ENV_CALLBACK Signed-off-by: Simon Glass <sjg@chromium.org>
* Kconfig: Drop CONFIG_CMD_ENVSimon Glass2017-05-2244-55/+0
| | | | | | This option is not used in U-Boot. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_ENTERRCM to KconfigSimon Glass2017-05-223-3/+16
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_ENTERRCM Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_EEPROM et al to KconfigSimon Glass2017-05-22232-107/+243
| | | | | | | | | | | | | 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>
* Convert CONFIG_CMD_EECONFIG to KconfigSimon Glass2017-05-227-3/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_EECONFIG Signed-off-by: Simon Glass <sjg@chromium.org>
* Convert CONFIG_CMD_ECCTEST to KconfigSimon Glass2017-05-226-3/+8
| | | | | | | This converts the following to Kconfig: CONFIG_CMD_ECCTEST Signed-off-by: Simon Glass <sjg@chromium.org>
* Kconfig: Drop CONFIG_SYS_I2C_DS4510_ADDRSimon Glass2017-05-224-13/+1
| | | | | | | | This is only used by one board and always set to 0x51. Drop this option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* Kconfig: Drop CONFIG_SYS_I2C_DS1621_ADDRSimon Glass2017-05-223-24/+0
| | | | | | | | Now that dtt is gone, this is not used. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* Drop digital thermometer and thermostat (DTT) driversSimon Glass2017-05-2256-1736/+35
| | | | | | | | | | 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>
* Drop three-wire serial (TWS) supportSimon Glass2017-05-229-309/+0
| | | | | | | | | | This subsystem has not been converted to driver model, there is only one driver and only one board that uses it. Drop it and its CONFIG option. Also drop the rtc4543 RTC driver since it uses TWS. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* Kconfig: Drop CONFIG_SYS_I2C_DTT_ADDRSimon Glass2017-05-227-18/+1
| | | | | | | | | | | | This option is only defined to a non-default value by canyonlands, which needs conversion to driver model (where the I2C address would be defined by the device tree). Drop this option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* Convert CONFIG_DS4510 to KconfigSimon Glass2017-05-227-4/+10
| | | | | | | | | This converts the following to Kconfig: CONFIG_DS4510 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* Kconfig: Drop CONFIG_CMD_DS4510Simon Glass2017-05-225-25/+10
| | | | | | | | | | | | | This option enables a command in the driver. But the functions defined by the driver are not called anywhere else in U-Boot. So it does not seem useful to have this driver without its commands. Drop this option, move the header file out of the common include/ directory and make all the function static. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* Kconfig: Drop CONFIG_CMD_DS4510_RSTSimon Glass2017-05-223-8/+0
| | | | | | | | | | | This option is only used in one driver and is not enabled by any board. It does not seem worth having the ability to remove this part of the support. Drop the option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* Kconfig: Drop CONFIG_CMD_DS4510_MEMSimon Glass2017-05-223-12/+0
| | | | | | | | | | | This option is only used in one driver and is not enabled by any board. It does not seem worth having the ability to remove this part of the support. Drop the option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* Kconfig: Drop CONFIG_CMD_DS4510_INFOSimon Glass2017-05-225-12/+0
| | | | | | | | | | | This option is only used in one driver and two boards. It does not seem worth having the ability to remove this part of the support. Drop the option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* lib: move hash CONFIG options to KconfigTom Rini2017-05-2249-66/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 94e3c8c4fd7b ("crypto/fsl - Add progressive hashing support using hardware acceleration.") created entries for CONFIG_SHA1, CONFIG_SHA256, CONFIG_SHA_HW_ACCEL, and CONFIG_SHA_PROG_HW_ACCEL. However, no defconfig has migrated to it. Complete the move by first adding additional logic to various Kconfig files to select this when required and then use the moveconfig tool. In many cases we can select these because they are required to implement other drivers. We also correct how we include the various hashing algorithms in SPL. This commit was generated as follows (after Kconfig additions): [1] tools/moveconfig.py -y SHA1 SHA256 SHA_HW_ACCEL [2] tools/moveconfig.py -y SHA_PROG_HW_ACCEL Note: We cannot move SHA_HW_ACCEL and SHA_PROG_HW_ACCEL simultaneously because there is dependency between them. Cc: Poonam Aggrwal <poonam.aggrwal@freescale.com> Cc: Naveen Burmi <NaveenBurmi@freescale.com> Cc: Po Liu <po.liu@freescale.com> Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com> Cc: Priyanka Jain <Priyanka.Jain@freescale.com> Cc: Shaohui Xie <Shaohui.Xie@freescale.com> Cc: Chunhe Lan <Chunhe.Lan@freescale.com> Cc: Chander Kashyap <k.chander@samsung.com> Cc: Steve Rae <steve.rae@raedomain.com> Cc: Dirk Eibach <eibach@gdsys.de> Cc: Feng Li <feng.li_2@nxp.com> Cc: Alison Wang <alison.wang@freescale.com> Cc: Sumit Garg <sumit.garg@nxp.com> Cc: Mingkai Hu <Mingkai.Hu@freescale.com> Cc: York Sun <york.sun@nxp.com> Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Akshay Saraswat <akshay.s@samsung.com> Cc: Heiko Schocher <hs@denx.de> Cc: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
* FIT: Rename FIT_DISABLE_SHA256 to FIT_ENABLE_SHA256_SUPPORTTom Rini2017-05-2216-36/+25
| | | | | | | | | | | | We rename CONFIG_FIT_DISABLE_SHA256 to CONFIG_FIT_ENABLE_SHA256_SUPPORT which is enabled by default and now a positive option. Convert the handful of boards that were disabling it before to save space. Cc: Dirk Eibach <eibach@gdsys.de> Cc: Lukasz Dalek <luk0104@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
* test: py: Add cmd_echo dependencyMichal Simek2017-05-222-0/+7
| | | | | | | | There is missing dependency on echo command. Mark tests which requires echo. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Convert CONFIG_SPL_BOARD_INIT to KconfigLey Foon Tan2017-05-2277-57/+42
| | | | | | | | | This converts the following to Kconfig: CONFIG_SPL_BOARD_INIT Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> [trini: Update the Kconfig logic] Signed-off-by: Tom Rini <trini@konsulko.com>
* Merge branch 'master' of git://www.denx.de/git/u-boot-imxTom Rini2017-05-1854-2394/+2989
|\
| * Merge branch 'master' of git://git.denx.de/u-boot-imxStefano Babic2017-05-180-0/+0
| |\ | | | | | | | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
| | * engicam: common: Move board_late_initJagan Teki2017-05-116-83/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | Move board_late_init into common area from supported boards. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * engicam: common: Move common board codeJagan Teki2017-05-117-147/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move possible common board code into common area from supported boards. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * geam6/isiot: Move the spl code commonJagan Teki2017-05-114-245/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SPL code for geam6 and isiot are same, so move them in common area. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * icorem6[_rqs]: Move the spl code commonJagan Teki2017-05-114-570/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SPL code for icorem6 and icorem6_rqs are same, so move them in common area. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * i.MX6UL: isiot: Add SETUP_IOMUX_PADSJagan Teki2017-05-111-41/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add generic SETUP_IOMUX_PADS function, for imx6ul mux pads and use them in Is.IoT board. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * isiot: Fix to use usdhc2_pads for mmc2Jagan Teki2017-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mmc2 in Is.IoT using usdhc1_pads instead usdhc2_pads, so update the same. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * i.MX6UL: geam6ul: Add SETUP_IOMUX_PADSJagan Teki2017-05-112-30/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add generic SETUP_IOMUX_PADS function, for imx6ul mux pads. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * icorem6: Use drive strength macrosJagan Teki2017-05-112-140/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use driver strength macros instead of hex numbers. - IMX6DQ_DRIVE_STRENGTH - 0x30 - IMX6SDL_DRIVE_STRENGTH - 0x28 Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * icorem6: Use proper iomux_ddr_regs drive strength valuesJagan Teki2017-05-112-58/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usually the drive strength values for DQ and SDL are 0x30 and 0x28 respectively, update them accordingly. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * engicam: Move uart mux init to SPLJagan Teki2017-05-114-68/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since, u-boot handle fdt through uart so move the UART code to SPL instead make it to global area. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * icorem6: Make SPL to pick suitable fdtJagan Teki2017-05-1111-177/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SPL FIT is able to pick the suitable fdt file for u-boot, so add that function through board_fit_config_name_match. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * engicam: Set fdt_file env during run-timeJagan Teki2017-05-1119-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | Set fdt_file env variable during board_late_init Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * geam6ul: Add mmc_late_initJagan Teki2017-05-112-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let the runtime code can set the mmcdev and mmcroot based on the devno using mmc_get_env_dev instead of defining separately in build-time configs using mmc_late_init func. Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Cc: Stefano Babic <sbabic@denx.de> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * geam6ul: Add modeboot env via board_late_initJagan Teki2017-05-113-19/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add runtime, modeboot env which is setting mmcboot, or nandboot based on the bootdevice so-that conditional macros b/w MMC and NAND for CONFIG_BOOTCOMMAND should be avoided in config files. Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Cc: Stefano Babic <sbabic@denx.de> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * icorem6: Add mmc_late_initJagan Teki2017-05-112-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let the runtime code can set the mmcdev and mmcroot based on the devno using mmc_get_env_dev instead of defining separately in build-time configs using mmc_late_init func. Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * icorem6: Add modeboot env via board_late_initJagan Teki2017-05-113-20/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add runtime, modeboot env which is setting mmcboot, or nandboot based on the bootdevice so-that conditional macros b/w MMC and NAND for CONFIG_BOOTCOMMAND should be avoided in config files. Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Cc: Stefano Babic <sbabic@denx.de> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| | * imx-common: rdc-sema: correct return valuePeng Fan2017-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When unlock, if caller is not the sema owner, return -EACCES, not 1. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
| | * thermal: imx: fix calculationPeng Fan2017-05-111-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | Fix calculation. do_div can not handle negative values. Use div_s64_rem to handle the calculation. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
| | * imx: thermal: update imx6 thermal driver according new equationPeng Fan2017-05-111-17/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | >From IC guys: " After a thorough accuracy study of the Temp sense circuit, we found that with our current equation, an average part can read 7 degrees lower than a known forced temperature. We also found out that the standard variance was around 2C; which is the tightest distribution that we could create. We need to change the temp sense equation to center the average part around the target temperature. " New equation: Tmeas = (Nmeas - n1) / slope + t1 + offset n1= fused room count t1= 25 offset=3.580661 slope= 0.4148468 – 0.0015423*n1 According the new equation, update the thermal driver. c1 and c2 changed to u64 type and update comments. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
| | * imx-common: timer: clean upPeng Fan2017-05-111-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | Drop the unneeded code. lib/time.c use timebase_l/h. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Stefano Babic <sbabic@denx.de>
| | * mx25pdk: Add fuse API supportFabio Estevam2017-05-111-0/+4
| | | | | | | | | | | | | | | | | | | | | Select CONFIG_FSL_IIM and CONFIG_CMD_FUSE so that the fuse API can be used. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
| | * Merge branch 'master' of git://git.denx.de/u-bootStefano Babic2017-05-091339-8374/+14152
| | |\ | | | | | | | | | | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
| | * | net: fec_mxc: specify the registered eth index by dev_idAndy Duan2017-04-181-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specify the registered eth index by dev_id. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Joe Hershberger <joe.hershberger@ni.com>
| | * | net: fec_mxc: avoid transfer dev_id -1 to get mac address from fuseAndy Duan2017-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid transfer parameter dev_id value with "-1" to .fec_get_hwaddr(), it should transfer fec->dev_id to get mac address from fuse. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Stefano Babic <sbabic@denx.de>