diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-03-10 13:51:38 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-12 00:48:20 +0000 |
commit | 07d3b69413317e75b54ee768cd60c5b7582c403b (patch) | |
tree | a71eac4b589e4603d636169ac665bbb2d418e148 /chip/mec1322/build.mk | |
parent | 27199e7b64659a2db7114c670b903578858f8d50 (diff) | |
download | chrome-ec-07d3b69413317e75b54ee768cd60c5b7582c403b.tar.gz |
mec1322: Add flash physical interface functions
Add physical flash interface for read / write / protection of external
SPI on mec1322.
BUG=chrome-os-partner:36167
TEST=Manual on glower:
flashread 0xf000 0x200 --> dumps 0xff
flashwrite 0xf000 0x200
flashread 0xf000 0x200 --> dumps write pattern
flasherase 0xf000 0x1000
flashread 0xf000 0x200 --> dumps 0xff
spi_flash_prot 0 0x10000
flashinfo --> shows first 64KB protected
spi_flashwrite 0xf000 0x200 --> access denied
spi_flashwrite 0x1f000 0x200 --> OK
flashread 0x1f000 0x200 --> dumps write pattern
BRANCH=None
Change-Id: I2cb20a49934999fc0dd9b3425eb99708711637c5
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/257132
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/mec1322/build.mk')
-rw-r--r-- | chip/mec1322/build.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/mec1322/build.mk b/chip/mec1322/build.mk index abd69b227d..9c9ecd16b5 100644 --- a/chip/mec1322/build.mk +++ b/chip/mec1322/build.mk @@ -15,6 +15,7 @@ CFLAGS_CPU+=-march=armv7e-m -mcpu=cortex-m4 chip-y=clock.o gpio.o hwtimer.o system.o uart.o jtag.o chip-$(CONFIG_ADC)+=adc.o chip-$(CONFIG_FANS)+=fan.o +chip-$(CONFIG_FLASH)+=flash.o chip-$(CONFIG_I2C)+=i2c.o chip-$(CONFIG_LPC)+=lpc.o chip-$(CONFIG_PWM)+=pwm.o |