Tim Wawrzynczak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38618 )
Change subject: mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku ......................................................................
mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku
Override board_get_usb_typec_port_paths on Kohaku so that the SSDT generator for the EC can add references to the USB port objects in the _DSD for each connector object.
BUG=b:146506369 BRANCH=none TEST=Disassemble SSDT and verify
Change-Id: Ide244ac47c439b8fae90cc842c0805cd17640556 Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/mainboard/google/hatch/variants/kohaku/ramstage.c 1 file changed, 24 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/38618/1
diff --git a/src/mainboard/google/hatch/variants/kohaku/ramstage.c b/src/mainboard/google/hatch/variants/kohaku/ramstage.c index 9b919fc..9cd0f7e 100644 --- a/src/mainboard/google/hatch/variants/kohaku/ramstage.c +++ b/src/mainboard/google/hatch/variants/kohaku/ramstage.c @@ -17,6 +17,7 @@ #include <gpio.h> #include <baseboard/variants.h> #include <soc/gpio.h> +#include <ec/google/chromeec/ec.h>
void variant_ramstage_init(void) { @@ -30,3 +31,26 @@ mdelay(1); gpio_output(GPP_A12, 1); } + +static struct device_path usb_port_paths[][2] = +{ + { + {.type=DEVICE_PATH_USB, {.usb={ .port_type = 2, .port_id = 0 }}}, + {.type=DEVICE_PATH_USB, {.usb={ .port_type = 3, .port_id = 0 }}}, + }, + { + {.type=DEVICE_PATH_USB, {.usb={ .port_type = 2, .port_id = 1 }}}, + {.type=DEVICE_PATH_USB, {.usb={ .port_type = 3, .port_id = 1 }}}, + } +}; + +struct device_path *board_get_usb_typec_port_paths(int port, int *devices) +{ + if (port < 0 || port > 1) + return NULL; + + /* 2 devices for each port */ + *devices = 2; + + return usb_port_paths[port]; +}
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38618 )
Change subject: mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku ......................................................................
Patch Set 1:
(13 comments)
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/kohaku/ramstage.c:
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 36: { that open brace { should be on the previous line
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 38: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 2, .port_id = 0 }}}, spaces required around that '=' (ctx:VxV)
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 38: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 2, .port_id = 0 }}}, spaces required around that '=' (ctx:VxV)
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 38: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 2, .port_id = 0 }}}, space required after that close brace '}'
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 39: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 3, .port_id = 0 }}}, spaces required around that '=' (ctx:VxV)
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 39: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 3, .port_id = 0 }}}, spaces required around that '=' (ctx:VxV)
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 39: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 3, .port_id = 0 }}}, space required after that close brace '}'
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 42: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 2, .port_id = 1 }}}, spaces required around that '=' (ctx:VxV)
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 42: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 2, .port_id = 1 }}}, spaces required around that '=' (ctx:VxV)
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 42: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 2, .port_id = 1 }}}, space required after that close brace '}'
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 43: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 3, .port_id = 1 }}}, spaces required around that '=' (ctx:VxV)
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 43: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 3, .port_id = 1 }}}, spaces required around that '=' (ctx:VxV)
https://review.coreboot.org/c/coreboot/+/38618/1/src/mainboard/google/hatch/... PS1, Line 43: {.type=DEVICE_PATH_USB, {.usb={ .port_type = 3, .port_id = 1 }}}, space required after that close brace '}'
Hello Shelley Chen, Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38618
to look at the new patch set (#2).
Change subject: mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku ......................................................................
mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku
Override board_get_usb_typec_port_paths on Kohaku so that the SSDT generator for the EC can add references to the USB port objects in the _DSD for each connector object.
BUG=b:146506369 BRANCH=none TEST=Disassemble SSDT and verify
Change-Id: Ide244ac47c439b8fae90cc842c0805cd17640556 Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/mainboard/google/hatch/variants/kohaku/ramstage.c 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/38618/2
Hello Shelley Chen, build bot (Jenkins), Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38618
to look at the new patch set (#5).
Change subject: mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku ......................................................................
mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku
Override board_get_usb_typec_port_paths on Kohaku so that the SSDT generator for the EC can add references to the USB port objects in the _DSD for each connector object.
BUG=b:146506369 BRANCH=none TEST=Disassemble SSDT and verify
Change-Id: Ide244ac47c439b8fae90cc842c0805cd17640556 Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/mainboard/google/hatch/variants/kohaku/ramstage.c 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/38618/5
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38618 )
Change subject: mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku ......................................................................
Patch Set 9:
(2 comments)
https://review.coreboot.org/c/coreboot/+/38618/9//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38618/9//COMMIT_MSG@11 PS9, Line 11: in the _DSD for each connector object. More words fit on the line above.
https://review.coreboot.org/c/coreboot/+/38618/9/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/kohaku/ramstage.c:
https://review.coreboot.org/c/coreboot/+/38618/9/src/mainboard/google/hatch/... PS9, Line 37: {.type = DEVICE_PATH_USB, {.usb = { .port_type = 2, .port_id = 0 } } }, Space in `{ .type = ` and so on?
Hello Shelley Chen, build bot (Jenkins), Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38618
to look at the new patch set (#10).
Change subject: mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku ......................................................................
mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku
Override board_get_usb_typec_port_paths on Kohaku so that the SSDT generator for the EC can add references to the USB port objects in the _DSD for each connector object.
BUG=b:146506369 BRANCH=none TEST=Disassemble SSDT and verify
Change-Id: Ide244ac47c439b8fae90cc842c0805cd17640556 Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/mainboard/google/hatch/variants/kohaku/ramstage.c 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/38618/10
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38618 )
Change subject: mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku ......................................................................
Patch Set 9:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38618/9/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/kohaku/ramstage.c:
https://review.coreboot.org/c/coreboot/+/38618/9/src/mainboard/google/hatch/... PS9, Line 37: {.type = DEVICE_PATH_USB, {.usb = { .port_type = 2, .port_id = 0 } } },
Space in `{ . […]
Thanks for keeping me honest paul :)
Hello Shelley Chen, build bot (Jenkins), Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38618
to look at the new patch set (#11).
Change subject: mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku ......................................................................
mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku
Override board_get_usb_typec_port_paths on Kohaku so that the SSDT generator for the EC can add references to the USB port objects in the _DSD for each connector object.
BUG=b:146506369 BRANCH=none TEST=Disassemble SSDT and verify
Change-Id: Ide244ac47c439b8fae90cc842c0805cd17640556 Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/mainboard/google/hatch/variants/kohaku/ramstage.c 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/38618/11
Tim Wawrzynczak has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/38618 )
Change subject: mb/google/hatch: Override board_get_usb_typec_port_paths on Kohaku ......................................................................
Abandoned
Going with different approach, see CB:38683