2018-11-16 12:10:55 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Synopsys, Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Linker script for the Synopsys ARC IoT Development Kit
|
|
|
|
*/
|
|
|
|
|
2020-01-16 20:29:53 +08:00
|
|
|
#include <devicetree.h>
|
2018-12-12 23:33:11 +08:00
|
|
|
#include <autoconf.h>
|
2018-11-16 12:10:55 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* SRAM base address and size
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#if defined(CONFIG_SRAM_BASE_ADDRESS) && (CONFIG_SRAM_SIZE > 0)
|
|
|
|
#define SRAM_START CONFIG_SRAM_BASE_ADDRESS
|
|
|
|
#define SRAM_SIZE CONFIG_SRAM_SIZE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_FLASH_BASE_ADDRESS) && (CONFIG_FLASH_SIZE > 0)
|
|
|
|
#define FLASH_START CONFIG_FLASH_BASE_ADDRESS
|
|
|
|
#define FLASH_SIZE CONFIG_FLASH_SIZE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* Instruction Closely Coupled Memory (ICCM) base address and size */
|
2018-12-12 19:16:36 +08:00
|
|
|
#if defined(DT_ICCM_BASE_ADDRESS) && (DT_ICCM_SIZE > 0)
|
|
|
|
#define ICCM_START DT_ICCM_BASE_ADDRESS
|
|
|
|
#define ICCM_SIZE DT_ICCM_SIZE
|
2018-11-16 12:10:55 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* DCCM base address and size. DCCM is the data memory.
|
|
|
|
*/
|
|
|
|
/* Data Closely Coupled Memory (DCCM) base address and size */
|
2018-12-12 19:16:36 +08:00
|
|
|
#if defined(DT_DCCM_BASE_ADDRESS) && (DT_DCCM_SIZE > 0)
|
|
|
|
#define DCCM_START DT_DCCM_BASE_ADDRESS
|
|
|
|
#define DCCM_SIZE DT_DCCM_SIZE
|
2018-11-16 12:10:55 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <arch/arc/v2/linker.ld>
|