summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* arm: pxa: mmc: add driver model supportMarcel Ziswiler2020-06-302-28/+154
| | | | | | Add driver model (DM) support. Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
* kconfig: mmc: move pxa_mmc_generic to kconfigMarcel Ziswiler2020-06-304-8/+9
| | | | | | | Move CONFIG_PXA_MMC_GENERIC to Kconfig. Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* dm: core: gracefully handle alias seq without ofMarcel Ziswiler2020-06-302-1/+7
| | | | | | Gracefully handle alias seq in the platform data rather than OF case. Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
* Makefile: allow dm_mmc without of_controlMarcel Ziswiler2020-06-301-1/+1
| | | | | | | Allow for CONFIG_DM_MMC with platform data rather than CONFIG_OF_CONTROL. Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
* serial: pxa: clean-up platform data include fileMarcel Ziswiler2020-06-301-4/+4
| | | | | | | Clean-up platform data include file by using BIT macro and converting indentation with spaces to tabs. Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
* mmc: add missing space before comment delimiterMarcel Ziswiler2020-06-301-1/+1
| | | | | | | | Add missing space before a comment delimiter. Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
* Merge branch '2020-06-26-more-Kconfig-migration' into nextTom Rini2020-06-29325-365/+381
|\ | | | | | | | | | | | | | | | | - Bring in the first pass at cleaning up config headers that reference symbols that already have Kconfig symbols. - In order to do that, bring in the small series that adds CONFIG_SPL_DM_SPI_FLASH and makes more use of CONFIG_$(SPL_TPL_)DM_SPI in order to allow for disabling those features in SPL stuff but using them in full U-Boot
| * spi: Move DM_SPI_FLASH and SPI_FLASH_DATAFLASH to Kconfig (for ls1021aXXX)Lukasz Majewski2020-06-294-17/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch moves the CONFIG_DM_SPI_FLASH and CONFIG_SPI_FLASH_DATAFLASH to be defined in Kconfig, not in board specific header file (include/configs/<board>.h). Before this change the CONFIG_DM_SPI_FLASH was not set in .config (so it was not possible to use CONFIG_IS_ENABLED(DM_SPI_FLASH) in SPI DM/DTS converted drivers), but it was set in u-boot.cfg file. Signed-off-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
| * spi: Move DM_SPI_FLASH to Kconfig (for NXP's ls1043a)Lukasz Majewski2020-06-292-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes issue with defining the DM_SPI_FLASH in the configs/include/<board.h> instead of enabling this option in Kconfig. The problem is that CONFIG_IS_ENABLED(DM_SPI_FLASH) shows false as there is no DM_SPI_FLASH=y in .config (but the define is set in u-boot.cfg). As a result conversion of DM_SPI_FLASH to using CONFIG_IS_ENABLED() is not working properly. Signed-off-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
| * Convert CONFIG_CADENCE_QSPI to KconfigTom Rini2020-06-294-2/+3
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_CADENCE_QSPI Signed-off-by: Tom Rini <trini@konsulko.com>
| * spi: Convert CONFIG_DM_SPI* to CONFIG_$(SPL_TPL_)DM_SPI*Lukasz Majewski2020-06-2959-28/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows more fine tuning of driver model based SPI support in SPL and TPL. It is now possible to explicitly enable/disable the DM_SPI support in SPL and TPL via Kconfig option. Before this change it was necessary to use: /* SPI Flash Configs */ #if defined(CONFIG_SPL_BUILD) #undef CONFIG_DM_SPI #undef CONFIG_DM_SPI_FLASH #undef CONFIG_SPI_FLASH_MTD #endif in the ./include/configs/<board>.h, which is error prone and shall be avoided when we strive to switch to Kconfig. The goal of this patch: Provide distinction for DM_SPI support in both U-Boot proper and SPL (TPL). Valid use case is when U-Boot proper wants to use DM_SPI, but SPL must still support non DM driver. Another use case is the conversion of non DM/DTS SPI driver to support DM/DTS. When such driver needs to work in both SPL and U-Boot proper, the distinction is needed in Kconfig (also if SPL version of the driver supports OF_PLATDATA). In the end of the day one would have to support following use cases (in single driver file - e.g. mxs_spi.c): - U-Boot proper driver supporting DT/DTS - U-Boot proper driver without DT/DTS support (deprecated) - SPL driver without DT/DTS support - SPL (and TPL) driver with DT/DTS (when the SoC has enough resources to run full blown DT/DTS) - SPL driver with DT/DTS and SPL_OF_PLATDATA (when one have constrained environment with no fitImage and OF_LIBFDT support). Some boards do require SPI support (with DM) in SPL (TPL) and some only have DM_SPI{_FLASH} defined to allow compiling SPL. This patch converts #ifdef CONFIG_DM_SPI* to #if CONFIG_IS_ENABLED(DM_SPI) and provides corresponding defines in Kconfig. Signed-off-by: Lukasz Majewski <lukma@denx.de> Tested-by: Adam Ford <aford173@gmail.com> #da850-evm Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> [trini: Fixup a few platforms] Signed-off-by: Tom Rini <trini@konsulko.com>
| * x86: Don't build some unused objects in TPLTom Rini2020-06-292-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | In the future if we have separate symbols for DM_SPI_FLASH and SPL_DM_SPI_FLASH we will not always have function declarations available for some DM calls. This in turn leads to build warnings but not failures as the code isn't used and is discarded at link time. Restructure things to not build code we won't use for TPL anyways. Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
| * spi: Enable missing CONFIG_SPL_DM_SPI supportTom Rini2020-06-2672-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to how the Makefile logic is we currently get DM_SPI support in SPL enabled by having DM_SPI enabled for full U-Boot but not having CONFIG_SPL_DM_SPI set. Add this missing option to boards that were inadvertently making use of it. Cc: Adam Ford <aford173@gmail.com> Cc: Akash Gajjar <akash@openedev.com> Cc: Anatolij Gustschin <agust@denx.de> Cc: Andy Yan <andy.yan@rock-chips.com> Cc: Anup Patel <anup.patel@wdc.com> Cc: Atish Patra <atish.patra@wdc.com> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Chee Hong Ang <chee.hong.ang@intel.com> Cc: Chin-Liang See <clsee@altera.com> Cc: Dalon Westergreen <dwesterg@gmail.com> Cc: Dinh Nguyen <dinguyen@kernel.org> Cc: Eugen Hristev <eugen.hristev@microchip.com> Cc: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Cc: Heiko Schocher <hs@denx.de> Cc: Jagan Teki <jagan@amarulasolutions.com> Cc: Klaus Goger <klaus.goger@theobroma-systems.com> Cc: Levin Du <djw@t-chip.com.cn> Cc: Ley Foon Tan <ley.foon.tan@intel.com> Cc: Lokesh Vutla <lokeshvutla@ti.com> Cc: Luca Ceresoli <luca@lucaceresoli.net> Cc: Marek Vasut <marex@denx.de> Cc: Michal Simek <monstr@monstr.eu> Cc: Mike Looijmans <mike.looijmans@topic.nl> Cc: Nicolas Ferre <nicolas.ferre@microchip.com> Cc: Nikita Kiryanov <nikita@compulab.co.il> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Patrick Delaunay <patrick.delaunay@st.com> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Pavel Machek <pavel@denx.de> Cc: Peter Robinson <pbrobinson@gmail.com> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Cc: Simon Glass <sjg@chromium.org> Cc: Stefan Roese <sr@denx.de> Cc: Suniel Mahesh <sunil@amarulasolutions.com> Cc: Vitaly Andrianov <vitalya@ti.com> Cc: Wolfgang Grandegger <wg@aries-embedded.de> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
| * Kconfig: Remove CONFIG_CLOCKS_IN_MHZTom Rini2020-06-2617-45/+0
| | | | | | | | | | | | | | This variable is unset anywhere and only unset on a number of platforms. Remove all relevant code. Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_BOOTM_NETBSD to KconfigTom Rini2020-06-265-6/+3
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BOOTM_NETBSD Signed-off-by: Tom Rini <trini@konsulko.com>
| * arm: imx: Finish migration of CONFIG_CSF_SIZE to KconfigTom Rini2020-06-266-20/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While in most cases CSF_SIZE is handled via Kconfig we have some i.MX8M platforms that set the size based on the now-renamed CONFIG_SECURE_BOOT symbol. Update things so that CSF_SIZE itself depends on IMX_HAB being enabled and provide the default value for i.MX8M family of parts. Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <festevam@gmail.com> Cc: Ye Li <ye.li@nxp.com> Cc: NXP i.MX U-Boot Team <uboot-imx@nxp.com> Fixes: d714a75fd4dc ("imx: replace CONFIG_SECURE_BOOT with CONFIG_IMX_HAB") Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Stefano Babic <sbabic@denx.de> Reviewed-by: Ye Li <ye.li@nxp.com>
| * nxp: Finish switch to CONFIG_NXP_ESBCTom Rini2020-06-262-3/+3
| | | | | | | | | | | | | | | | | | | | There are two remaining users of the CONFIG_SECURE_BOOT symbol that have not been migrated to another symbol. In this case, they should be using CONFIG_NXP_ESBC as their guard. Cc: Vladimir Oltean <olteanv@gmail.com> Fixes: 5536c3c9d0d1 ("freescale/layerscape: Rename the config CONFIG_SECURE_BOOT name") Signed-off-by: Tom Rini <trini@konsulko.com>
| * arm: imx: Finish migration from CONFIG_SECURE_BOOT to CONFIG_IMX_HABTom Rini2020-06-264-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are a few remaining places where we say CONFIG_SECURE_BOOT rather than CONFIG_IMX HAB. Update these instances. Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <festevam@gmail.com> Cc: NXP i.MX U-Boot Team <uboot-imx@nxp.com> Cc: Eddy Petrișor <eddy.petrisor@gmail.com> Cc: Shawn Guo <shawnguo@kernel.org> Cc: Priyanka Jain <priyanka.jain@nxp.com> Fixes: d714a75fd4dc ("imx: replace CONFIG_SECURE_BOOT with CONFIG_IMX_HAB") Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
| * Convert CONFIG_CONSOLE_SCROLL_LINES to KconfigTom Rini2020-06-266-11/+0
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_CONSOLE_SCROLL_LINES Signed-off-by: Tom Rini <trini@konsulko.com>
| * arm: toradex: Convert CONFIG_CONSOLE_MUX to KconfigTom Rini2020-06-264-6/+0
| | | | | | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_CONSOLE_MUX Cc: Igor Opaniuk <igor.opaniuk@toradex.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * Convert CONFIG_CONS_INDEX to KconfigTom Rini2020-06-2629-31/+11
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_CONS_INDEX Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_CMDLINE_EDITING to KconfigTom Rini2020-06-261-4/+0
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_CMDLINE_EDITING Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_BUILD_TARGET to KconfigTom Rini2020-06-261-1/+0
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BUILD_TARGET Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_BOUNCE_BUFFER to KconfigTom Rini2020-06-261-3/+0
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BOUNCE_BUFFER Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_BOOTP_DNS2 to KconfigTom Rini2020-06-2671-20/+55
| | | | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BOOTP_DNS2 CONFIG_BOOTP_PXE_CLIENTARCH Signed-off-by: Tom Rini <trini@konsulko.com>
| * arm: abb secu1: Convert CONFIG_BOOTDELAY to KconfigTom Rini2020-06-261-1/+0
| | | | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BOOTDELAY Cc: Holger Brunck <holger.brunck@ch.abb.com> Signed-off-by: Tom Rini <trini@konsulko.com>
| * arm: capricorn: Convert CONFIG_BOOTCOUNT_ENV et al to KconfigTom Rini2020-06-263-3/+4
| | | | | | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BOOTCOUNT_ENV CONFIG_BOOTCOUNT_LIMIT Cc: Anatolij Gustschin <agust@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_BOARD_TYPES to KconfigTom Rini2020-06-268-3/+6
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BOARD_TYPES Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_BCH to KconfigTom Rini2020-06-264-4/+2
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BCH Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_BOOTARGS to KconfigTom Rini2020-06-2618-31/+17
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BOOTARGS Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_BOARD_EARLY_INIT_F et al to KconfigTom Rini2020-06-2632-18/+22
| | | | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BOARD_EARLY_INIT_F CONFIG_BOARD_EARLY_INIT_R Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_BAUDRATE to KconfigTom Rini2020-06-2627-50/+0
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_BAUDRATE Signed-off-by: Tom Rini <trini@konsulko.com>
| * bk4r1: Re-convert CONFIG_AUTOBOOT_PROMPT et al to KconfigTom Rini2020-06-262-6/+3
| | | | | | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_AUTOBOOT_PROMPT CONFIG_AUTOBOOT_KEYED CONFIG_AUTOBOOT_STOP_STR Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_ATMEL_USART to KconfigTom Rini2020-06-2618-8/+10
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_ATMEL_USART Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_ATMEL_NAND_HW_PMECC et al to KconfigTom Rini2020-06-263-7/+8
| | | | | | | | | | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_ATMEL_NAND_HW_PMECC CONFIG_ATMEL_NAND_HWECC CONFIG_NAND_ATMEL CONFIG_PMECC_CAP CONFIG_PMECC_SECTOR_SIZE Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_ATMEL_HLCD to KconfigTom Rini2020-06-265-2/+3
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_ATMEL_HLCD Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_AT91_GPIO to KconfigTom Rini2020-06-2624-18/+13
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_AT91_GPIO Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_ARM_PL180_MMCI to KconfigTom Rini2020-06-265-2/+3
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_ARM_PL180_MMCI Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_ARCH_MISC_INIT to KconfigTom Rini2020-06-264-3/+2
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_ARCH_MISC_INIT Signed-off-by: Tom Rini <trini@konsulko.com>
| * Convert CONFIG_AM335X_LCD to KconfigTom Rini2020-06-263-4/+1
|/ | | | | | | This converts the following to Kconfig: CONFIG_AM335X_LCD Signed-off-by: Tom Rini <trini@konsulko.com>
* Merge branch '2020-06-25-tidy-up-bd-command' into nextTom Rini2020-06-2515-486/+184
|\ | | | | | | | | - Tidy up the 'bdinfo' command so that it's both consistent for all architectures and sharing as much code as possible.
| * bdinfo: x86: vesa: Update fb_base to the correct valueSimon Glass2020-06-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Set this value in global_data so that it is reported correctly on x86 boards. In fact, U-Boot allocates space for the frame buffer even though it is not used. Then the FSP picks the address itself (e.g. 0xb0000000). So the value set by U-Boot (high in memory with everything else that is relocated), is not actually the correct value. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * bdinfo: dm: Update fb_base when using driver modelSimon Glass2020-06-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Update this value with the address of a video device so that it shows with the 'bd' command. It would be better to obtain the address from the uclass by looking in struct video_uc_platdata for each device. We can move over to that once DM_VIDEO migration is complete. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * bdinfo: Update the file commentsSimon Glass2020-06-251-6/+2
| | | | | | | | | | | | | | | | Update the comment at the top of the file to indicate what this file does. Also drop the line at the bottom and an unnecessary header include. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * bdinfo: m68k: ppc: Move arch-specific code from bdinfoSimon Glass2020-06-253-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | We don't have an easy way to share these three lines of code with two architectures. We also want to make it clear that this code is actually arch-specific. So just duplicate it in each arch-specific file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * bdinfo: m68k: Move m68k-specific info into its own fileSimon Glass2020-06-253-15/+30
| | | | | | | | | | | | | | | | | | | | | | | | We don't really want to have m68k-specific code in a generic file. Create a new arch-specific function to hold it, and move it into that. Make the function weak so that any arch can implement it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Angelo Dureghello <angelo.dureghello@timesys.com> Tested-by: Angelo Dureghello <angelo.dureghello@timesys.com>
| * bdinfo: ppc: Move PPC-specific info into its own fileSimon Glass2020-06-253-27/+43
| | | | | | | | | | | | | | | | | | | | | | We don't really want to have PPC-specific code in a generic file. Create a new arch-specific function to hold it, and move it into that. Make the function weak so that any arch can implement it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * bdinfo: arm: Move ARM-specific info into its own fileSimon Glass2020-06-254-38/+62
| | | | | | | | | | | | | | | | | | | | We don't really want to have ARM-specific code in a generic file. Create a new arch-specific function to hold it, and move it into that. Make the function weak so that any arch can implement it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * bdinfo: Export some basic printing functionsSimon Glass2020-06-252-39/+45
| | | | | | | | | | | | | | | | | | | | At present the functions to print a number and a frequency are static. We want to move some of the code in here to an arch-specific file. For consistency that code should use these same functions. So export them with an appropriate name. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * bdinfo: net: Inline print_eth_ip_addr()Simon Glass2020-06-251-11/+4
| | | | | | | | | | | | | | This function only has two lines of code now, so inline it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>