diff options
Diffstat (limited to 'chip')
-rw-r--r-- | chip/g/build.mk | 2 | ||||
-rw-r--r-- | chip/g/upgrade_fw.c | 4 | ||||
-rw-r--r-- | chip/it83xx/build.mk | 2 | ||||
-rw-r--r-- | chip/lm4/build.mk | 2 | ||||
-rw-r--r-- | chip/mec1322/build.mk | 2 | ||||
-rw-r--r-- | chip/npcx/build.mk | 2 | ||||
-rw-r--r-- | chip/stm32/build.mk | 4 |
7 files changed, 9 insertions, 9 deletions
diff --git a/chip/g/build.mk b/chip/g/build.mk index 184184abea..6e71d6f210 100644 --- a/chip/g/build.mk +++ b/chip/g/build.mk @@ -66,7 +66,7 @@ chip-$(CONFIG_I2C_SLAVE)+= i2cs.o chip-$(CONFIG_LOW_POWER_IDLE)+=idle.o -chip-$(CONFIG_FLASH)+=flash.o +chip-$(CONFIG_FLASH_PHYSICAL) += flash.o dirs-y += chip/g/dcrypto ifneq ($(CONFIG_CUSTOMIZED_RO),) diff --git a/chip/g/upgrade_fw.c b/chip/g/upgrade_fw.c index a1c52cb56a..25da3b060a 100644 --- a/chip/g/upgrade_fw.c +++ b/chip/g/upgrade_fw.c @@ -101,7 +101,7 @@ static uint8_t check_update_chunk(uint32_t block_offset, size_t body_size) * be erased. */ if (block_offset == valid_sections.rw_base_offset) { - if (flash_erase(base, size) != EC_SUCCESS) { + if (flash_physical_erase(base, size) != EC_SUCCESS) { CPRINTF("%s:%d erase failure of 0x%x..+0x%x\n", __func__, __LINE__, base, size); return UPGRADE_ERASE_FAILURE; @@ -128,7 +128,7 @@ static uint8_t check_update_chunk(uint32_t block_offset, size_t body_size) valid_sections.ro_base_offset; /* backup RO area write access needs to be enabled. */ open_ro_window(base, size); - if (flash_erase(base, size) != EC_SUCCESS) { + if (flash_physical_erase(base, size) != EC_SUCCESS) { CPRINTF("%s:%d erase failure of 0x%x..+0x%x\n", __func__, __LINE__, base, size); return UPGRADE_ERASE_FAILURE; diff --git a/chip/it83xx/build.mk b/chip/it83xx/build.mk index 9d4191aad4..47820aba34 100644 --- a/chip/it83xx/build.mk +++ b/chip/it83xx/build.mk @@ -17,7 +17,7 @@ chip-y=hwtimer.o uart.o gpio.o system.o jtag.o clock.o irq.o intc.o # Optional chip modules chip-$(CONFIG_WATCHDOG)+=watchdog.o chip-$(CONFIG_FANS)+=fan.o pwm.o -chip-$(CONFIG_FLASH)+=flash.o +chip-$(CONFIG_FLASH_PHYSICAL)+=flash.o chip-$(CONFIG_PWM)+=pwm.o chip-$(CONFIG_ADC)+=adc.o chip-$(CONFIG_EC2I)+=ec2i.o diff --git a/chip/lm4/build.mk b/chip/lm4/build.mk index 279f15c65d..3253ebd478 100644 --- a/chip/lm4/build.mk +++ b/chip/lm4/build.mk @@ -18,7 +18,7 @@ chip-y=clock.o gpio.o hwtimer.o jtag.o system.o uart.o chip-$(CONFIG_ADC)+=adc.o chip_temp_sensor.o chip-$(CONFIG_EEPROM)+=eeprom.o chip-$(CONFIG_FANS)+=fan.o -chip-$(CONFIG_FLASH)+=flash.o +chip-$(CONFIG_FLASH_PHYSICAL)+=flash.o chip-$(CONFIG_I2C)+=i2c.o chip-$(CONFIG_LPC)+=lpc.o chip-$(CONFIG_PECI)+=peci.o diff --git a/chip/mec1322/build.mk b/chip/mec1322/build.mk index f2c5cf80a0..615697be0b 100644 --- a/chip/mec1322/build.mk +++ b/chip/mec1322/build.mk @@ -20,7 +20,7 @@ endif chip-y=clock.o gpio.o hwtimer.o system.o uart.o jtag.o port80.o chip-$(CONFIG_ADC)+=adc.o chip-$(CONFIG_FANS)+=fan.o -chip-$(CONFIG_FLASH)+=flash.o +chip-$(CONFIG_FLASH_PHYSICAL)+=flash.o chip-$(CONFIG_I2C)+=i2c.o chip-$(CONFIG_LPC)+=lpc.o chip-$(CONFIG_PWM)+=pwm.o diff --git a/chip/npcx/build.mk b/chip/npcx/build.mk index bf0ddf69d7..2814366ffb 100644 --- a/chip/npcx/build.mk +++ b/chip/npcx/build.mk @@ -17,7 +17,7 @@ chip-y=header.o clock.o gpio.o hwtimer.o jtag.o system.o uart.o # Optional chip modules chip-$(CONFIG_ADC)+=adc.o chip-$(CONFIG_FANS)+=fan.o -chip-$(CONFIG_FLASH)+=flash.o +chip-$(CONFIG_FLASH_PHYSICAL)+=flash.o chip-$(CONFIG_I2C)+=i2c.o chip-$(CONFIG_LPC)+=lpc.o chip-$(CONFIG_ESPI)+=espi.o diff --git a/chip/stm32/build.mk b/chip/stm32/build.mk index 3e1e11ab32..52749e1d16 100644 --- a/chip/stm32/build.mk +++ b/chip/stm32/build.mk @@ -47,8 +47,8 @@ chip-$(CONFIG_WATCHDOG)+=watchdog.o chip-$(HAS_TASK_CONSOLE)+=uart.o chip-$(HAS_TASK_KEYSCAN)+=keyboard_raw.o chip-$(HAS_TASK_POWERLED)+=power_led.o -chip-$(CONFIG_FLASH)+=flash-$(CHIP_FAMILY).o -ifdef CONFIG_FLASH +chip-$(CONFIG_FLASH_PHYSICAL)+=flash-$(CHIP_FAMILY).o +ifdef CONFIG_FLASH_PHYSICAL chip-$(CHIP_FAMILY_STM32F0)+=flash-f.o chip-$(CHIP_FAMILY_STM32F3)+=flash-f.o endif |