mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 08:31:52 +00:00
SERIRQ bug: PMC1/2 share the same IRQ number 1 with default setting. Enable it will influence 8042 protocols since KBC has no data but IRQ 1 is issued by PMC. AC detection bug: GPIO definitions between AC_PRESENT and ACOK mismatched. AC_PRESENT will always be high even we don't plug the adaptor. Modified drivers: 1. lpc.c: Remove enabling SERIRQ for PMC1/2 and disable IRQ12 for Mouse. 2. config_flash_layout.h: Modified for adjusting RAM size. 3. gpio.inc: Modified GPIO definitions for AC issue 4. board.h: Modified for adjusting RAM size and add support for ACC 5. board.c: Add support for ACC and adjust ADC max value BUG=chrome-os-partner:34346 TEST=make buildall -j; test nuvoton IC specific drivers BRANCH=none Change-Id: Ib330ef4078e4b06f1c01a2a6316e468b43d7a8d9 Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/311933 Reviewed-by: Randall Spangler <rspangler@chromium.org>
49 lines
1.6 KiB
C
49 lines
1.6 KiB
C
/* Copyright 2015 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef __CROS_EC_CONFIG_FLASH_LAYOUT_H
|
|
#define __CROS_EC_CONFIG_FLASH_LAYOUT_H
|
|
|
|
/*
|
|
* npcx flash layout:
|
|
* - Memory-mapped external SPI.
|
|
* - Image header at the beginning of protected region, followed by RO image.
|
|
* - RW image starts at the second half of flash.
|
|
*/
|
|
|
|
/* Memmapped, external SPI */
|
|
#define CONFIG_EXTERNAL_STORAGE
|
|
#define CONFIG_MAPPED_STORAGE
|
|
/* Storage is memory-mapped, but program runs from SRAM */
|
|
#define CONFIG_MAPPED_STORAGE_BASE 0x64000000
|
|
#undef CONFIG_FLASH_PSTATE
|
|
|
|
#define CONFIG_EC_PROTECTED_STORAGE_OFF 0
|
|
#define CONFIG_EC_PROTECTED_STORAGE_SIZE 0x20000
|
|
#define CONFIG_EC_WRITABLE_STORAGE_OFF 0x20000
|
|
#define CONFIG_EC_WRITABLE_STORAGE_SIZE 0x20000
|
|
|
|
/* Header support which is used by booter to copy FW from flash to code ram */
|
|
#define NPCX_RO_HEADER
|
|
#define CONFIG_RO_HDR_MEM_OFF 0x0
|
|
#define CONFIG_RO_HDR_SIZE 0x40
|
|
|
|
#define CONFIG_WP_STORAGE_OFF CONFIG_EC_PROTECTED_STORAGE_OFF
|
|
#define CONFIG_WP_STORAGE_SIZE CONFIG_EC_PROTECTED_STORAGE_SIZE
|
|
|
|
/* RO firmware offset in flash */
|
|
#define CONFIG_RO_MEM_OFF 0
|
|
#define CONFIG_RO_SIZE (96 * 1024) /* 96KB for RO FW */
|
|
|
|
/* RW firmware offset in flash */
|
|
#define CONFIG_RW_MEM_OFF CONFIG_RW_STORAGE_OFF
|
|
#define CONFIG_RW_SIZE CONFIG_RO_SIZE /* 96KB for RW FW */
|
|
|
|
/* The storage offset of ec.R*.flat which is used for firmware_image.lds */
|
|
#define CONFIG_RO_STORAGE_OFF CONFIG_RO_HDR_SIZE
|
|
#define CONFIG_RW_STORAGE_OFF 0
|
|
|
|
#endif /* __CROS_EC_CONFIG_FLASH_LAYOUT_H */
|