diff options
author | Mulin Chao <mlchao@nuvoton.com> | 2016-03-03 11:24:55 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-03-05 11:36:32 -0800 |
commit | dca765004fddc75fad07d48469caff61d1574d1b (patch) | |
tree | 11976b50041fd6f8dd9796c4b0edea37d0eb82df /chip/npcx/build.mk | |
parent | f02a5e90453515e6215e27f565dfd78603a05567 (diff) | |
download | chrome-ec-dca765004fddc75fad07d48469caff61d1574d1b.tar.gz |
npcx: Add CHIP_VARIANT variant for different versions of npcx ec.
In order to support 256 KB ram version of npcx ec, we add CHIP_VARIANT
variant to distinguish which verson ec is.
In config_chip.h, we use CHIP_VARIANT to specify the size and start address
of program memory. Ecst tool also needs a chip parameter to make sure
the address range checking of entry pointer won't fail.
Modified sources:
1. config_chip.h: Use CHIP_VARIANT to specify the different hardware spec
of npcx ec.
2. config_flash_layout.h: Replace constant value with
CONFIG_PROGRAM_MEMORY_SIZE for CONFIG_RO_SIZE.
3. build.mk: Add -chip parameter for ecst tool to check entry address.
4. npcx_evb\build.mk: Add CHIP_VARIANT definition (npcx5m5g).
5. npcx_evb_arm\build.mk: Add CHIP_VARIANT definition (npcx5m5g).
6. wheatley\build.mk: Add CHIP_VARIANT definition (npcx5m5g).
BUG=chrome-os-partner:34346
TEST=make buildall -j; test nuvoton IC specific drivers
BRANCH=none
Change-Id: I1b8b9b9d0a59bdc01210f498ac67e4a342743b47
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Reviewed-on: https://chromium-review.googlesource.com/330072
Tested-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'chip/npcx/build.mk')
-rw-r--r-- | chip/npcx/build.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/npcx/build.mk b/chip/npcx/build.mk index 0fd97d33b0..09f59e3710 100644 --- a/chip/npcx/build.mk +++ b/chip/npcx/build.mk @@ -37,7 +37,7 @@ PROJECT_EXTRA+=${npcx-flash-fw-bin} show_esct_cmd=$(if $(V),,echo ' ECST ' $(subst $(out)/,,$@) ; ) # ECST options for header -bld_ecst=${out}/util/ecst -usearmrst -mode bt -ph -i $(1) -o $(2) -nohcrc \ +bld_ecst=${out}/util/ecst -chip $(CHIP_VARIANT) -usearmrst -mode bt -ph -i $(1) -o $(2) -nohcrc \ -nofcrc -flashsize 8 -spimaxclk 50 -spireadmode dual 1> /dev/null # Replace original one with the flat file including header |