Skip to contentSkip to conversation

x86: Convert all boards to DM MMC and SCSI

PATCH New Bin Meng 2 participants 11 messages Jul 31, 2017 – Aug 1, 2017

Subsystems (4)
lore
Share & tools
lore

Bin Meng

author
#0 lore raw

v2 cover x86: Convert all boards to DM MMC and SCSI

This series converts all x86 boards to use DM MMC and SCSI.

It is based on previous x86 kconfig clean up series, and is available at u-boot-x86/blk-working for testing.

Changes in v2:
- Fix unmet direct dependencies on BLK

Bin Meng (3):
dm: scsi: Add a generic PCI-based AHCI driver
block: ide: Fix build error when CONFIG_BLK is on
x86: Switch all boards to use DM SCSI

Simon Glass (1):
x86: Convert MMC to driver model

 arch/Kconfig                              |  3 ++
 arch/x86/cpu/baytrail/Kconfig             |  1 +
 arch/x86/cpu/baytrail/valleyview.c        | 12 -----
 arch/x86/cpu/broadwell/Kconfig            |  1 +
 arch/x86/cpu/coreboot/Kconfig             |  1 +
 arch/x86/cpu/ivybridge/Kconfig            |  1 +
 arch/x86/cpu/qemu/Kconfig                 |  1 +
 arch/x86/cpu/quark/quark.c                | 10 ----
 arch/x86/cpu/queensbay/Kconfig            |  1 +
 arch/x86/cpu/queensbay/Makefile           |  2 +-
 arch/x86/cpu/queensbay/topcliff.c         | 20 -------
 configs/chromebook_link64_defconfig       |  2 -
 configs/chromebook_link_defconfig         |  2 -
 configs/chromebox_panther_defconfig       |  2 -
 configs/edison_defconfig                  |  1 -
 drivers/ata/Kconfig                       |  6 +++
 drivers/ata/Makefile                      |  1 +
 drivers/ata/ahci-pci.c                    | 42 +++++++++++++++
 drivers/block/ide.c                       |  2 +
 drivers/mmc/pci_mmc.c                     | 86 +++++++++++++++++++++----------
 include/configs/bayleybay.h               |  4 --
 include/configs/conga-qeval20-qa3-e3845.h |  4 --
 include/configs/cougarcanyon2.h           |  3 --
 include/configs/crownbay.h                |  3 --
 include/configs/dfi-bt700.h               |  4 --
 include/configs/minnowmax.h               |  4 --
 include/configs/qemu-x86.h                | 10 ----
 include/configs/som-6896.h                |  3 --
 include/configs/som-db5800-som-6867.h     |  4 --
 include/configs/x86-chromebook.h          |  8 ---
 include/mmc.h                             | 12 -----
 31 files changed, 121 insertions(+), 135 deletions(-)
 delete mode 100644 arch/x86/cpu/queensbay/topcliff.c
 create mode 100644 drivers/ata/ahci-pci.c
Signature · 1 line
2.9.2
author
#1 lore raw

PATCH v2 1/4 dm: scsi: Add a generic PCI-based AHCI driver

This adds support for PCI-based AHCI controller based on DM SCSI.

---

Changes in v2:
- Fix unmet direct dependencies on BLK

 drivers/ata/Kconfig    |  6 ++++++
 drivers/ata/Makefile   |  1 +
 drivers/ata/ahci-pci.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)
 create mode 100644 drivers/ata/ahci-pci.c
drivers/ata/Kconfig +6 -0
index 6427f1b..db05160 100644
@@ -40,6 +40,12 @@ config DM_SCSI
 
 menu "SATA/SCSI device support"
 
+config AHCI_PCI
+	bool "Support for PCI-based AHCI controller"
+	depends on DM_SCSI
+	help
+	  Enables support for the PCI-based AHCI controller.
+
 config SATA_CEVA
 	bool "Ceva Sata controller"
 	depends on AHCI
drivers/ata/Makefile +1 -0
index c48184c..4e2de93 100644
@@ -7,6 +7,7 @@
 
 obj-$(CONFIG_DWC_AHCI) += dwc_ahci.o
 obj-$(CONFIG_AHCI) += ahci-uclass.o
+obj-$(CONFIG_AHCI_PCI) += ahci-pci.o
 obj-$(CONFIG_SCSI_AHCI) += ahci.o
 obj-$(CONFIG_DWC_AHSATA) += dwc_ahsata.o
 obj-$(CONFIG_FSL_SATA) += fsl_sata.o
drivers/ata/ahci-pci.c new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
2.9.2
author
#2 lore raw

PATCH v2 1/4 dm: scsi: Add a generic PCI-based AHCI driver

Quoted 8 lines · Bin Meng

This adds support for PCI-based AHCI controller based on DM SCSI.

---

Quoted 9 lines

Changes in v2:
- Fix unmet direct dependencies on BLK

 drivers/ata/Kconfig    |  6 ++++++
 drivers/ata/Makefile   |  1 +
 drivers/ata/ahci-pci.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)
 create mode 100644 drivers/ata/ahci-pci.c

applied to u-boot-x86, thanks!

author
#3 lore raw

PATCH v2 2/4 block: ide: Fix build error when CONFIG_BLK is on

In reply to Bin Meng

Add missing #ifndef CONFIG_BLK to wrap dev_desc->block_read.

---

Changes in v2: None

 drivers/block/ide.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/block/ide.c +2 -0
index 308ad73..edcf87b 100644
@@ -469,7 +469,9 @@ static void atapi_inquiry(struct blk_desc *dev_desc)
 
 	device = dev_desc->devnum;
 	dev_desc->type = DEV_TYPE_UNKNOWN;	/* not yet valid */
+#ifndef CONFIG_BLK
 	dev_desc->block_read = atapi_read;
+#endif
 
 	memset(ccb, 0, sizeof(ccb));
 	memset(iobuf, 0, sizeof(iobuf));
Signature · 1 line
2.9.2
author
#5 lore raw

PATCH v2 2/4 block: ide: Fix build error when CONFIG_BLK is on

Quoted 6 lines · Simon Glass
Quoted 5 lines · Bin Meng

Add missing #ifndef CONFIG_BLK to wrap dev_desc->block_read.

---

Quoted 6 lines
Quoted 4 lines

Changes in v2: None

 drivers/block/ide.c | 2 ++
 1 file changed, 2 insertions(+)

applied to u-boot-x86, thanks!

author
#6 lore raw

PATCH v2 3/4 x86: Convert MMC to driver model

In reply to Bin Meng

From: Simon Glass <[email protected]>

Convert the pci_mmc driver over to driver model and migrate all x86 boards that use it.

[bmeng: remove DM_MMC from edison_defconfig]

---

Changes in v2: None

 arch/Kconfig                       |  1 +
 arch/x86/cpu/baytrail/valleyview.c | 12 ------
 arch/x86/cpu/quark/quark.c         | 10 -----
 arch/x86/cpu/queensbay/Makefile    |  2 +-
 arch/x86/cpu/queensbay/topcliff.c  | 20 ---------
 configs/edison_defconfig           |  1 -
 drivers/mmc/pci_mmc.c              | 86 ++++++++++++++++++++++++++------------
 include/mmc.h                      | 12 ------
 8 files changed, 62 insertions(+), 82 deletions(-)
 delete mode 100644 arch/x86/cpu/queensbay/topcliff.c
arch/Kconfig +1 -0
index 99617b7..fdcf7cd 100644
@@ -98,6 +98,7 @@ config X86
 	imply DM_ETH
 	imply DM_GPIO
 	imply DM_KEYBOARD
+	imply DM_MMC
 	imply DM_RTC
 	imply DM_SERIAL
 	imply DM_SPI
arch/x86/cpu/baytrail/valleyview.c +0 -12
index 87ba849..c58f6a8 100644
@@ -11,18 +11,6 @@
 #include <asm/mrccache.h>
 #include <asm/post.h>
 
-static struct pci_device_id mmc_supported[] = {
-	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_SDIO },
-	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_SD },
-	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_EMMC2 },
-	{},
-};
-
-int cpu_mmc_init(bd_t *bis)
-{
-	return pci_mmc_init("ValleyView SDHCI", mmc_supported);
-}
-
 #ifndef CONFIG_EFI_APP
 int arch_cpu_init(void)
 {
arch/x86/cpu/quark/quark.c +0 -10
index 0c2cea4..c36a589 100644
@@ -16,11 +16,6 @@
 #include <asm/arch/msg_port.h>
 #include <asm/arch/quark.h>
 
-static struct pci_device_id mmc_supported[] = {
-	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QRK_SDIO },
-	{},
-};
-
 static void quark_setup_mtrr(void)
 {
 	u32 base, mask;
@@ -328,11 +323,6 @@ int arch_early_init_r(void)
 	return 0;
 }
 
-int cpu_mmc_init(bd_t *bis)
-{
-	return pci_mmc_init("Quark SDHCI", mmc_supported);
-}
-
 int arch_misc_init(void)
 {
 #ifdef CONFIG_ENABLE_MRC_CACHE
arch/x86/cpu/queensbay/Makefile +1 -1
index af3ffad..c068199 100644
@@ -5,4 +5,4 @@
 #
 
 obj-y += fsp_configs.o irq.o
-obj-y += tnc.o topcliff.o
+obj-y += tnc.o
arch/x86/cpu/queensbay/topcliff.c deleted +0 -20
deleted file mode 100644
index b76dd7d..0000000
@@ -1,20 +0,0 @@
-/*
- * Copyright (C) 2014, Bin Meng <[email protected]>
- *
- * SPDX-License-Identifier:	GPL-2.0+
- */
-
-#include <common.h>
-#include <mmc.h>
-#include <pci_ids.h>
-
-static struct pci_device_id mmc_supported[] = {
-	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_0 },
-	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_1 },
-	{},
-};
-
-int cpu_mmc_init(bd_t *bis)
-{
-	return pci_mmc_init("Topcliff SDHCI", mmc_supported);
-}
configs/edison_defconfig +0 -1
index cefcfa8..85108ad 100644
@@ -27,7 +27,6 @@ CONFIG_OF_EMBED=y
 CONFIG_CPU=y
 CONFIG_DFU_MMC=y
 CONFIG_DFU_RAM=y
-CONFIG_DM_MMC=y
 CONFIG_DM_PCI_COMPAT=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
drivers/mmc/pci_mmc.c +60 -26

97 lines not on this page · raw message

include/mmc.h +0 -12
index 00576fa..6a0ea0a 100644
@@ -585,18 +585,6 @@ int cpu_mmc_init(bd_t *bis);
 int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr);
 int mmc_get_env_dev(void);
 
-struct pci_device_id;
-
-/**
- * pci_mmc_init() - set up PCI MMC devices
- *
- * This finds all the matching PCI IDs and sets them up as MMC devices.
- *
- * @name:		Name to use for devices
- * @mmc_supported:	PCI IDs to search for, terminated by {0, 0}
- */
-int pci_mmc_init(const char *name, struct pci_device_id *mmc_supported);
-
 /* Set block count limit because of 16 bit register limit on some hardware*/
 #ifndef CONFIG_SYS_MMC_MAX_BLK_COUNT
 #define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535
Signature · 1 line
2.9.2
author
#7 lore raw

PATCH v2 3/4 x86: Convert MMC to driver model

Quoted 15 lines · Bin Meng

From: Simon Glass <[email protected]>

Convert the pci_mmc driver over to driver model and migrate all x86 boards that use it.

[bmeng: remove DM_MMC from edison_defconfig]

---

Changes in v2: None

Quoted 11 lines
 arch/Kconfig                       |  1 +
 arch/x86/cpu/baytrail/valleyview.c | 12 ------
 arch/x86/cpu/quark/quark.c         | 10 -----
 arch/x86/cpu/queensbay/Makefile    |  2 +-
 arch/x86/cpu/queensbay/topcliff.c  | 20 ---------
 configs/edison_defconfig           |  1 -
 drivers/mmc/pci_mmc.c              | 86 ++++++++++++++++++++++++++------------
 include/mmc.h                      | 12 ------
 8 files changed, 62 insertions(+), 82 deletions(-)
 delete mode 100644 arch/x86/cpu/queensbay/topcliff.c

applied to u-boot-x86, thanks!

author
#8 lore raw

PATCH v2 4/4 x86: Switch all boards to use DM SCSI

In reply to Bin Meng

After MMC is converted to DM, convert to use DM SCSI as well for all x86 boards and imply BLK for both MMC and SCSI drivers.

CONFIG_SCSI_DEV_LIST is no longer used. Clean them up.

---

Changes in v2: None

 arch/Kconfig                              |  2 ++
 arch/x86/cpu/baytrail/Kconfig             |  1 +
 arch/x86/cpu/broadwell/Kconfig            |  1 +
 arch/x86/cpu/coreboot/Kconfig             |  1 +
 arch/x86/cpu/ivybridge/Kconfig            |  1 +
 arch/x86/cpu/qemu/Kconfig                 |  1 +
 arch/x86/cpu/queensbay/Kconfig            |  1 +
 configs/chromebook_link64_defconfig       |  2 --
 configs/chromebook_link_defconfig         |  2 --
 configs/chromebox_panther_defconfig       |  2 --
 include/configs/bayleybay.h               |  4 ----
 include/configs/conga-qeval20-qa3-e3845.h |  4 ----
 include/configs/cougarcanyon2.h           |  3 ---
 include/configs/crownbay.h                |  3 ---
 include/configs/dfi-bt700.h               |  4 ----
 include/configs/minnowmax.h               |  4 ----
 include/configs/qemu-x86.h                | 10 ----------
 include/configs/som-6896.h                |  3 ---
 include/configs/som-db5800-som-6867.h     |  4 ----
 include/configs/x86-chromebook.h          |  8 --------
 20 files changed, 8 insertions(+), 53 deletions(-)
arch/Kconfig +2 -0
index fdcf7cd..e063ee0 100644
@@ -95,12 +95,14 @@ config X86
 	select PCI
 	select TIMER
 	select X86_TSC_TIMER
+	imply BLK
 	imply DM_ETH
 	imply DM_GPIO
 	imply DM_KEYBOARD
 	imply DM_MMC
 	imply DM_RTC
 	imply DM_SERIAL
+	imply DM_SCSI
 	imply DM_SPI
 	imply DM_SPI_FLASH
 	imply DM_USB
arch/x86/cpu/baytrail/Kconfig +1 -0
index 052d77f..9374c12 100644
@@ -11,6 +11,7 @@ config INTEL_BAYTRAIL
 	imply HAVE_INTEL_ME if !EFI
 	imply ENABLE_MRC_CACHE
 	imply ENV_IS_IN_SPI_FLASH
+	imply AHCI_PCI
 	imply ICH_SPI
 	imply INTEL_ICH6_GPIO
 	imply MMC
arch/x86/cpu/broadwell/Kconfig +1 -0
index 7e71325..b421f18 100644
@@ -10,6 +10,7 @@ config INTEL_BROADWELL
 	imply HAVE_INTEL_ME
 	imply ENABLE_MRC_CACHE
 	imply ENV_IS_IN_SPI_FLASH
+	imply AHCI_PCI
 	imply ICH_SPI
 	imply INTEL_BROADWELL_GPIO
 	imply SCSI
arch/x86/cpu/coreboot/Kconfig +1 -0
index 07d3fb8..d4e0587 100644
@@ -4,6 +4,7 @@ config SYS_COREBOOT
 	bool
 	default y
 	imply ENV_IS_NOWHERE
+	imply AHCI_PCI
 	imply E1000
 	imply ICH_SPI
 	imply MMC
arch/x86/cpu/ivybridge/Kconfig +1 -0
index 7bac4c5..00f99d6 100644
@@ -11,6 +11,7 @@ config NORTHBRIDGE_INTEL_IVYBRIDGE
 	imply HAVE_INTEL_ME
 	imply ENABLE_MRC_CACHE
 	imply ENV_IS_IN_SPI_FLASH
+	imply AHCI_PCI
 	imply ICH_SPI
 	imply INTEL_ICH6_GPIO
 	imply SCSI
arch/x86/cpu/qemu/Kconfig +1 -0
index b6297f7..fdf5ae3 100644
@@ -8,6 +8,7 @@ config QEMU
 	bool
 	select ARCH_EARLY_INIT_R
 	imply ENV_IS_NOWHERE
+	imply AHCI_PCI
 	imply E1000
 	imply SYS_NS16550
 	imply USB
arch/x86/cpu/queensbay/Kconfig +1 -0
index 80b6bc5..d1b04c9 100644
@@ -10,6 +10,7 @@ config INTEL_QUEENSBAY
 	select HAVE_CMC
 	select ARCH_EARLY_INIT_R
 	imply ENV_IS_IN_SPI_FLASH
+	imply AHCI_PCI
 	imply ICH_SPI
 	imply INTEL_ICH6_GPIO
 	imply MMC
configs/chromebook_link64_defconfig +0 -2
index 8da05cd..3655a64 100644
@@ -56,8 +56,6 @@ CONFIG_REGMAP=y
 CONFIG_SPL_REGMAP=y
 CONFIG_SYSCON=y
 CONFIG_SPL_SYSCON=y
-CONFIG_DM_SCSI=y
-CONFIG_BLK=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
configs/chromebook_link_defconfig +0 -2
index 69cdc6c..e2bc9f7 100644
@@ -38,8 +38,6 @@ CONFIG_ISO_PARTITION=y
 CONFIG_EFI_PARTITION=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
-CONFIG_DM_SCSI=y
-CONFIG_BLK=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
configs/chromebox_panther_defconfig +0 -2
index f325ba4..34f57ad 100644
@@ -34,8 +34,6 @@ CONFIG_ISO_PARTITION=y
 CONFIG_EFI_PARTITION=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
-CONFIG_DM_SCSI=y
-CONFIG_BLK=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_LPC=y
 CONFIG_RTL8169=y
include/configs/bayleybay.h +0 -4
index 3efdbd2..f9ea907 100644
@@ -19,10 +19,6 @@
 					"stdout=serial,vidconsole\0" \
 					"stderr=serial,vidconsole\0"
 
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
-
 /* Environment configuration */
 #define CONFIG_ENV_SECT_SIZE		0x1000
 #define CONFIG_ENV_OFFSET		0x006ff000
include/configs/conga-qeval20-qa3-e3845.h +0 -4
index b4ea184..0c37407 100644
@@ -19,10 +19,6 @@
 					"stdout=serial\0" \
 					"stderr=serial\0"
 
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
-
 #define VIDEO_IO_OFFSET				0
 #define CONFIG_X86EMU_RAW_IO
 
include/configs/cougarcanyon2.h +0 -3
index 5f4800b..66e8006 100644
@@ -17,9 +17,6 @@
 					"stdout=serial,vga\0" \
 					"stderr=serial,vga\0"
 
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PANTHERPOINT_AHCI_MOBILE}
-
 /* Environment configuration */
 #define CONFIG_ENV_SECT_SIZE		0x1000
 #define CONFIG_ENV_OFFSET		0x5ff000
include/configs/crownbay.h +0 -3
index 5ec09ba..4181c06 100644
@@ -21,9 +21,6 @@
 					"stdout=serial,vidconsole\0" \
 					"stderr=serial,vidconsole\0"
 
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SATA}
-
 /* Environment configuration */
 #define CONFIG_ENV_SECT_SIZE		0x1000
 #define CONFIG_ENV_OFFSET		0
include/configs/dfi-bt700.h +0 -4
index 6748b9c..949a581 100644
@@ -24,10 +24,6 @@
 					"stdout=serial\0" \
 					"stderr=serial\0"
 
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
-
 #define CONFIG_USB_HOST_ETHER
 #define CONFIG_USB_ETHER_ASIX
 #define CONFIG_USB_ETHER_SMSC95XX
include/configs/minnowmax.h +0 -4
index 5b24c2b..5b1660c 100644
@@ -22,10 +22,6 @@
 					"stderr=vidconsole,serial\0" \
 					"usb_pgood_delay=40\0"
 
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
-
 #define VIDEO_IO_OFFSET				0
 #define CONFIG_X86EMU_RAW_IO
 
include/configs/qemu-x86.h +0 -10
index 033b5e2..01072f8 100644
@@ -23,11 +23,7 @@
  * ATA/SATA support for QEMU x86 targets
  *   - Only legacy IDE controller is supported for QEMU '-M pc' target
  *   - AHCI controller is supported for QEMU '-M q35' target
- *
- * Default configuraion is to support the QEMU default x86 target
- * Undefine CONFIG_IDE to support q35 target
  */
-#ifdef CONFIG_IDE
 #define CONFIG_SYS_IDE_MAXBUS		2
 #define CONFIG_SYS_IDE_MAXDEVICE	4
 #define CONFIG_SYS_ATA_BASE_ADDR	0
@@ -38,12 +34,6 @@
 #define CONFIG_SYS_ATA_IDE1_OFFSET	0x170
 #define CONFIG_ATAPI
 
-#undef CONFIG_SCSI_AHCI
-#else
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_AHCI}
-#endif
-
 /* SPI is not supported */
 
 #define CONFIG_SPL_FRAMEWORK
include/configs/som-6896.h +0 -3
index af51c2a..509f23a 100644
@@ -16,9 +16,6 @@
 
 #define CONFIG_MISC_INIT_R
 
-#define CONFIG_SCSI_DEV_LIST	\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_WILDCATPOINT_AHCI}
-
 #define VIDEO_IO_OFFSET			0
 #define CONFIG_X86EMU_RAW_IO
 
include/configs/som-db5800-som-6867.h +0 -4
index 17adf7e..927e1b6 100644
@@ -19,10 +19,6 @@
 					"stdout=serial,vidconsole\0" \
 					"stderr=serial,vidconsole\0"
 
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
-
 #define VIDEO_IO_OFFSET				0
 #define CONFIG_X86EMU_RAW_IO
 
include/configs/x86-chromebook.h +0 -8
index 4d02cd4..27ba9ee 100644
@@ -15,14 +15,6 @@
 #define CONFIG_X86_REFCODE_ADDR			0xffea0000
 #define CONFIG_X86_REFCODE_RUN_ADDR		0
 
-#define CONFIG_SCSI_DEV_LIST	\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_NM10_AHCI}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_COUGARPOINT_AHCI_MOBILE}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_COUGARPOINT_AHCI_SERIES6}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PANTHERPOINT_AHCI_MOBILE}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNXPOINT_AHCI}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_WILDCATPOINT_AHCI}
-
 #define CONFIG_PCI_MEM_BUS	0xe0000000
 #define CONFIG_PCI_MEM_PHYS	CONFIG_PCI_MEM_BUS
 #define CONFIG_PCI_MEM_SIZE	0x10000000
Signature · 1 line
2.9.2
#9 lore raw

PATCH v2 4/4 x86: Switch all boards to use DM SCSI

Quoted 24 lines · Bin Meng

After MMC is converted to DM, convert to use DM SCSI as well for all x86 boards and imply BLK for both MMC and SCSI drivers.

CONFIG_SCSI_DEV_LIST is no longer used. Clean them up.

---

Changes in v2: None

 arch/Kconfig                              |  2 ++
 arch/x86/cpu/baytrail/Kconfig             |  1 +
 arch/x86/cpu/broadwell/Kconfig            |  1 +
 arch/x86/cpu/coreboot/Kconfig             |  1 +
 arch/x86/cpu/ivybridge/Kconfig            |  1 +
 arch/x86/cpu/qemu/Kconfig                 |  1 +
 arch/x86/cpu/queensbay/Kconfig            |  1 +
 configs/chromebook_link64_defconfig       |  2 --
 configs/chromebook_link_defconfig         |  2 --
 configs/chromebox_panther_defconfig       |  2 --
 include/configs/bayleybay.h               |  4 ----
 include/configs/conga-qeval20-qa3-e3845.h |  4 ----
 include/configs/cougarcanyon2.h           |  3 ---
Quoted 9 lines
 include/configs/crownbay.h                |  3 ---
 include/configs/dfi-bt700.h               |  4 ----
 include/configs/minnowmax.h               |  4 ----
 include/configs/qemu-x86.h                | 10 ----------
 include/configs/som-6896.h                |  3 ---
 include/configs/som-db5800-som-6867.h     |  4 ----
 include/configs/x86-chromebook.h          |  8 --------
 20 files changed, 8 insertions(+), 53 deletions(-)
author
#10 lore raw

PATCH v2 4/4 x86: Switch all boards to use DM SCSI

Quoted 35 lines · Simon Glass
Quoted 24 lines · Bin Meng

After MMC is converted to DM, convert to use DM SCSI as well for all x86 boards and imply BLK for both MMC and SCSI drivers.

CONFIG_SCSI_DEV_LIST is no longer used. Clean them up.

---

Changes in v2: None

 arch/Kconfig                              |  2 ++
 arch/x86/cpu/baytrail/Kconfig             |  1 +
 arch/x86/cpu/broadwell/Kconfig            |  1 +
 arch/x86/cpu/coreboot/Kconfig             |  1 +
 arch/x86/cpu/ivybridge/Kconfig            |  1 +
 arch/x86/cpu/qemu/Kconfig                 |  1 +
 arch/x86/cpu/queensbay/Kconfig            |  1 +
 configs/chromebook_link64_defconfig       |  2 --
 configs/chromebook_link_defconfig         |  2 --
 configs/chromebox_panther_defconfig       |  2 --
 include/configs/bayleybay.h               |  4 ----
 include/configs/conga-qeval20-qa3-e3845.h |  4 ----
 include/configs/cougarcanyon2.h           |  3 ---
Quoted 9 lines
 include/configs/crownbay.h                |  3 ---
 include/configs/dfi-bt700.h               |  4 ----
 include/configs/minnowmax.h               |  4 ----
 include/configs/qemu-x86.h                | 10 ----------
 include/configs/som-6896.h                |  3 ---
 include/configs/som-db5800-som-6867.h     |  4 ----
 include/configs/x86-chromebook.h          |  8 --------
 20 files changed, 8 insertions(+), 53 deletions(-)
Quoted 1 line

applied to u-boot-x86, thanks!