2017-06-08 22:24:51 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Linaro Limited
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2017-04-19 05:18:50 +08:00
|
|
|
#ifndef __DT_BINDING_TI_MEM_H
|
|
|
|
#define __DT_BINDING_TI_MEM_H
|
|
|
|
|
|
|
|
#define __SIZE_K(x) (x * 1024)
|
|
|
|
|
2017-08-15 09:26:39 +08:00
|
|
|
#if defined(CONFIG_SOC_CC3220SF)
|
2017-04-19 05:43:44 +08:00
|
|
|
#define DT_SFLASH_SIZE __SIZE_K(1024)
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(1024)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(256)
|
|
|
|
#define DT_SRAM_START 0x20000000
|
2017-07-22 14:10:56 +08:00
|
|
|
#elif defined(CONFIG_SOC_MSP432P401R)
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(256)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(64)
|
|
|
|
#define DT_SRAM_START 0x20000000
|
2017-04-19 05:18:50 +08:00
|
|
|
#else
|
|
|
|
#error "Flash and RAM sizes not defined for this chip"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __DT_BINDING_TI_MEM_H */
|