2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2014-10-22 08:47:44 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2014 Chen-Yu Tsai <wens@csie.org>
|
|
|
|
*
|
|
|
|
* Configuration settings for the Allwinner A23 (sun8i) CPU
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A23 specific configuration
|
|
|
|
*/
|
2014-12-07 13:34:27 +00:00
|
|
|
|
2021-04-19 03:21:41 +00:00
|
|
|
#ifdef SUNXI_SRAM_A2_SIZE
|
|
|
|
/*
|
|
|
|
* If the SoC has enough SRAM A2, use that for the secure monitor.
|
|
|
|
* Skip the first 16 KiB of SRAM A2, which is not usable, as only certain bytes
|
|
|
|
* are writable. Reserve the last 17 KiB for the resume shim and SCP firmware.
|
|
|
|
*/
|
|
|
|
#define CONFIG_ARMV7_SECURE_BASE (SUNXI_SRAM_A2_BASE + 16 * 1024)
|
|
|
|
#define CONFIG_ARMV7_SECURE_MAX_SIZE (SUNXI_SRAM_A2_SIZE - 33 * 1024)
|
|
|
|
#endif
|
|
|
|
|
2014-10-22 08:47:44 +00:00
|
|
|
/*
|
|
|
|
* Include common sunxi configuration where most the settings are
|
|
|
|
*/
|
|
|
|
#include <configs/sunxi-common.h>
|
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|