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>
This commit is contained in:
Kyösti Mälkki 2020-12-19 21:52:21 +02:00
parent 864be5bae5
commit 43881bb214
3 changed files with 6 additions and 9 deletions

View File

@ -30,10 +30,9 @@ static void mainboard_init(struct device *dev)
setup_mmu(DRAM_INITIALIZED); setup_mmu(DRAM_INITIALIZED);
setup_usb(); 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(); cbmem_add_vpd_calibration_data();
}
/* /*
* Make sure bootloader can issue sounds The frequency is calculated * Make sure bootloader can issue sounds The frequency is calculated

View File

@ -19,10 +19,9 @@ static void setup_usb(void)
static void mainboard_init(struct device *dev) 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(); cbmem_add_vpd_calibration_data();
}
setup_usb(); setup_usb();
} }

View File

@ -76,10 +76,9 @@ static void mainboard_init(struct device *dev)
/* Functionally a 0-cost no-op if NAND is not present */ /* Functionally a 0-cost no-op if NAND is not present */
board_nand_init(); board_nand_init();
#if CONFIG(CHROMEOS)
/* Copy WIFI calibration data into CBMEM. */ /* Copy WIFI calibration data into CBMEM. */
if (CONFIG(CHROMEOS))
cbmem_add_vpd_calibration_data(); cbmem_add_vpd_calibration_data();
#endif
/* /*
* Make sure bootloader can issue sounds The frequency is calculated * Make sure bootloader can issue sounds The frequency is calculated