summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-08-28 02:22:38 -0700
committerSimon Glass <sjg@chromium.org>2015-09-09 07:48:03 -0600
commit5bc60d5a44d8603923784b5cee400b6dbf2624c6 (patch)
tree640847f924ff0980b4e64a162002cba3308d67ef
parent98c845f2d5fd99e4d5a31e15fd0c06fb45213f02 (diff)
downloadu-boot-imx-5bc60d5a44d8603923784b5cee400b6dbf2624c6.zip
u-boot-imx-5bc60d5a44d8603923784b5cee400b6dbf2624c6.tar.gz
u-boot-imx-5bc60d5a44d8603923784b5cee400b6dbf2624c6.tar.bz2
x86: coreboot: Convert to use more dm drivers
Move to driver model for RTC, USB and ETH on coreboot. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/x86/cpu/coreboot/coreboot.c6
-rw-r--r--configs/coreboot-x86_defconfig5
2 files changed, 4 insertions, 7 deletions
diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c
index 0e9f15f..845f86a 100644
--- a/arch/x86/cpu/coreboot/coreboot.c
+++ b/arch/x86/cpu/coreboot/coreboot.c
@@ -8,7 +8,6 @@
#include <common.h>
#include <fdtdec.h>
-#include <netdev.h>
#include <asm/io.h>
#include <asm/msr.h>
#include <asm/mtrr.h>
@@ -48,11 +47,6 @@ int last_stage_init(void)
return 0;
}
-int board_eth_init(bd_t *bis)
-{
- return pci_eth_init(bis);
-}
-
void board_final_cleanup(void)
{
/*
diff --git a/configs/coreboot-x86_defconfig b/configs/coreboot-x86_defconfig
index ebaf86b..e95f96d 100644
--- a/configs/coreboot-x86_defconfig
+++ b/configs/coreboot-x86_defconfig
@@ -14,10 +14,13 @@ CONFIG_CMD_TPM_TEST=y
CONFIG_OF_CONTROL=y
CONFIG_DM_PCI=y
CONFIG_SPI_FLASH=y
-CONFIG_NETDEVICES=y
+CONFIG_DM_ETH=y
CONFIG_E1000=y
CONFIG_DM_TPM=y
CONFIG_TPM_TIS_LPC=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_DM_RTC=y
CONFIG_USE_PRIVATE_LIBGCC=y
CONFIG_SYS_VSNPRINTF=y
CONFIG_TPM=y