Skip to content
Snippets Groups Projects
Commit d7a4b2e4 authored by Simon Glass's avatar Simon Glass
Browse files

dm: tegra: Move driver model CONFIGs to Kconfig


Remove driver model CONFIGs from the board config headers and use Kconfig
instead.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 9a89d50d
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,24 @@ endchoice ...@@ -20,6 +20,24 @@ endchoice
config USE_PRIVATE_LIBGCC config USE_PRIVATE_LIBGCC
default y if SPL_BUILD default y if SPL_BUILD
config DM
default y if !SPL_BUILD
config DM_SERIAL
default y if !SPL_BUILD
config DM_SPI
default y if !SPL_BUILD
config DM_SPI_FLASH
default y if !SPL_BUILD
config DM_I2C
default y if !SPL_BUILD
config DM_GPIO
default y if !SPL_BUILD
source "arch/arm/cpu/armv7/tegra20/Kconfig" source "arch/arm/cpu/armv7/tegra20/Kconfig"
source "arch/arm/cpu/armv7/tegra30/Kconfig" source "arch/arm/cpu/armv7/tegra30/Kconfig"
source "arch/arm/cpu/armv7/tegra114/Kconfig" source "arch/arm/cpu/armv7/tegra114/Kconfig"
......
...@@ -18,16 +18,6 @@ ...@@ -18,16 +18,6 @@
#include <asm/arch/tegra.h> /* get chip and board defs */ #include <asm/arch/tegra.h> /* get chip and board defs */
#define CONFIG_DM
#define CONFIG_CMD_DM
#define CONFIG_DM_GPIO
#ifndef CONFIG_SPL_BUILD
#define CONFIG_DM_SERIAL
#endif
#define CONFIG_DM_SPI
#define CONFIG_DM_SPI_FLASH
#define CONFIG_DM_I2C
#define CONFIG_SYS_TIMER_RATE 1000000 #define CONFIG_SYS_TIMER_RATE 1000000
#define CONFIG_SYS_TIMER_COUNTER NV_PA_TMRUS_BASE #define CONFIG_SYS_TIMER_COUNTER NV_PA_TMRUS_BASE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment