Linux Audio
Check our new training course
Embedded Linux Audio
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
/* * Copyright (c) 2017 Linaro Limited * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __DT_BINDING_ST_MEM_H #define __DT_BINDING_ST_MEM_H #define __SIZE_K(x) (x * 1024) #if defined(CONFIG_SOC_STM32F030X8) #define DT_FLASH_SIZE __SIZE_K(64) #define DT_SRAM_SIZE __SIZE_K(8) #elif defined(CONFIG_SOC_STM32F091XC) #define DT_FLASH_SIZE __SIZE_K(256) #define DT_SRAM_SIZE __SIZE_K(32) #elif defined(CONFIG_SOC_STM32F103X8) #define DT_FLASH_SIZE __SIZE_K(64) #define DT_SRAM_SIZE __SIZE_K(20) #elif defined(CONFIG_SOC_STM32F103XB) #define DT_FLASH_SIZE __SIZE_K(128) #define DT_SRAM_SIZE __SIZE_K(20) #elif defined(CONFIG_SOC_STM32F103XE) #define DT_FLASH_SIZE __SIZE_K(512) #define DT_SRAM_SIZE __SIZE_K(64) #elif defined(CONFIG_SOC_STM32F107XC) #define DT_FLASH_SIZE __SIZE_K(256) #define DT_SRAM_SIZE __SIZE_K(64) #elif defined(CONFIG_SOC_STM32F303XC) #define DT_FLASH_SIZE __SIZE_K(256) #define DT_SRAM_SIZE __SIZE_K(40) #elif defined(CONFIG_SOC_STM32F334X8) #define DT_FLASH_SIZE __SIZE_K(64) #define DT_SRAM_SIZE __SIZE_K(12) #elif defined(CONFIG_SOC_STM32F373XC) #define DT_FLASH_SIZE __SIZE_K(256) #define DT_SRAM_SIZE __SIZE_K(32) #elif defined(CONFIG_SOC_STM32F401XE) #define DT_FLASH_SIZE __SIZE_K(512) #define DT_SRAM_SIZE __SIZE_K(96) #elif defined(CONFIG_SOC_STM32F405XG) #define DT_FLASH_SIZE __SIZE_K(1024) #define DT_SRAM_SIZE __SIZE_K(192) #elif defined(CONFIG_SOC_STM32F407XG) #define DT_FLASH_SIZE __SIZE_K(1024) #define DT_SRAM_SIZE __SIZE_K(192) #elif defined(CONFIG_SOC_STM32F411XE) #define DT_FLASH_SIZE __SIZE_K(512) #define DT_SRAM_SIZE __SIZE_K(128) #elif defined(CONFIG_SOC_STM32F412ZG) #define DT_FLASH_SIZE __SIZE_K(1024) #define DT_SRAM_SIZE __SIZE_K(256) #elif defined(CONFIG_SOC_STM32F413XH) #define DT_FLASH_SIZE __SIZE_K(1536) #define DT_SRAM_SIZE __SIZE_K(320) #elif defined(CONFIG_SOC_STM32F417XE) #define DT_FLASH_SIZE __SIZE_K(512) #define DT_SRAM_SIZE __SIZE_K(192) #elif defined(CONFIG_SOC_STM32F417XG) #define DT_FLASH_SIZE __SIZE_K(1024) #define DT_SRAM_SIZE __SIZE_K(192) #elif defined(CONFIG_SOC_STM32F429XI) #define DT_FLASH_SIZE __SIZE_K(2048) #define DT_SRAM_SIZE __SIZE_K(256) #elif defined(CONFIG_SOC_STM32F469XI) #define DT_FLASH_SIZE __SIZE_K(2048) #define DT_SRAM_SIZE __SIZE_K(384) #elif defined(CONFIG_SOC_STM32L475XG) #define DT_FLASH_SIZE __SIZE_K(1024) #define DT_SRAM_SIZE __SIZE_K(96) #elif defined(CONFIG_SOC_STM32L476XG) #define DT_FLASH_SIZE __SIZE_K(1024) #define DT_SRAM_SIZE __SIZE_K(96) #elif defined(CONFIG_SOC_STM32L496XG) #define DT_FLASH_SIZE __SIZE_K(1024) #define DT_SRAM_SIZE __SIZE_K(320) #elif defined(CONFIG_SOC_STM32L432XC) #define DT_FLASH_SIZE __SIZE_K(256) #define DT_SRAM_SIZE __SIZE_K(64) #else #error "Flash and RAM sizes not defined for this chip" #endif #endif /* __DT_BINDING_ST_MEM_H */