From 957638c78cc5aa0ba37ef281e2c6a09215c5d60e Mon Sep 17 00:00:00 2001 From: Ian Chao Date: Thu, 25 Jun 2015 18:12:09 +0800 Subject: nuc: Add SHI driver for arm-based platform in chip folder. Add npcx_evb_arm board-level driver for arm-based platform. Add header.c: for booting from NPCX5M5G A3 Booter. Remove lfw folder due to those functionalitie have been replaced with Booter Modified drivers for Patch Set 1: 1. flash.c: Implement UMA lock, tri-state and selection register lock functionalities 2. hwtimer.c: Add ITIM32 for hwtimer 3. lpc.c: Add checking for LRESET 4. system.c: Modified CODERAM_ARCH functions for NPCX5M5G A3 Booter. 5. uart.c: Add support for module 2 Patch Set 2: 6. lpc.c: Modified lpc_get_pltrst_asserted() func Patch Set 3: 7. minimize the changes for CONFIG_CODERAM_ARCH in common layer 8. comments of Patch Set1/2 Patch Set 4: 9. Modified CONFIG_RO_MEM_OFF point to ro image and keep header as a part of ec.RO.flat. 10. Fixed RO_FRID and RW_FRID issues which caused by CONFIG_CODERAM_ARCH. Patch Set 5: 11. Modified system.c in common folder for supporting *_STORAGE_OFF. 12. Use *_STORAGE_OFF in firmware_image.lds.S to indicate flat file layout in flash. Patch Set 6: 13. rebase to newest version 14. system.c: Modified for the newest include/system.h Patch Set 7: 15. Merge from version 0625 BUG=chrome-os-partner:34346 TEST=make buildall -j; test nuvoton IC specific drivers BRANCH=none Change-Id: Ifd7c10b81b5781ccd75bb2558dc236486976e8ed Signed-off-by: Ian Chao Reviewed-on: https://chromium-review.googlesource.com/272034 Reviewed-by: Shawn N Tested-by: Shawn N Commit-Queue: Shawn N --- common/fmap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/fmap.c') diff --git a/common/fmap.c b/common/fmap.c index 16b45c9db6..e61df8d968 100644 --- a/common/fmap.c +++ b/common/fmap.c @@ -20,7 +20,12 @@ * For address containing CONFIG_FLASH_BASE (symbols in *.RO.lds.S and * variable), this computes the offset to the start of the image on flash. */ + +#ifdef NPCX_RO_HEADER +#define RELATIVE_RO(addr) ((addr) - CONFIG_CDRAM_BASE) +#else #define RELATIVE_RO(addr) ((addr) - CONFIG_FLASH_BASE - CONFIG_RO_MEM_OFF) +#endif struct fmap_header { char fmap_signature[FMAP_SIGNATURE_SIZE]; -- cgit v1.2.1