summaryrefslogtreecommitdiff
path: root/zephyr/app/ec/chip/arm/microchip_xec/Kconfig.xec_mec172x
blob: bfcfeb823515f3863767684971fd64bfb4c6cb03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

#
# This file defines the correct defaults when using the MEC172x series chipset
#

if SOC_SERIES_MEC172X

#
# MEC1727NSZ: 416KB total SRAM as 352 KiB Code and 64 KiB data.
#             Top 2KB of data SRAM used by Boot-ROM and a 1KB persistent
#             region for customer use.
#             512 KiB internal SPI flash

# Code RAM base for MEC172x series
# First 4KB reserved for SRAM based EC LFW functionality
# Experiment remove reserve of first 4KB and use ROM load API
config CROS_EC_PROGRAM_MEMORY_BASE
	default 0xc0000

# Data SRAM base
config CROS_EC_RAM_BASE
	default 0x118000

# Total data SRAM size
config CROS_EC_DATA_RAM_SIZE
	default 0x010000

# Top 2KB reserved for PUF leaving 62KB
# 61KB for data + 1KB persistent across chip reset.
config CROS_EC_RAM_SIZE
	default 0x00f800

config FLASH_SIZE
	default 512

config CROS_EC_RO_MEM_OFF
	default 0x0

# was 0x40000
config CROS_EC_RO_SIZE
	default 0x3F000

# RW firmware in program memory - Identical to RO, only one image loaded at a
# time.
config CROS_EC_RW_MEM_OFF
	default 0x0

config CROS_EC_RW_SIZE
	default 0x40000

endif # SOC_SERIES_MEC172X