Browse Source

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>
Bin Meng 9 years ago
parent
commit
5bc60d5a44
2 changed files with 4 additions and 7 deletions
  1. 0 6
      arch/x86/cpu/coreboot/coreboot.c
  2. 4 1
      configs/coreboot-x86_defconfig

+ 0 - 6
arch/x86/cpu/coreboot/coreboot.c

@@ -8,7 +8,6 @@
 
 
 #include <common.h>
 #include <common.h>
 #include <fdtdec.h>
 #include <fdtdec.h>
-#include <netdev.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/msr.h>
 #include <asm/msr.h>
 #include <asm/mtrr.h>
 #include <asm/mtrr.h>
@@ -48,11 +47,6 @@ int last_stage_init(void)
 	return 0;
 	return 0;
 }
 }
 
 
-int board_eth_init(bd_t *bis)
-{
-	return pci_eth_init(bis);
-}
-
 void board_final_cleanup(void)
 void board_final_cleanup(void)
 {
 {
 	/*
 	/*

+ 4 - 1
configs/coreboot-x86_defconfig

@@ -14,10 +14,13 @@ CONFIG_CMD_TPM_TEST=y
 CONFIG_OF_CONTROL=y
 CONFIG_OF_CONTROL=y
 CONFIG_DM_PCI=y
 CONFIG_DM_PCI=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
-CONFIG_NETDEVICES=y
+CONFIG_DM_ETH=y
 CONFIG_E1000=y
 CONFIG_E1000=y
 CONFIG_DM_TPM=y
 CONFIG_DM_TPM=y
 CONFIG_TPM_TIS_LPC=y
 CONFIG_TPM_TIS_LPC=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_DM_RTC=y
 CONFIG_USE_PRIVATE_LIBGCC=y
 CONFIG_USE_PRIVATE_LIBGCC=y
 CONFIG_SYS_VSNPRINTF=y
 CONFIG_SYS_VSNPRINTF=y
 CONFIG_TPM=y
 CONFIG_TPM=y