Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48785 )
Change subject: [WIP] mb/google: cbmem_add_vpd_calibration() ......................................................................
[WIP] mb/google: cbmem_add_vpd_calibration()
Change-Id: Ica8691e3dc4feecbeb11ba3f5868932f926965b2 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/mainboard/google/gale/mainboard.c M src/mainboard/google/mistral/mainboard.c M src/mainboard/google/storm/mainboard.c 3 files changed, 6 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/48785/1
diff --git a/src/mainboard/google/gale/mainboard.c b/src/mainboard/google/gale/mainboard.c index cd55c93..28b5f96 100644 --- a/src/mainboard/google/gale/mainboard.c +++ b/src/mainboard/google/gale/mainboard.c @@ -31,10 +31,9 @@ setup_mmu(DRAM_INITIALIZED); setup_usb();
- if (CONFIG(CHROMEOS)) { - /* Copy WIFI calibration data into CBMEM. */ + /* Copy WIFI calibration data into CBMEM. */ + if (CONFIG(CHROMEOS)) cbmem_add_vpd_calibration_data(); - }
/* * Make sure bootloader can issue sounds The frequency is calculated diff --git a/src/mainboard/google/mistral/mainboard.c b/src/mainboard/google/mistral/mainboard.c index e0cd75d..4079182 100644 --- a/src/mainboard/google/mistral/mainboard.c +++ b/src/mainboard/google/mistral/mainboard.c @@ -19,10 +19,9 @@
static void mainboard_init(struct device *dev) { - if (CONFIG(CHROMEOS)) { - /* Copy WIFI calibration data into CBMEM. */ + /* Copy WIFI calibration data into CBMEM. */ + if (CONFIG(CHROMEOS)) cbmem_add_vpd_calibration_data(); - }
setup_usb(); } diff --git a/src/mainboard/google/storm/mainboard.c b/src/mainboard/google/storm/mainboard.c index 6a89be0..4faf832 100644 --- a/src/mainboard/google/storm/mainboard.c +++ b/src/mainboard/google/storm/mainboard.c @@ -76,10 +76,9 @@ /* Functionally a 0-cost no-op if NAND is not present */ board_nand_init();
-#if CONFIG(CHROMEOS) /* Copy WIFI calibration data into CBMEM. */ - cbmem_add_vpd_calibration_data(); -#endif + if (CONFIG(CHROMEOS)) + cbmem_add_vpd_calibration_data();
/* * Make sure bootloader can issue sounds The frequency is calculated
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48785
to look at the new patch set (#3).
Change subject: mb/google: Convert some CONFIG(CHROMEOS) preprocessor ......................................................................
mb/google: Convert some CONFIG(CHROMEOS) preprocessor
Change-Id: Ica8691e3dc4feecbeb11ba3f5868932f926965b2 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/mainboard/google/gale/mainboard.c M src/mainboard/google/mistral/mainboard.c M src/mainboard/google/storm/mainboard.c 3 files changed, 6 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/48785/3
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48785
to look at the new patch set (#4).
Change subject: mb/google: Convert some CONFIG(CHROMEOS) preprocessor ......................................................................
mb/google: Convert some CONFIG(CHROMEOS) preprocessor
Change-Id: Ica8691e3dc4feecbeb11ba3f5868932f926965b2 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/mainboard/google/gale/mainboard.c M src/mainboard/google/mistral/mainboard.c M src/mainboard/google/storm/mainboard.c 3 files changed, 6 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/48785/4
Attention is currently required from: Kyösti Mälkki. Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48785 )
Change subject: mb/google: Convert some CONFIG(CHROMEOS) preprocessor ......................................................................
Patch Set 4: Code-Review+2
Attention is currently required from: Tim Wawrzynczak, EricR Lai. Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48785 )
Change subject: mb/google: Convert some CONFIG(CHROMEOS) preprocessor ......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS4: Actually there was not much conversion of preprocessor here, I had this on hold for other reasons.
I could only find cbmem_add() with CBMEM_ID_WIFI_CALIBRATION. So presumably something in the OS then uses the CBMEM data? But the structs in vpd_calibration.c are not __packed nor do they appear under commonlib/ headers.
Attention is currently required from: Tim Wawrzynczak, Kyösti Mälkki. EricR Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48785 )
Change subject: mb/google: Convert some CONFIG(CHROMEOS) preprocessor ......................................................................
Patch Set 4: Code-Review+2
(1 comment)
Patchset:
PS4: I this is what I understood so far. Depthcharge will use this info add into DT then pass to kernel.
Attention is currently required from: Tim Wawrzynczak. Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48785 )
Change subject: mb/google: Convert some CONFIG(CHROMEOS) preprocessor ......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS4:
Actually there was not much conversion of preprocessor here, I had this on hold for other reasons. […]
Based on being used in depthcharge, I consider this solved. Possible changes for the declarations or their location is not within the scope.
Kyösti Mälkki has submitted this change. ( https://review.coreboot.org/c/coreboot/+/48785 )
Change subject: mb/google: Convert some CONFIG(CHROMEOS) preprocessor ......................................................................
mb/google: Convert some CONFIG(CHROMEOS) preprocessor
Change-Id: Ica8691e3dc4feecbeb11ba3f5868932f926965b2 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/48785 Reviewed-by: Furquan Shaikh furquan@google.com Reviewed-by: EricR Lai ericr_lai@compal.corp-partner.google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/gale/mainboard.c M src/mainboard/google/mistral/mainboard.c M src/mainboard/google/storm/mainboard.c 3 files changed, 6 insertions(+), 9 deletions(-)
Approvals: build bot (Jenkins): Verified Furquan Shaikh: Looks good to me, approved EricR Lai: Looks good to me, approved
diff --git a/src/mainboard/google/gale/mainboard.c b/src/mainboard/google/gale/mainboard.c index 39a3428..bc4fc93 100644 --- a/src/mainboard/google/gale/mainboard.c +++ b/src/mainboard/google/gale/mainboard.c @@ -30,10 +30,9 @@ setup_mmu(DRAM_INITIALIZED); setup_usb();
- if (CONFIG(CHROMEOS)) { - /* Copy WIFI calibration data into CBMEM. */ + /* Copy WIFI calibration data into CBMEM. */ + if (CONFIG(CHROMEOS)) cbmem_add_vpd_calibration_data(); - }
/* * Make sure bootloader can issue sounds The frequency is calculated diff --git a/src/mainboard/google/mistral/mainboard.c b/src/mainboard/google/mistral/mainboard.c index e0cd75d..4079182 100644 --- a/src/mainboard/google/mistral/mainboard.c +++ b/src/mainboard/google/mistral/mainboard.c @@ -19,10 +19,9 @@
static void mainboard_init(struct device *dev) { - if (CONFIG(CHROMEOS)) { - /* Copy WIFI calibration data into CBMEM. */ + /* Copy WIFI calibration data into CBMEM. */ + if (CONFIG(CHROMEOS)) cbmem_add_vpd_calibration_data(); - }
setup_usb(); } diff --git a/src/mainboard/google/storm/mainboard.c b/src/mainboard/google/storm/mainboard.c index 6a89be0..4faf832 100644 --- a/src/mainboard/google/storm/mainboard.c +++ b/src/mainboard/google/storm/mainboard.c @@ -76,10 +76,9 @@ /* Functionally a 0-cost no-op if NAND is not present */ board_nand_init();
-#if CONFIG(CHROMEOS) /* Copy WIFI calibration data into CBMEM. */ - cbmem_add_vpd_calibration_data(); -#endif + if (CONFIG(CHROMEOS)) + cbmem_add_vpd_calibration_data();
/* * Make sure bootloader can issue sounds The frequency is calculated