2017-06-08 22:24:51 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Piotr Mienkowski
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2017-05-06 04:22:33 +08:00
|
|
|
#ifndef __DT_BINDING_SAME70_MEM_H
|
|
|
|
#define __DT_BINDING_SAME70_MEM_H
|
|
|
|
|
|
|
|
#define __SIZE_K(x) (x * 1024)
|
|
|
|
|
|
|
|
#if defined CONFIG_SOC_PART_NUMBER_SAME70J19
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(512)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(256)
|
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J20
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(1024)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(384)
|
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J21
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(2048)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(384)
|
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N19
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(512)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(256)
|
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N20
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(1024)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(384)
|
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N21
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(2048)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(384)
|
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q19
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(512)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(256)
|
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q20
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(1024)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(384)
|
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q21
|
|
|
|
#define DT_FLASH_SIZE __SIZE_K(2048)
|
|
|
|
#define DT_SRAM_SIZE __SIZE_K(384)
|
|
|
|
#else
|
|
|
|
#error "Flash and RAM sizes not defined for this chip"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __DT_BINDING_SAME70_MEM_H */
|