diff options
author | Felix Singer <felixsinger@posteo.net> | 2023-10-26 16:14:34 +0200 |
---|---|---|
committer | Felix Singer <service+coreboot-gerrit@felixsinger.de> | 2023-10-30 14:00:59 +0000 |
commit | 983b169a366a3db03c9fab989e36973b5a6eee96 (patch) | |
tree | ca402e7b71be912882efe8466216085157341bbe /src/mainboard/system76/rpl/variants/oryp11 | |
parent | ee1fd54aef8ec0aba9e3dc01111251e1ae6b9d12 (diff) |
mb/system76/rpl/dt: Use comma separated list for arrays
In order to improve the readability of the settings, use a comma
separated list to assign values to their indexes instead of repeating
the option name for each index.
Don't convert the settings for PCIe root ports as they should stay in
the device scope of them.
While on it, remove superfluous comments related to modified lines.
Change-Id: I15f326774850b3c9562f7eebb78f29430dec1031
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78667
Reviewed-by: Tim Crawford <tcrawford@system76.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/system76/rpl/variants/oryp11')
-rw-r--r-- | src/mainboard/system76/rpl/variants/oryp11/overridetree.cb | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/mainboard/system76/rpl/variants/oryp11/overridetree.cb b/src/mainboard/system76/rpl/variants/oryp11/overridetree.cb index 8c5315ba67..d337a572a5 100644 --- a/src/mainboard/system76/rpl/variants/oryp11/overridetree.cb +++ b/src/mainboard/system76/rpl/variants/oryp11/overridetree.cb @@ -8,19 +8,21 @@ chip soc/intel/alderlake end device ref tcss_dma0 on end device ref xhci on - # USB2 - register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # AJ_USB1: USB-A 3.2 Gen 1 (Left) - register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC_SKIP)" # J_TYPEC1: USB-C Thunderbolt (Right) - register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC_SKIP)" # J_TYPEC2: USB-C 3.2 Gen 2 (Back) - register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # Per-key RGB - register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # J_USB1: USB-A 3.2 Gen 1 (Right) - register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Camera - register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth - # USB3 - register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # AJ_USB1: USB-A 3.2 Gen 1 (Left) - register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # J_USB1: USB-A 3.2 Gen 1 (Right) - register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # J_TYPEC2: USB-C 3.2 Gen 2 (Back) - register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # J_TYPEC2: USB-C 3.2 Gen 2 (Back) + register "usb2_ports" = "{ + [0] = USB2_PORT_MID(OC_SKIP), /* AJ_USB1: USB-A 3.2 Gen 1 (Left) */ + [1] = USB2_PORT_TYPE_C(OC_SKIP), /* J_TYPEC1: USB-C Thunderbolt (Right) */ + [2] = USB2_PORT_TYPE_C(OC_SKIP), /* J_TYPEC2: USB-C 3.2 Gen 2 (Back) */ + [4] = USB2_PORT_MID(OC_SKIP), /* Per-key RGB */ + [5] = USB2_PORT_MID(OC_SKIP), /* J_USB1: USB-A 3.2 Gen 1 (Right) */ + [7] = USB2_PORT_MID(OC_SKIP), /* Camera */ + [9] = USB2_PORT_MID(OC_SKIP), /* Bluetooth */ + }" + register "usb3_ports" = "{ + [0] = USB3_PORT_DEFAULT(OC_SKIP), /* AJ_USB1: USB-A 3.2 Gen 1 (Left) */ + [1] = USB3_PORT_DEFAULT(OC_SKIP), /* J_USB1: USB-A 3.2 Gen 1 (Right) */ + [2] = USB3_PORT_DEFAULT(OC_SKIP), /* J_TYPEC2: USB-C 3.2 Gen 2 (Back) */ + [3] = USB3_PORT_DEFAULT(OC_SKIP), /* J_TYPEC2: USB-C 3.2 Gen 2 (Back) */ + }" end device ref i2c0 on |