Skip to contentSkip to conversation

x86: coreboot: Convert to use more dm drivers

PATCH New Bin Meng 2 participants 6 messages Aug 28, 2015 – Sep 1, 2015 x86

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/2 x86: coreboot: Convert to use more dm drivers

Move to driver model for RTC, USB and ETH on coreboot.

---

 arch/x86/cpu/coreboot/coreboot.c | 6 ------
 configs/coreboot-x86_defconfig   | 5 ++++-
 2 files changed, 4 insertions(+), 7 deletions(-)
arch/x86/cpu/coreboot/coreboot.c +0 -6
index 0e9f15f..845f86a 100644
@@ -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)
 {
 	/*
configs/coreboot-x86_defconfig +4 -1
index df3a624..b1e94f6 100644
@@ -12,7 +12,10 @@ CONFIG_CMD_BOOTSTAGE=y
 CONFIG_OF_CONTROL=y
 CONFIG_DM_PCI=y
 CONFIG_SPI_FLASH=y
-CONFIG_NETDEVICES=y
+CONFIG_DM_ETH=y
 CONFIG_E1000=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_DM_RTC=y
 CONFIG_USE_PRIVATE_LIBGCC=y
 CONFIG_SYS_VSNPRINTF=y
Signature · 1 line
1.8.2.1
author
#1 lore raw

PATCH 2/2 x86: bayleybay: Convert to use more dm drivers

Move to driver model for USB and ETH on Intel Bayley Bay.

---

 board/intel/bayleybay/bayleybay.c | 6 ------
 configs/bayleybay_defconfig       | 4 +++-
 2 files changed, 3 insertions(+), 7 deletions(-)
board/intel/bayleybay/bayleybay.c +0 -6
index 7844796..ccbe860 100644
@@ -6,14 +6,8 @@
 
 #include <common.h>
 #include <asm/gpio.h>
-#include <netdev.h>
 
 void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio)
 {
 	return;
 }
-
-int board_eth_init(bd_t *bis)
-{
-	return pci_eth_init(bis);
-}
configs/bayleybay_defconfig +3 -1
index 766576d..2ea30c8 100644
@@ -20,11 +20,13 @@ CONFIG_OF_CONTROL=y
 CONFIG_CPU=y
 CONFIG_DM_PCI=y
 CONFIG_SPI_FLASH=y
-CONFIG_NETDEVICES=y
+CONFIG_DM_ETH=y
 CONFIG_E1000=y
 CONFIG_VIDEO_VESA=y
 CONFIG_FRAMEBUFFER_SET_VESA_MODE=y
 CONFIG_FRAMEBUFFER_VESA_MODE_11A=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_DM_RTC=y
 CONFIG_USE_PRIVATE_LIBGCC=y
 CONFIG_SYS_VSNPRINTF=y
Signature · 1 line
1.8.2.1
#2 lore raw

PATCH 2/2 x86: bayleybay: Convert to use more dm drivers

Quoted 8 lines · Bin Meng

Move to driver model for USB and ETH on Intel Bayley Bay.

---

 board/intel/bayleybay/bayleybay.c | 6 ------
 configs/bayleybay_defconfig       | 4 +++-
 2 files changed, 3 insertions(+), 7 deletions(-)
#3 lore raw

PATCH 2/2 x86: bayleybay: Convert to use more dm drivers

Quoted 11 lines · Simon Glass
Quoted 8 lines · Bin Meng

Move to driver model for USB and ETH on Intel Bayley Bay.

---

 board/intel/bayleybay/bayleybay.c | 6 ------
 configs/bayleybay_defconfig       | 4 +++-
 2 files changed, 3 insertions(+), 7 deletions(-)

Great to get these conversions in.

Applied to u-boot-x86, thanks!

#5 lore raw

PATCH 1/2 x86: coreboot: Convert to use more dm drivers

Quoted 11 lines · Simon Glass
Quoted 8 lines · Bin Meng

Move to driver model for RTC, USB and ETH on coreboot.

---

 arch/x86/cpu/coreboot/coreboot.c | 6 ------
 configs/coreboot-x86_defconfig   | 5 ++++-
 2 files changed, 4 insertions(+), 7 deletions(-)

Applied to u-boot-x86, thanks!