coreboot/src/mainboard
Subrata Banik 6c87853a83 mb/google/bluey: Implement board and SKU ID retrieval
This commit populates the `board_id()` and `sku_id()` functions
for the Google Bluey mainboard, replacing the previous placeholder
implementations.

- The Board ID (`board_id()`) is now determined by reading a set of
  four GPIO pins (GPIO138 as MSB, GPIO137, GPIO136, GPIO135 as LSB)
  and interpreting their states as a base-3 encoded value using
  the `gpio_base3_value()` helper.

- The SKU ID (`sku_id()`) is retrieved from the Google ChromeEC
  by calling `google_chromeec_get_board_sku()` when a ChromeEC
  is configured (`CONFIG(EC_GOOGLE_CHROMEEC)`).

Both ID values are cached after their initial determination to
avoid redundant reads.

BUG=b:404985109
TEST=Able to build google/bluey

Change-Id: Ic5a084e35b33a82fef76f33c2663aba7a48c16a7
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87861
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Pranava Y N <pranavayn@google.com>
2025-05-30 04:21:40 +00:00
..
51nb soc/intel/skylake: Drop redundant PcieRpEnable 2025-04-23 14:15:29 +00:00
acer soc/intel/skylake: Drop redundant PcieRpEnable 2025-04-23 14:15:29 +00:00
amd mb/amd: Increase ROM size on boards, incorrectly limited to 16 MB 2025-05-13 13:49:38 +00:00
aoostar
aopen
apple
arm mb/*/*/*.fmd: Start flash at 0 2025-04-09 17:11:43 +00:00
asrock soc/intel/cannonlake: Drop redundant PcieRpEnable 2025-04-23 14:15:39 +00:00
asus mb/asus/h61-series: Add H61M-A/USB3 2025-05-08 22:31:44 +00:00
biostar
bostentech
bytedance mb/*/*/*.fmd: Start flash at 0 2025-04-09 17:11:43 +00:00
cavium mb/*/*/*.fmd: Start flash at 0 2025-04-09 17:11:43 +00:00
clevo soc/intel/cannonlake: Hook up DPTF device to devicetree 2025-05-01 22:17:20 +00:00
compulab
cwwk mb/cwwk: Add CWWK CW-ADLNTB-1C2L-V3.0 board as an adl variants 2025-04-07 14:44:43 +00:00
dell mb/dell/haswell_latitude: Correct BOARD_ROMSIZE_KB_* for E7240 2025-05-21 11:59:42 +00:00
emulation tree: remove duplicated includes 2025-04-20 05:13:57 +00:00
erying mb/erying/tgl: fsp_params: Replace half_populated with statement 2025-04-21 16:19:21 +00:00
example
facebook soc/intel/skylake: Drop redundant PcieRpEnable 2025-04-23 14:15:29 +00:00
foxconn
framework mb/*/*/*.fmd: Start flash at 0 2025-04-09 17:11:43 +00:00
getac
gigabyte
google mb/google/bluey: Implement board and SKU ID retrieval 2025-05-30 04:21:40 +00:00
hardkernel
hp soc/intel/skylake: Drop redundant PcieRpEnable 2025-04-23 14:15:29 +00:00
ibase
ibm mb/*/*/*.fmd: Start flash at 0 2025-04-09 17:11:43 +00:00
intel mb/intel/ptlrvp: Handle GPIO support for DDR5 configuration 2025-05-29 14:19:15 +00:00
inventec
kontron soc/intel/skylake: Drop redundant PcieRpEnable 2025-04-23 14:15:29 +00:00
lattepanda
lenovo mb/lenovo/m900_tiny: Update VBT to build 1037 with Kaby Lake gfx support 2025-05-08 22:30:09 +00:00
libretrend soc/intel/skylake: Drop redundant PcieRpEnable 2025-04-23 14:15:29 +00:00
mitaccomputing
msi
novacustom mb/novacustom/mtl-h/Makefile.mk: include tas5825m.c in the build 2025-05-18 18:51:11 +00:00
ocp
opencellular mb/*/*/*.fmd: Start flash at 0 2025-04-09 17:11:43 +00:00
packardbell
pcengines
pine64
portwell
prodrive soc/intel/cannonlake: Drop redundant PcieRpEnable 2025-04-23 14:15:39 +00:00
protectli soc/intel/cannonlake: Drop redundant PcieRpEnable 2025-04-23 14:15:39 +00:00
purism soc/intel/cannonlake: Hook up DPTF device to devicetree 2025-05-01 22:17:20 +00:00
raptor-cs
razer soc/intel/skylake: Drop redundant PcieRpEnable 2025-04-23 14:15:29 +00:00
roda
samsung mb/samsung/stumpy: Clean up makefile 2025-04-23 14:18:16 +00:00
sapphire
siemens mb/siemens/mc_rpl: Delete fw_config since it is not used 2025-05-21 17:19:25 +00:00
sifive
starlabs mb/starlabs/starbook/tgl: Configure the eSPI GPIOs 2025-05-14 18:05:26 +00:00
supermicro soc/intel/skylake: Drop redundant PcieRpEnable 2025-04-23 14:15:29 +00:00
system76 mb/system76: Add SMBIOS slot descriptions 2025-05-16 20:43:26 +00:00
ti mb/*/*/*.fmd: Start flash at 0 2025-04-09 17:11:43 +00:00
topton mb/topton/adl: Use CFR setup menu to manage options 2025-05-14 18:14:29 +00:00
up
via
Kconfig