Dtrain Hsu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_A13 - USB_OC_2 GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 2 files changed, 31 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/1
diff --git a/src/mainboard/google/dedede/variants/madoo/Makefile.inc b/src/mainboard/google/dedede/variants/madoo/Makefile.inc new file mode 100644 index 0000000..eb2c9bc --- /dev/null +++ b/src/mainboard/google/dedede/variants/madoo/Makefile.inc @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-or-later + +ramstage-y += gpio.c diff --git a/src/mainboard/google/dedede/variants/madoo/gpio.c b/src/mainboard/google/dedede/variants/madoo/gpio.c new file mode 100644 index 0000000..50a183a --- /dev/null +++ b/src/mainboard/google/dedede/variants/madoo/gpio.c @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <baseboard/gpio.h> +#include <baseboard/variants.h> + +/* Pad configuration in ramstage */ +static const struct pad_config override_gpio_table[] = { + /* A13 : USB_OC2_N */ + PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1), + /* D12 : WCAM_RST_L */ + PAD_NC(GPP_D12, NONE), + /* D13 : EN_PP2800_CAMERA */ + PAD_NC(GPP_D13, NONE), + /* D14 : EN_PP1200_CAMERA */ + PAD_NC(GPP_D14, NONE), + /* D15 : UCAM_RST_L */ + PAD_NC(GPP_D15, NONE), + /* S2 : DMIC1_CLK */ + PAD_NC(GPP_S2, NONE), + /* S3 : DMIC1_DATA */ + PAD_NC(GPP_S3, NONE), +}; + +const struct pad_config *variant_override_gpio_table(size_t *num) +{ + *num = ARRAY_SIZE(override_gpio_table); + return override_gpio_table; +} \ No newline at end of file
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 1:
(4 comments)
https://review.coreboot.org/c/coreboot/+/43745/1/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/madoo/gpio.c:
https://review.coreboot.org/c/coreboot/+/43745/1/src/mainboard/google/dedede... PS1, Line 9: PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1), please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/43745/1/src/mainboard/google/dedede... PS1, Line 11: PAD_NC(GPP_D12, NONE), please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/43745/1/src/mainboard/google/dedede... PS1, Line 19: PAD_NC(GPP_S2, NONE), please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/43745/1/src/mainboard/google/dedede... PS1, Line 28: } adding a line without newline at end of file
Hello build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43745
to look at the new patch set (#2).
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_A13 - USB_OC_2 GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 2 files changed, 31 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/2
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43745/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/madoo/gpio.c:
https://review.coreboot.org/c/coreboot/+/43745/2/src/mainboard/google/dedede... PS2, Line 28: } adding a line without newline at end of file
Hello build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43745
to look at the new patch set (#3).
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_A13 - USB_OC_2 GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 2 files changed, 31 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/3
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/madoo/gpio.c:
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... PS3, Line 17: PAD_NC(GPP_D15, NONE), Is Madoo using USB Camera and not using MIPI Camera?
If not using MIPI Camera, then probably need to mark CLK_24M_UCAM, CLK_24M_WCAM as NC. Also mark the I2C lines to camera as NC i.e. AP_I2C_CAM_SDA, AP_I2C_CAM_SCL as NC.
If using USB Camera is there an enable GPIO for the camera?
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/madoo/gpio.c:
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... PS3, Line 9: PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1), What is this USB Overcurrent Pin being used for?
Hello build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth, Henry Sun, Marco Chen, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43745
to look at the new patch set (#4).
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_A13 - USB_OC_2 GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A .vscode/settings.json A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 3 files changed, 53 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/4
Dtrain Hsu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/madoo/gpio.c:
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... PS3, Line 17: PAD_NC(GPP_D15, NONE),
Is Madoo using USB Camera and not using MIPI Camera? […]
Madoo is only using USB Camera and no enable gpio for the camera.
Hello build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth, Henry Sun, Marco Chen, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43745
to look at the new patch set (#5).
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_A13 - USB_OC_2 GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_E0 - NC Pin GPP_E2 - NC Pin GPP_H6 - NC Pin GPP_H7 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A .vscode/settings.json A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 3 files changed, 53 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/5
Dtrain Hsu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/madoo/gpio.c:
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... PS3, Line 9: PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1),
What is this USB Overcurrent Pin being used for?
It just for USB overcurrent.
Hello build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth, Henry Sun, Marco Chen, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43745
to look at the new patch set (#6).
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_A13 - USB_OC_2 GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_E0 - NC Pin GPP_E2 - NC Pin GPP_H6 - NC Pin GPP_H7 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A .vscode/settings.json A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 3 files changed, 53 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/6
Hello build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth, Henry Sun, Marco Chen, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43745
to look at the new patch set (#7).
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_A13 - USB_OC_2 GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_E0 - NC Pin GPP_E2 - NC Pin GPP_H6 - NC Pin GPP_H7 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 2 files changed, 39 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/7
Hello build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth, Henry Sun, Marco Chen, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43745
to look at the new patch set (#8).
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_A13 - USB_OC_2 GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_E0 - NC Pin GPP_E2 - NC Pin GPP_H6 - NC Pin GPP_H7 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 2 files changed, 39 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/8
EricR Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 8: Code-Review+1
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 8: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/madoo/gpio.c:
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... PS3, Line 9: PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1),
It just for USB overcurrent.
All the USB over current events are handled at the EC and not at the AP. So I am not sure if it needs to be routed to AP. I do not want to block this change for this reason. But please do revisit this GPIO later.
EricR Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 8:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/madoo/gpio.c:
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... PS3, Line 9: PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1),
All the USB over current events are handled at the EC and not at the AP. […]
IIUC, this will handled by PCH and send waring to the kernel then shutdown the controller for a while. Does this not work anymore?
Hello build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth, Henry Sun, Marco Chen, EricR Lai, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43745
to look at the new patch set (#9).
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_A13 - USB_OC_2 GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_E0 - NC Pin GPP_E2 - NC Pin GPP_H6 - NC Pin GPP_H7 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 2 files changed, 37 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/9
Dtrain Hsu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 9:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/madoo/gpio.c:
https://review.coreboot.org/c/coreboot/+/43745/3/src/mainboard/google/dedede... PS3, Line 9: PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1),
IIUC, this will handled by PCH and send waring to the kernel then shutdown the controller for a whil […]
Follow waddledoo settings. If it needs to be routed to AP, will revisit the GPIO.
Hello build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth, Henry Sun, Marco Chen, EricR Lai, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43745
to look at the new patch set (#10).
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_E0 - NC Pin GPP_E2 - NC Pin GPP_H6 - NC Pin GPP_H7 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f --- A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 2 files changed, 37 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/43745/10
EricR Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
Patch Set 10: Code-Review+2
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/43745 )
Change subject: mb/google/dedede/var/madoo: Configure GPIO for Madoo ......................................................................
mb/google/dedede/var/madoo: Configure GPIO for Madoo
Follow schematic to modify some GPIO pins.
GPP_D12 - NC Pin GPP_D13 - NC Pin GPP_D14 - NC Pin GPP_D15 - NC Pin GPP_E0 - NC Pin GPP_E2 - NC Pin GPP_H6 - NC Pin GPP_H7 - NC Pin GPP_S02 - NC Pin GPP_S03 - NC Pin
BUG=b:161407664 BRANCH=NONE TEST=Build the coreboot image on madoo board.
Signed-off-by: Dtrain Hsu dtrain_hsu@compal.corp-partner.google.com Change-Id: I85aadfb0d020055eec921c7646c16ae6c95a606f Reviewed-on: https://review.coreboot.org/c/coreboot/+/43745 Reviewed-by: EricR Lai ericr_lai@compal.corp-partner.google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- A src/mainboard/google/dedede/variants/madoo/Makefile.inc A src/mainboard/google/dedede/variants/madoo/gpio.c 2 files changed, 37 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified EricR Lai: Looks good to me, approved
diff --git a/src/mainboard/google/dedede/variants/madoo/Makefile.inc b/src/mainboard/google/dedede/variants/madoo/Makefile.inc new file mode 100644 index 0000000..eb2c9bc --- /dev/null +++ b/src/mainboard/google/dedede/variants/madoo/Makefile.inc @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-or-later + +ramstage-y += gpio.c diff --git a/src/mainboard/google/dedede/variants/madoo/gpio.c b/src/mainboard/google/dedede/variants/madoo/gpio.c new file mode 100644 index 0000000..f9f8ea2 --- /dev/null +++ b/src/mainboard/google/dedede/variants/madoo/gpio.c @@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <baseboard/gpio.h> +#include <baseboard/variants.h> + +/* Pad configuration in ramstage */ +static const struct pad_config override_gpio_table[] = { + /* D12 : WCAM_RST_L */ + PAD_NC(GPP_D12, NONE), + /* D13 : EN_PP2800_CAMERA */ + PAD_NC(GPP_D13, NONE), + /* D14 : EN_PP1200_CAMERA */ + PAD_NC(GPP_D14, NONE), + /* D15 : UCAM_RST_L */ + PAD_NC(GPP_D15, NONE), + /* E0 : CLK_24M_UCAM */ + PAD_NC(GPP_E0, NONE), + /* E2 : CLK_24M_WCAM */ + PAD_NC(GPP_E2, NONE), + /* H6 : AP_I2C_CAM_SDA */ + PAD_NC(GPP_H6, NONE), + /* H7 : AP_I2C_CAM_SCL */ + PAD_NC(GPP_H7, NONE), + /* S2 : DMIC1_CLK */ + PAD_NC(GPP_S2, NONE), + /* S3 : DMIC1_DATA */ + PAD_NC(GPP_S3, NONE), +}; + +const struct pad_config *variant_override_gpio_table(size_t *num) +{ + *num = ARRAY_SIZE(override_gpio_table); + return override_gpio_table; +}