summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2021-08-24 16:03:57 -0700
committerFelix Held <felix-coreboot@felixheld.de>2021-08-26 15:18:45 +0000
commit5ff1808f20a70912796b274c03cec3d91ddf890a (patch)
tree5b8207fc81eca4b6c1dddf478ad47a8537a0a2e6
parent7d41491e76eea186fe0e734e50fdb827e877e0ad (diff)
downloadcoreboot-5ff1808f20a70912796b274c03cec3d91ddf890a.tar.gz
coreboot-5ff1808f20a70912796b274c03cec3d91ddf890a.tar.bz2
coreboot-5ff1808f20a70912796b274c03cec3d91ddf890a.zip
device/mipi: Move to drivers/mipi
Sounds like we prefer to have this under drivers/ instead of device/. Also move all MIPI-related headers out from device/ into their own directory. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: Ib3e66954b8f0cf85b28d8d186b09d7846707559d Reviewed-on: https://review.coreboot.org/c/coreboot/+/57128 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r--Documentation/drivers/soundwire.md2
-rw-r--r--src/device/Kconfig2
-rw-r--r--src/device/Makefile.inc2
-rw-r--r--src/drivers/mipi/Kconfig (renamed from src/device/mipi/Kconfig)0
-rw-r--r--src/drivers/mipi/Makefile.inc (renamed from src/device/mipi/Makefile.inc)0
-rw-r--r--src/drivers/mipi/panel-AUO_B101UAN08_3.c (renamed from src/device/mipi/panel-AUO_B101UAN08_3.c)2
-rw-r--r--src/drivers/mipi/panel-AUO_KD101N80_45NA.c (renamed from src/device/mipi/panel-AUO_KD101N80_45NA.c)2
-rw-r--r--src/drivers/mipi/panel-AUO_NT51021D8P.c (renamed from src/device/mipi/panel-AUO_NT51021D8P.c)2
-rw-r--r--src/drivers/mipi/panel-BOE_TV080WUM_NG0.c (renamed from src/device/mipi/panel-BOE_TV080WUM_NG0.c)2
-rw-r--r--src/drivers/mipi/panel-BOE_TV101WUM_N53.c (renamed from src/device/mipi/panel-BOE_TV101WUM_N53.c)2
-rw-r--r--src/drivers/mipi/panel-BOE_TV101WUM_NG0.c (renamed from src/device/mipi/panel-BOE_TV101WUM_NG0.c)2
-rw-r--r--src/drivers/mipi/panel-BOE_TV101WUM_NL6.c (renamed from src/device/mipi/panel-BOE_TV101WUM_NL6.c)2
-rw-r--r--src/drivers/mipi/panel-BOE_TV105WUM_NW0.c (renamed from src/device/mipi/panel-BOE_TV105WUM_NW0.c)2
-rw-r--r--src/drivers/mipi/panel-CMN_P097PFG_SSD2858.c (renamed from src/device/mipi/panel-CMN_P097PFG_SSD2858.c)2
-rw-r--r--src/drivers/mipi/panel-INX_OTA7290D10P.c (renamed from src/device/mipi/panel-INX_OTA7290D10P.c)2
-rw-r--r--src/drivers/mipi/panel-STA_2081101QFH032011_53G.c (renamed from src/device/mipi/panel-STA_2081101QFH032011_53G.c)2
-rw-r--r--src/drivers/mipi/panel-VIS_RM69299.c (renamed from src/device/mipi/panel-VIS_RM69299.c)2
-rw-r--r--src/drivers/mipi/panel.c (renamed from src/device/mipi/panel.c)2
-rw-r--r--src/drivers/soundwire/alc1308/alc1308.c2
-rw-r--r--src/drivers/soundwire/alc5682/alc5682.c2
-rw-r--r--src/drivers/soundwire/alc711/alc711.c2
-rw-r--r--src/drivers/soundwire/max98373/max98373.c2
-rw-r--r--src/include/device/soundwire.h2
-rw-r--r--src/include/mipi/ids.h (renamed from src/include/device/mipi_ids.h)6
-rw-r--r--src/include/mipi/panel.h (renamed from src/include/device/mipi_panel.h)6
-rw-r--r--src/mainboard/google/kukui/panel.h2
-rw-r--r--src/mainboard/google/trogdor/mainboard.c2
-rw-r--r--src/soc/mediatek/common/dsi.c2
-rw-r--r--src/soc/qualcomm/sc7180/display/dsi.c2
29 files changed, 30 insertions, 32 deletions
diff --git a/Documentation/drivers/soundwire.md b/Documentation/drivers/soundwire.md
index 9c48b75b371f..dcefa046e278 100644
--- a/Documentation/drivers/soundwire.md
+++ b/Documentation/drivers/soundwire.md
@@ -375,7 +375,7 @@ chip and can be decoded for this table with the codec datasheet and board schema
* @version: SoundWire specification version from &enum soundwire_version.
* @link_id: Zero-based SoundWire Link Number.
* @unique_id: Unique ID for multiple devices.
- * @manufacturer_id: Manufacturer ID from include/device/mipi_ids.h.
+ * @manufacturer_id: Manufacturer ID from include/mipi/ids.h.
* @part_id: Vendor defined part ID.
* @class: MIPI class encoding in &enum mipi_class.
*/
diff --git a/src/device/Kconfig b/src/device/Kconfig
index 16daeaa25d5e..5ae3466d3287 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -1,7 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
-source "src/device/mipi/Kconfig"
-
menu "Devices"
config HAVE_VGA_TEXT_FRAMEBUFFER
diff --git a/src/device/Makefile.inc b/src/device/Makefile.inc
index 70013c9f06fb..808648d4b433 100644
--- a/src/device/Makefile.inc
+++ b/src/device/Makefile.inc
@@ -40,7 +40,7 @@ ramstage-$(CONFIG_PCIEXP_PLUGIN_SUPPORT) += pciexp_device.c
ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += cardbus_device.c
endif
-subdirs-y += oprom dram mipi
+subdirs-y += oprom dram
bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
diff --git a/src/device/mipi/Kconfig b/src/drivers/mipi/Kconfig
index 72105e4cd48f..72105e4cd48f 100644
--- a/src/device/mipi/Kconfig
+++ b/src/drivers/mipi/Kconfig
diff --git a/src/device/mipi/Makefile.inc b/src/drivers/mipi/Makefile.inc
index d58e838774f4..d58e838774f4 100644
--- a/src/device/mipi/Makefile.inc
+++ b/src/drivers/mipi/Makefile.inc
diff --git a/src/device/mipi/panel-AUO_B101UAN08_3.c b/src/drivers/mipi/panel-AUO_B101UAN08_3.c
index 5bdb7ba3cb64..8eeac85dd6dd 100644
--- a/src/device/mipi/panel-AUO_B101UAN08_3.c
+++ b/src/drivers/mipi/panel-AUO_B101UAN08_3.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data AUO_B101UAN08_3 = {
.edid = {
diff --git a/src/device/mipi/panel-AUO_KD101N80_45NA.c b/src/drivers/mipi/panel-AUO_KD101N80_45NA.c
index 5856b0d8a097..436940c9e4a8 100644
--- a/src/device/mipi/panel-AUO_KD101N80_45NA.c
+++ b/src/drivers/mipi/panel-AUO_KD101N80_45NA.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data AUO_KD101N80_45NA = {
.edid = {
diff --git a/src/device/mipi/panel-AUO_NT51021D8P.c b/src/drivers/mipi/panel-AUO_NT51021D8P.c
index 37c41fdb3df2..d448c419dbf0 100644
--- a/src/device/mipi/panel-AUO_NT51021D8P.c
+++ b/src/drivers/mipi/panel-AUO_NT51021D8P.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data AUO_NT51021D8P = {
.edid = {
diff --git a/src/device/mipi/panel-BOE_TV080WUM_NG0.c b/src/drivers/mipi/panel-BOE_TV080WUM_NG0.c
index baeb6556447e..c100f421541a 100644
--- a/src/device/mipi/panel-BOE_TV080WUM_NG0.c
+++ b/src/drivers/mipi/panel-BOE_TV080WUM_NG0.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data BOE_TV080WUM_NG0 = {
.edid = {
diff --git a/src/device/mipi/panel-BOE_TV101WUM_N53.c b/src/drivers/mipi/panel-BOE_TV101WUM_N53.c
index b40999f685bc..bc454747b448 100644
--- a/src/device/mipi/panel-BOE_TV101WUM_N53.c
+++ b/src/drivers/mipi/panel-BOE_TV101WUM_N53.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data BOE_TV101WUM_N53 = {
.edid = {
diff --git a/src/device/mipi/panel-BOE_TV101WUM_NG0.c b/src/drivers/mipi/panel-BOE_TV101WUM_NG0.c
index fc3f998192ac..989fb6205053 100644
--- a/src/device/mipi/panel-BOE_TV101WUM_NG0.c
+++ b/src/drivers/mipi/panel-BOE_TV101WUM_NG0.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data BOE_TV101WUM_NG0 = {
.edid = {
diff --git a/src/device/mipi/panel-BOE_TV101WUM_NL6.c b/src/drivers/mipi/panel-BOE_TV101WUM_NL6.c
index 7369cbeb9a90..2c990f87296e 100644
--- a/src/device/mipi/panel-BOE_TV101WUM_NL6.c
+++ b/src/drivers/mipi/panel-BOE_TV101WUM_NL6.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data BOE_TV101WUM_NL6 = {
.edid = {
diff --git a/src/device/mipi/panel-BOE_TV105WUM_NW0.c b/src/drivers/mipi/panel-BOE_TV105WUM_NW0.c
index efe6b66c7182..69311938b56f 100644
--- a/src/device/mipi/panel-BOE_TV105WUM_NW0.c
+++ b/src/drivers/mipi/panel-BOE_TV105WUM_NW0.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data BOE_TV105WUM_NW0 = {
.edid = {
diff --git a/src/device/mipi/panel-CMN_P097PFG_SSD2858.c b/src/drivers/mipi/panel-CMN_P097PFG_SSD2858.c
index 89154b8221f5..73e85962dd9b 100644
--- a/src/device/mipi/panel-CMN_P097PFG_SSD2858.c
+++ b/src/drivers/mipi/panel-CMN_P097PFG_SSD2858.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data P097PFG_SSD2858 = {
.edid = {
diff --git a/src/device/mipi/panel-INX_OTA7290D10P.c b/src/drivers/mipi/panel-INX_OTA7290D10P.c
index 0253ba72359a..79f72f0fc727 100644
--- a/src/device/mipi/panel-INX_OTA7290D10P.c
+++ b/src/drivers/mipi/panel-INX_OTA7290D10P.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data INX_OTA7290D10P = {
.edid = {
diff --git a/src/device/mipi/panel-STA_2081101QFH032011_53G.c b/src/drivers/mipi/panel-STA_2081101QFH032011_53G.c
index 87e53cee59be..be8ba7360f71 100644
--- a/src/device/mipi/panel-STA_2081101QFH032011_53G.c
+++ b/src/drivers/mipi/panel-STA_2081101QFH032011_53G.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data STA_QFH032011_53G = {
.edid = {
diff --git a/src/device/mipi/panel-VIS_RM69299.c b/src/drivers/mipi/panel-VIS_RM69299.c
index 5fdea6039d87..aff2a99c38a2 100644
--- a/src/device/mipi/panel-VIS_RM69299.c
+++ b/src/drivers/mipi/panel-VIS_RM69299.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
struct panel_serializable_data VIS_RM69299 = {
.edid = {
diff --git a/src/device/mipi/panel.c b/src/drivers/mipi/panel.c
index f2bf3408c2af..e8469a6e3612 100644
--- a/src/device/mipi/panel.c
+++ b/src/drivers/mipi/panel.c
@@ -2,7 +2,7 @@
#include <console/console.h>
#include <delay.h>
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
cb_err_t mipi_panel_parse_init_commands(const void *buf, mipi_cmd_func_t cmd_func)
{
diff --git a/src/drivers/soundwire/alc1308/alc1308.c b/src/drivers/soundwire/alc1308/alc1308.c
index df60d47bf7a5..f16d3a2de52b 100644
--- a/src/drivers/soundwire/alc1308/alc1308.c
+++ b/src/drivers/soundwire/alc1308/alc1308.c
@@ -5,8 +5,8 @@
#include <acpi/acpi_soundwire.h>
#include <device/device.h>
#include <device/path.h>
-#include <device/mipi_ids.h>
#include <device/soundwire.h>
+#include <mipi/ids.h>
#include <stdio.h>
#include "chip.h"
diff --git a/src/drivers/soundwire/alc5682/alc5682.c b/src/drivers/soundwire/alc5682/alc5682.c
index e15ecd421ade..c1aaff6cb7bb 100644
--- a/src/drivers/soundwire/alc5682/alc5682.c
+++ b/src/drivers/soundwire/alc5682/alc5682.c
@@ -4,9 +4,9 @@
#include <acpi/acpi_device.h>
#include <acpi/acpi_soundwire.h>
#include <device/device.h>
-#include <device/mipi_ids.h>
#include <device/path.h>
#include <device/soundwire.h>
+#include <mipi/ids.h>
#include <stdio.h>
#include "chip.h"
diff --git a/src/drivers/soundwire/alc711/alc711.c b/src/drivers/soundwire/alc711/alc711.c
index 44a9e98debca..34d55c78e4d0 100644
--- a/src/drivers/soundwire/alc711/alc711.c
+++ b/src/drivers/soundwire/alc711/alc711.c
@@ -5,8 +5,8 @@
#include <acpi/acpi_soundwire.h>
#include <device/device.h>
#include <device/path.h>
-#include <device/mipi_ids.h>
#include <device/soundwire.h>
+#include <mipi/ids.h>
#include <stdio.h>
#include "chip.h"
diff --git a/src/drivers/soundwire/max98373/max98373.c b/src/drivers/soundwire/max98373/max98373.c
index 28796c06bcef..fb202fe811bb 100644
--- a/src/drivers/soundwire/max98373/max98373.c
+++ b/src/drivers/soundwire/max98373/max98373.c
@@ -5,8 +5,8 @@
#include <acpi/acpi_soundwire.h>
#include <device/device.h>
#include <device/path.h>
-#include <device/mipi_ids.h>
#include <device/soundwire.h>
+#include <mipi/ids.h>
#include <stdio.h>
#include "chip.h"
diff --git a/src/include/device/soundwire.h b/src/include/device/soundwire.h
index 6f966ae2f4cb..a78b52b71954 100644
--- a/src/include/device/soundwire.h
+++ b/src/include/device/soundwire.h
@@ -76,7 +76,7 @@ enum mipi_class {
* @version: SoundWire specification version from &enum soundwire_version.
* @link_id: Zero-based SoundWire master link id.
* @unique_id: Unique ID for multiple slave devices on the same bus.
- * @manufacturer_id: Manufacturer ID from include/device/mipi_ids.h.
+ * @manufacturer_id: Manufacturer ID from include/mipi/ids.h.
* @part_id: Vendor defined part ID.
* @class: MIPI class encoding in &enum mipi_class.
*/
diff --git a/src/include/device/mipi_ids.h b/src/include/mipi/ids.h
index 50faba780680..982e6e14b444 100644
--- a/src/include/device/mipi_ids.h
+++ b/src/include/mipi/ids.h
@@ -4,8 +4,8 @@
* MIPI Alliance Manufacturer IDs from https://mid.mipi.org
*/
-#ifndef __DEVICE_MIPI_IDS_H__
-#define __DEVICE_MIPI_IDS_H__
+#ifndef __MIPI_IDS_H__
+#define __MIPI_IDS_H__
/* Board Members */
#define MIPI_MFG_ID_INTEL 0x0105
@@ -26,4 +26,4 @@
#define MIPI_MFG_ID_MAXIM 0x019f
#define MIPI_DEV_ID_MAXIM_MAX98373 0x8373
-#endif /* __DEVICE_MIPI_IDS_H__ */
+#endif /* __MIPI_IDS_H__ */
diff --git a/src/include/device/mipi_panel.h b/src/include/mipi/panel.h
index 95fcb6963312..e0a14638238f 100644
--- a/src/include/device/mipi_panel.h
+++ b/src/include/mipi/panel.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __DEVICE_MIPI_PANEL_H__
-#define __DEVICE_MIPI_PANEL_H__
+#ifndef __MIPI_PANEL_H__
+#define __MIPI_PANEL_H__
#include <edid.h>
#include <types.h>
@@ -53,4 +53,4 @@ cb_err_t mipi_panel_parse_init_commands(const void *buf, mipi_cmd_func_t cmd_fun
#define PANEL_END \
PANEL_CMD_END
-#endif /* __DEVICE_MIPI_PANEL_H__ */
+#endif /* __MIPI_PANEL_H__ */
diff --git a/src/mainboard/google/kukui/panel.h b/src/mainboard/google/kukui/panel.h
index e434d9f5db35..17c19837bb42 100644
--- a/src/mainboard/google/kukui/panel.h
+++ b/src/mainboard/google/kukui/panel.h
@@ -3,7 +3,7 @@
#ifndef __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
#define __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
#include <soc/dsi.h>
struct panel_description {
diff --git a/src/mainboard/google/trogdor/mainboard.c b/src/mainboard/google/trogdor/mainboard.c
index 02a1f7d27b38..4b395ba07ce2 100644
--- a/src/mainboard/google/trogdor/mainboard.c
+++ b/src/mainboard/google/trogdor/mainboard.c
@@ -6,7 +6,7 @@
#include <delay.h>
#include <device/device.h>
#include <device/i2c_simple.h>
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
#include <drivers/ti/sn65dsi86bridge/sn65dsi86bridge.h>
#include <edid.h>
#include <framebuffer_info.h>
diff --git a/src/soc/mediatek/common/dsi.c b/src/soc/mediatek/common/dsi.c
index c5177261751b..fbf3cca2ecdb 100644
--- a/src/soc/mediatek/common/dsi.c
+++ b/src/soc/mediatek/common/dsi.c
@@ -2,7 +2,7 @@
#include <assert.h>
#include <console/console.h>
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
#include <device/mmio.h>
#include <delay.h>
#include <edid.h>
diff --git a/src/soc/qualcomm/sc7180/display/dsi.c b/src/soc/qualcomm/sc7180/display/dsi.c
index e0aa0efd4d2f..e9bd70215998 100644
--- a/src/soc/qualcomm/sc7180/display/dsi.c
+++ b/src/soc/qualcomm/sc7180/display/dsi.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/mipi_panel.h>
+#include <mipi/panel.h>
#include <device/mmio.h>
#include <console/console.h>
#include <assert.h>