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>
This commit is contained in:
Julius Werner 2021-08-24 16:03:57 -07:00 committed by Felix Held
parent 7d41491e76
commit 5ff1808f20
29 changed files with 30 additions and 32 deletions

View File

@ -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. * @version: SoundWire specification version from &enum soundwire_version.
* @link_id: Zero-based SoundWire Link Number. * @link_id: Zero-based SoundWire Link Number.
* @unique_id: Unique ID for multiple devices. * @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. * @part_id: Vendor defined part ID.
* @class: MIPI class encoding in &enum mipi_class. * @class: MIPI class encoding in &enum mipi_class.
*/ */

View File

@ -1,7 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only ## SPDX-License-Identifier: GPL-2.0-only
source "src/device/mipi/Kconfig"
menu "Devices" menu "Devices"
config HAVE_VGA_TEXT_FRAMEBUFFER config HAVE_VGA_TEXT_FRAMEBUFFER

View File

@ -40,7 +40,7 @@ ramstage-$(CONFIG_PCIEXP_PLUGIN_SUPPORT) += pciexp_device.c
ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += cardbus_device.c ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += cardbus_device.c
endif endif
subdirs-y += oprom dram mipi subdirs-y += oprom dram
bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data AUO_B101UAN08_3 = { struct panel_serializable_data AUO_B101UAN08_3 = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data AUO_KD101N80_45NA = { struct panel_serializable_data AUO_KD101N80_45NA = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data AUO_NT51021D8P = { struct panel_serializable_data AUO_NT51021D8P = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data BOE_TV080WUM_NG0 = { struct panel_serializable_data BOE_TV080WUM_NG0 = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data BOE_TV101WUM_N53 = { struct panel_serializable_data BOE_TV101WUM_N53 = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data BOE_TV101WUM_NG0 = { struct panel_serializable_data BOE_TV101WUM_NG0 = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data BOE_TV101WUM_NL6 = { struct panel_serializable_data BOE_TV101WUM_NL6 = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data BOE_TV105WUM_NW0 = { struct panel_serializable_data BOE_TV105WUM_NW0 = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data P097PFG_SSD2858 = { struct panel_serializable_data P097PFG_SSD2858 = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data INX_OTA7290D10P = { struct panel_serializable_data INX_OTA7290D10P = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data STA_QFH032011_53G = { struct panel_serializable_data STA_QFH032011_53G = {
.edid = { .edid = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
struct panel_serializable_data VIS_RM69299 = { struct panel_serializable_data VIS_RM69299 = {
.edid = { .edid = {

View File

@ -2,7 +2,7 @@
#include <console/console.h> #include <console/console.h>
#include <delay.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) cb_err_t mipi_panel_parse_init_commands(const void *buf, mipi_cmd_func_t cmd_func)
{ {

View File

@ -5,8 +5,8 @@
#include <acpi/acpi_soundwire.h> #include <acpi/acpi_soundwire.h>
#include <device/device.h> #include <device/device.h>
#include <device/path.h> #include <device/path.h>
#include <device/mipi_ids.h>
#include <device/soundwire.h> #include <device/soundwire.h>
#include <mipi/ids.h>
#include <stdio.h> #include <stdio.h>
#include "chip.h" #include "chip.h"

View File

@ -4,9 +4,9 @@
#include <acpi/acpi_device.h> #include <acpi/acpi_device.h>
#include <acpi/acpi_soundwire.h> #include <acpi/acpi_soundwire.h>
#include <device/device.h> #include <device/device.h>
#include <device/mipi_ids.h>
#include <device/path.h> #include <device/path.h>
#include <device/soundwire.h> #include <device/soundwire.h>
#include <mipi/ids.h>
#include <stdio.h> #include <stdio.h>
#include "chip.h" #include "chip.h"

View File

@ -5,8 +5,8 @@
#include <acpi/acpi_soundwire.h> #include <acpi/acpi_soundwire.h>
#include <device/device.h> #include <device/device.h>
#include <device/path.h> #include <device/path.h>
#include <device/mipi_ids.h>
#include <device/soundwire.h> #include <device/soundwire.h>
#include <mipi/ids.h>
#include <stdio.h> #include <stdio.h>
#include "chip.h" #include "chip.h"

View File

@ -5,8 +5,8 @@
#include <acpi/acpi_soundwire.h> #include <acpi/acpi_soundwire.h>
#include <device/device.h> #include <device/device.h>
#include <device/path.h> #include <device/path.h>
#include <device/mipi_ids.h>
#include <device/soundwire.h> #include <device/soundwire.h>
#include <mipi/ids.h>
#include <stdio.h> #include <stdio.h>
#include "chip.h" #include "chip.h"

View File

@ -76,7 +76,7 @@ enum mipi_class {
* @version: SoundWire specification version from &enum soundwire_version. * @version: SoundWire specification version from &enum soundwire_version.
* @link_id: Zero-based SoundWire master link id. * @link_id: Zero-based SoundWire master link id.
* @unique_id: Unique ID for multiple slave devices on the same bus. * @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. * @part_id: Vendor defined part ID.
* @class: MIPI class encoding in &enum mipi_class. * @class: MIPI class encoding in &enum mipi_class.
*/ */

View File

@ -4,8 +4,8 @@
* MIPI Alliance Manufacturer IDs from https://mid.mipi.org * MIPI Alliance Manufacturer IDs from https://mid.mipi.org
*/ */
#ifndef __DEVICE_MIPI_IDS_H__ #ifndef __MIPI_IDS_H__
#define __DEVICE_MIPI_IDS_H__ #define __MIPI_IDS_H__
/* Board Members */ /* Board Members */
#define MIPI_MFG_ID_INTEL 0x0105 #define MIPI_MFG_ID_INTEL 0x0105
@ -26,4 +26,4 @@
#define MIPI_MFG_ID_MAXIM 0x019f #define MIPI_MFG_ID_MAXIM 0x019f
#define MIPI_DEV_ID_MAXIM_MAX98373 0x8373 #define MIPI_DEV_ID_MAXIM_MAX98373 0x8373
#endif /* __DEVICE_MIPI_IDS_H__ */ #endif /* __MIPI_IDS_H__ */

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __DEVICE_MIPI_PANEL_H__ #ifndef __MIPI_PANEL_H__
#define __DEVICE_MIPI_PANEL_H__ #define __MIPI_PANEL_H__
#include <edid.h> #include <edid.h>
#include <types.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 \ #define PANEL_END \
PANEL_CMD_END PANEL_CMD_END
#endif /* __DEVICE_MIPI_PANEL_H__ */ #endif /* __MIPI_PANEL_H__ */

View File

@ -3,7 +3,7 @@
#ifndef __MAINBOARD_GOOGLE_KUKUI_PANEL_H__ #ifndef __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
#define __MAINBOARD_GOOGLE_KUKUI_PANEL_H__ #define __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
#include <device/mipi_panel.h> #include <mipi/panel.h>
#include <soc/dsi.h> #include <soc/dsi.h>
struct panel_description { struct panel_description {

View File

@ -6,7 +6,7 @@
#include <delay.h> #include <delay.h>
#include <device/device.h> #include <device/device.h>
#include <device/i2c_simple.h> #include <device/i2c_simple.h>
#include <device/mipi_panel.h> #include <mipi/panel.h>
#include <drivers/ti/sn65dsi86bridge/sn65dsi86bridge.h> #include <drivers/ti/sn65dsi86bridge/sn65dsi86bridge.h>
#include <edid.h> #include <edid.h>
#include <framebuffer_info.h> #include <framebuffer_info.h>

View File

@ -2,7 +2,7 @@
#include <assert.h> #include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <device/mipi_panel.h> #include <mipi/panel.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <delay.h> #include <delay.h>
#include <edid.h> #include <edid.h>

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mipi_panel.h> #include <mipi/panel.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <console/console.h> #include <console/console.h>
#include <assert.h> #include <assert.h>