dts: Use new DT_SIZE_{K,M} macros

Now that we have a common DT_SIZE_K macro use it instead of defining
__SIZE_K eveywhere.  We also have DT_SIZE_M, so use that in a few
places as well.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-09-14 23:21:56 -05:00 committed by Kumar Gala
parent 02d0523f40
commit 6e240da26f
26 changed files with 175 additions and 173 deletions

View file

@ -1,8 +1,10 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(128)
#define DT_SRAM_SIZE __SIZE_K(24)
#define DT_DCCM_SIZE __SIZE_K(8)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(128)
#define DT_SRAM_SIZE DT_SIZE_K(24)
#define DT_DCCM_SIZE DT_SIZE_K(8)
#define DT_FLASH_ADDR 0x40034000

View file

@ -1,8 +1,10 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(152)
#define DT_SRAM_SIZE __SIZE_K(24)
#define DT_DCCM_SIZE __SIZE_K(8)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(152)
#define DT_SRAM_SIZE DT_SIZE_K(24)
#define DT_DCCM_SIZE DT_SIZE_K(8)
#define DT_FLASH_ADDR 0x40000000

View file

@ -6,14 +6,14 @@
/dts-v1/;
#define __SIZE_K(x) ((x) * 1024)
#include <mem.h>
/*
* Determines the address and size for code memory which will be applied
* when "zephyr,flash = &flash". Use this to select a custom region,
* usually within DDR.
*/
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_FLASH_ADDR 0x84000000
/*
@ -21,7 +21,7 @@
* when "zephyr,sram = &sram". Use this to select a custom region,
* usually within DDR.
*/
#define DT_SRAM_SIZE __SIZE_K(128)
#define DT_SRAM_SIZE DT_SIZE_K(128)
#define DT_SRAM_ADDR 0x84080000
#include <nxp/nxp_imx6sx_m4.dtsi>

View file

@ -1,7 +1,9 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(144)
#define DT_SRAM_SIZE __SIZE_K(52)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(144)
#define DT_SRAM_SIZE DT_SIZE_K(52)
#include "intel_curie.dtsi"

View file

@ -1,7 +1,9 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(32768)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_M(32)
#include <quark_x1000.dtsi>

View file

@ -1,7 +1,9 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(8912)
#define DT_SRAM_SIZE __SIZE_K(2097152)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(8912)
#define DT_SRAM_SIZE DT_SIZE_M(2048)
#include <atom.dtsi>

View file

@ -1,11 +1,13 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(4092)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(4092)
#if XIP
#define DT_SRAM_SIZE __SIZE_K(4096)
#define DT_SRAM_SIZE DT_SIZE_K(4096)
#else
#define DT_SRAM_SIZE __SIZE_K(8188)
#define DT_SRAM_SIZE DT_SIZE_K(8188)
#endif
#include <ia32.dtsi>

View file

@ -1,7 +1,9 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(32)
#define DT_SRAM_SIZE __SIZE_K(8)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(32)
#define DT_SRAM_SIZE DT_SIZE_K(8)
#include "intel_quark_d2000.dtsi"

View file

@ -1,7 +1,9 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(144)
#define DT_SRAM_SIZE __SIZE_K(52)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(144)
#define DT_SRAM_SIZE DT_SIZE_K(52)
#include "intel_curie.dtsi"

View file

@ -1,7 +1,9 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(192)
#define DT_SRAM_SIZE __SIZE_K(52)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(192)
#define DT_SRAM_SIZE DT_SIZE_K(52)
#include "intel_curie.dtsi"

View file

@ -6,8 +6,10 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(8912)
#define DT_SRAM_SIZE __SIZE_K(2097152)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(8912)
#define DT_SRAM_SIZE DT_SIZE_M(2048)
#include <apollo_lake.dtsi>
#include <dt-bindings/i2c/i2c.h>

View file

@ -1,11 +1,13 @@
/dts-v1/;
#define DT_FLASH_SIZE __SIZE_K(4092)
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_K(4092)
#if XIP
#define DT_SRAM_SIZE __SIZE_K(4096)
#define DT_SRAM_SIZE DT_SIZE_K(4096)
#else
#define DT_SRAM_SIZE __SIZE_K(8188)
#define DT_SRAM_SIZE DT_SIZE_K(8188)
#endif
#include <ia32.dtsi>

View file

@ -7,19 +7,19 @@
#ifndef __EMSK_DT_H
#define __EMSK_DT_H
#define __SIZE_K(x) (x * 1024)
#include <mem.h>
#define DT_APB_CLK_HZ 50000000
#if defined(CONFIG_SOC_EMSK_EM11D)
#define DT_ICCM_SIZE __SIZE_K(64)
#define DT_DCCM_SIZE __SIZE_K(64)
#define DT_ICCM_SIZE DT_SIZE_K(64)
#define DT_DCCM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_EMSK_EM7D)
#define DT_ICCM_SIZE __SIZE_K(256)
#define DT_DCCM_SIZE __SIZE_K(128)
#define DT_ICCM_SIZE DT_SIZE_K(256)
#define DT_DCCM_SIZE DT_SIZE_K(128)
#elif defined(CONFIG_SOC_EMSK_EM9D)
#define DT_ICCM_SIZE __SIZE_K(256)
#define DT_DCCM_SIZE __SIZE_K(128)
#define DT_ICCM_SIZE DT_SIZE_K(256)
#define DT_DCCM_SIZE DT_SIZE_K(128)
#endif
#ifdef CONFIG_BOARD_EM_STARTERKIT_R23

View file

@ -8,8 +8,6 @@
#include <dt-bindings/i2c/i2c.h>
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;

View file

@ -8,35 +8,35 @@
#ifndef __DT_BINDING_SAME70_MEM_H
#define __DT_BINDING_SAME70_MEM_H
#define __SIZE_K(x) (x * 1024)
#include <mem.h>
#if defined CONFIG_SOC_PART_NUMBER_SAME70J19
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(256)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(256)
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J20
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(384)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(384)
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J21
#define DT_FLASH_SIZE __SIZE_K(2048)
#define DT_SRAM_SIZE __SIZE_K(384)
#define DT_FLASH_SIZE DT_SIZE_K(2048)
#define DT_SRAM_SIZE DT_SIZE_K(384)
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N19
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(256)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(256)
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N20
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(384)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(384)
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N21
#define DT_FLASH_SIZE __SIZE_K(2048)
#define DT_SRAM_SIZE __SIZE_K(384)
#define DT_FLASH_SIZE DT_SIZE_K(2048)
#define DT_SRAM_SIZE DT_SIZE_K(384)
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q19
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(256)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(256)
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q20
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(384)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(384)
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q21
#define DT_FLASH_SIZE __SIZE_K(2048)
#define DT_SRAM_SIZE __SIZE_K(384)
#define DT_FLASH_SIZE DT_SIZE_K(2048)
#define DT_SRAM_SIZE DT_SIZE_K(384)
#else
#error "Flash and RAM sizes not defined for this chip"
#endif

View file

@ -6,32 +6,32 @@
#ifndef __DT_BINDING_ST_MEM_H
#define __DT_BINDING_ST_MEM_H
#define __SIZE_K(x) ((x) * 1024)
#include <mem.h>
#if defined(CONFIG_SOC_NRF51822_QFAA)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(16)
#define DT_FLASH_SIZE DT_SIZE_K(256)
#define DT_SRAM_SIZE DT_SIZE_K(16)
#elif defined(CONFIG_SOC_NRF51822_QFAB)
#define DT_FLASH_SIZE __SIZE_K(128)
#define DT_SRAM_SIZE __SIZE_K(16)
#define DT_FLASH_SIZE DT_SIZE_K(128)
#define DT_SRAM_SIZE DT_SIZE_K(16)
#elif defined(CONFIG_SOC_NRF51822_QFAC)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(32)
#define DT_FLASH_SIZE DT_SIZE_K(256)
#define DT_SRAM_SIZE DT_SIZE_K(32)
#elif defined(CONFIG_SOC_NRF52810_QFAA)
#define DT_FLASH_SIZE __SIZE_K(192)
#define DT_SRAM_SIZE __SIZE_K(24)
#define DT_FLASH_SIZE DT_SIZE_K(192)
#define DT_SRAM_SIZE DT_SIZE_K(24)
#elif defined(CONFIG_SOC_NRF52832_QFAA)
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_NRF52832_CIAA)
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_NRF52832_QFAB)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(32)
#define DT_FLASH_SIZE DT_SIZE_K(256)
#define DT_SRAM_SIZE DT_SIZE_K(32)
#elif defined(CONFIG_SOC_NRF52840_QIAA)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(256)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(256)
#else
#error "Flash and RAM sizes not defined for this chip"
#endif

View file

@ -6,124 +6,124 @@
#ifndef __DT_BINDING_ST_MEM_H
#define __DT_BINDING_ST_MEM_H
#define __SIZE_K(x) ((x) * 1024)
#include <mem.h>
#if defined(CONFIG_SOC_STM32F030X8)
#define DT_FLASH_SIZE __SIZE_K(64)
#define DT_SRAM_SIZE __SIZE_K(8)
#define DT_FLASH_SIZE DT_SIZE_K(64)
#define DT_SRAM_SIZE DT_SIZE_K(8)
#elif defined(CONFIG_SOC_STM32F051X8)
#define DT_FLASH_SIZE __SIZE_K(64)
#define DT_SRAM_SIZE __SIZE_K(8)
#define DT_FLASH_SIZE DT_SIZE_K(64)
#define DT_SRAM_SIZE DT_SIZE_K(8)
#elif defined(CONFIG_SOC_STM32F070XB)
#define DT_FLASH_SIZE __SIZE_K(128)
#define DT_SRAM_SIZE __SIZE_K(16)
#define DT_FLASH_SIZE DT_SIZE_K(128)
#define DT_SRAM_SIZE DT_SIZE_K(16)
#elif defined(CONFIG_SOC_STM32F072XB)
#define DT_FLASH_SIZE __SIZE_K(128)
#define DT_SRAM_SIZE __SIZE_K(16)
#define DT_FLASH_SIZE DT_SIZE_K(128)
#define DT_SRAM_SIZE DT_SIZE_K(16)
#elif defined(CONFIG_SOC_STM32F091XC)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(32)
#define DT_FLASH_SIZE DT_SIZE_K(256)
#define DT_SRAM_SIZE DT_SIZE_K(32)
#elif defined(CONFIG_SOC_STM32F103X8)
#define DT_FLASH_SIZE __SIZE_K(64)
#define DT_SRAM_SIZE __SIZE_K(20)
#define DT_FLASH_SIZE DT_SIZE_K(64)
#define DT_SRAM_SIZE DT_SIZE_K(20)
#elif defined(CONFIG_SOC_STM32F103XB)
#define DT_FLASH_SIZE __SIZE_K(128)
#define DT_SRAM_SIZE __SIZE_K(20)
#define DT_FLASH_SIZE DT_SIZE_K(128)
#define DT_SRAM_SIZE DT_SIZE_K(20)
#elif defined(CONFIG_SOC_STM32F103XE)
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_STM32F107XC)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(256)
#define DT_SRAM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_STM32F207XE)
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(128)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(128)
#elif defined(CONFIG_SOC_STM32F207XG)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(128)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(128)
#elif defined(CONFIG_SOC_STM32F303XC)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(40)
#define DT_CCM_SIZE __SIZE_K(8)
#define DT_FLASH_SIZE DT_SIZE_K(256)
#define DT_SRAM_SIZE DT_SIZE_K(40)
#define DT_CCM_SIZE DT_SIZE_K(8)
#elif defined(CONFIG_SOC_STM32F334X8)
#define DT_FLASH_SIZE __SIZE_K(64)
#define DT_SRAM_SIZE __SIZE_K(12)
#define DT_CCM_SIZE __SIZE_K(4)
#define DT_FLASH_SIZE DT_SIZE_K(64)
#define DT_SRAM_SIZE DT_SIZE_K(12)
#define DT_CCM_SIZE DT_SIZE_K(4)
#elif defined(CONFIG_SOC_STM32F373XC)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(32)
#define DT_FLASH_SIZE DT_SIZE_K(256)
#define DT_SRAM_SIZE DT_SIZE_K(32)
#elif defined(CONFIG_SOC_STM32F401XE)
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(96)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(96)
#elif defined(CONFIG_SOC_STM32F405XG)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(192)
#define DT_CCM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(192)
#define DT_CCM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_STM32F407XG)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(192)
#define DT_CCM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(192)
#define DT_CCM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_STM32F411XE)
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(128)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(128)
#elif defined(CONFIG_SOC_STM32F412ZG) || defined(CONFIG_SOC_STM32F412CG)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(256)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(256)
#elif defined(CONFIG_SOC_STM32F413XH)
#define DT_FLASH_SIZE __SIZE_K(1536)
#define DT_SRAM_SIZE __SIZE_K(320)
#define DT_FLASH_SIZE DT_SIZE_K(1536)
#define DT_SRAM_SIZE DT_SIZE_K(320)
#elif defined(CONFIG_SOC_STM32F417XE)
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(192)
#define DT_CCM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(192)
#define DT_CCM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_STM32F417XG)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(192)
#define DT_CCM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(192)
#define DT_CCM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_STM32F429XI)
#define DT_FLASH_SIZE __SIZE_K(2048)
#define DT_SRAM_SIZE __SIZE_K(256)
#define DT_CCM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(2048)
#define DT_SRAM_SIZE DT_SIZE_K(256)
#define DT_CCM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_STM32F446XE)
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(128)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(128)
#elif defined(CONFIG_SOC_STM32F469XI)
#define DT_FLASH_SIZE __SIZE_K(2048)
#define DT_SRAM_SIZE __SIZE_K(384)
#define DT_CCM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(2048)
#define DT_SRAM_SIZE DT_SIZE_K(384)
#define DT_CCM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_STM32F723XE)
#define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(256)
#define DT_FLASH_SIZE DT_SIZE_K(512)
#define DT_SRAM_SIZE DT_SIZE_K(256)
#elif defined(CONFIG_SOC_STM32F746XG)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(320)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(320)
#elif defined(CONFIG_SOC_STM32F769XI)
#define DT_FLASH_SIZE __SIZE_K(2048)
#define DT_SRAM_SIZE __SIZE_K(512)
#define DT_FLASH_SIZE DT_SIZE_K(2048)
#define DT_SRAM_SIZE DT_SIZE_K(512)
#elif defined(CONFIG_SOC_STM32L053X8)
#define DT_FLASH_SIZE __SIZE_K(64)
#define DT_SRAM_SIZE __SIZE_K(8)
#define DT_FLASH_SIZE DT_SIZE_K(64)
#define DT_SRAM_SIZE DT_SIZE_K(8)
#elif defined(CONFIG_SOC_STM32L072XZ)
#define DT_FLASH_SIZE __SIZE_K(192)
#define DT_SRAM_SIZE __SIZE_K(20)
#define DT_FLASH_SIZE DT_SIZE_K(192)
#define DT_SRAM_SIZE DT_SIZE_K(20)
#elif defined(CONFIG_SOC_STM32L073XZ)
#define DT_FLASH_SIZE __SIZE_K(192)
#define DT_SRAM_SIZE __SIZE_K(20)
#define DT_FLASH_SIZE DT_SIZE_K(192)
#define DT_SRAM_SIZE DT_SIZE_K(20)
#elif defined(CONFIG_SOC_STM32L475XG)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(96)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(96)
#elif defined(CONFIG_SOC_STM32L476XG)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(96)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(96)
#elif defined(CONFIG_SOC_STM32L496XG)
#define DT_FLASH_SIZE __SIZE_K(1024)
#define DT_SRAM_SIZE __SIZE_K(320)
#define DT_FLASH_SIZE DT_SIZE_K(1024)
#define DT_SRAM_SIZE DT_SIZE_K(320)
#elif defined(CONFIG_SOC_STM32L432XC)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(256)
#define DT_SRAM_SIZE DT_SIZE_K(64)
#elif defined(CONFIG_SOC_STM32L433XC)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(64)
#define DT_FLASH_SIZE DT_SIZE_K(256)
#define DT_SRAM_SIZE DT_SIZE_K(64)
#else
#if !defined(DT_FLASH_SIZE) || !defined(DT_SRAM_SIZE)
#error "Flash, RAM, or CCM sizes not defined for this chip"

View file

@ -1,7 +1,5 @@
#include "skeleton.dtsi"
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;

View file

@ -1,7 +1,5 @@
#include "skeleton.dtsi"
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;

View file

@ -7,8 +7,6 @@
#include "skeleton.dtsi"
#include <dt-bindings/interrupt-controller/intel-ioapic.h>
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;

View file

@ -7,8 +7,6 @@
#include "skeleton.dtsi"
#include <dt-bindings/interrupt-controller/intel-ioapic.h>
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;

View file

@ -7,8 +7,6 @@
#include "skeleton.dtsi"
#include <dt-bindings/interrupt-controller/intel-ioapic.h>
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;

View file

@ -8,8 +8,6 @@
#include <dt-bindings/interrupt-controller/intel-ioapic.h>
#include <dt-bindings/i2c/i2c.h>
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;

View file

@ -8,8 +8,6 @@
#include <dt-bindings/interrupt-controller/intel-mvic.h>
#include <dt-bindings/i2c/i2c.h>
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;

View file

@ -8,8 +8,6 @@
#include <dt-bindings/interrupt-controller/intel-ioapic.h>
#include <dt-bindings/i2c/i2c.h>
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;

View file

@ -1,8 +1,6 @@
#include "skeleton.dtsi"
#include <dt-bindings/i2c/i2c.h>
#define __SIZE_K(x) (x * 1024)
/ {
cpus {
#address-cells = <1>;