mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-27 02:36:03 +00:00
Fix the following device tree warnings: unit-address and first reg (0x40000) don't match for iccm@0 unit-address and first reg (0x80040000) don't match for dccm@80000000 Re-work iccm and dccm reg address and size to be based on #defines. This allows the nsim_sem_normal.dts to override defaults that are set in nsim.dtsi. Utilize DT_ADDR macro to take a 'unit-address' still value and convert it into a hex value (just prepending 0x). Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
29 lines
440 B
Plaintext
29 lines
440 B
Plaintext
/*
|
|
* Copyright (c) 2018, Synopsys, Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <mem.h>
|
|
|
|
/* must be before include of nsim_em.dtsi */
|
|
#define ICCM_ADDR 40000
|
|
#define ICCM_SIZE DT_SIZE_K(256)
|
|
#define DCCM_ADDR 80040000
|
|
#define DCCM_SIZE DT_SIZE_K(256)
|
|
|
|
#include "nsim_em.dtsi"
|
|
|
|
/ {
|
|
|
|
model = "nsim_sem_normal";
|
|
compatible = "snps,nsim_sem_normal";
|
|
|
|
chosen {
|
|
zephyr,sram = &dccm0;
|
|
};
|
|
|
|
};
|