Convert linker scripts and arc_mpu_regions.c setup to use new devicetree.h macros to extract the base address and size of the various memory regions (DDR, SRAM, FLASH, DCCM, ICCM). We also remove the scaling up and down since DT_REG_SIZE() returns the value in bytes. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
24 lines
505 B
Plaintext
24 lines
505 B
Plaintext
/*
|
|
* Copyright (c) 2019 Synopsys, Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @brief Linker script for the HS Development Kit
|
|
*/
|
|
|
|
#include <devicetree.h>
|
|
#include <autoconf.h>
|
|
|
|
/*
|
|
* SRAM base address and size
|
|
*/
|
|
#if DT_NODE_HAS_PROP(DT_CHOSEN(zephyr_sram), reg) && \
|
|
(DT_REG_SIZE(DT_CHOSEN(zephyr_sram)) > 0)
|
|
#define SRAM_START DT_REG_ADDR(DT_CHOSEN(zephyr_sram))
|
|
#define SRAM_SIZE DT_REG_SIZE(DT_CHOSEN(zephyr_sram))
|
|
#endif
|
|
|
|
#include <arch/arc/v2/linker.ld>
|