/* SPDX-License-Identifier: GPL-2.0+ */ /* * am3517_evm.h - Default configuration for AM3517 EVM board. * * Author: Vaibhav Hiremath * * Based on omap3_evm_config.h * * Copyright (C) 2010 Texas Instruments Incorporated */ #ifndef __CONFIG_H #define __CONFIG_H #include /* Board NAND Info. */ #if defined(CONFIG_MTD_RAW_NAND) #define CFG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, 10, \ 11, 12, 13, 14, 16, 17, 18, 19, 20, \ 21, 22, 23, 24, 25, 26, 27, 28, 30, \ 31, 32, 33, 34, 35, 36, 37, 38, 39, \ 40, 41, 42, 44, 45, 46, 47, 48, 49, \ 50, 51, 52, 53, 54, 55, 56 } #define CFG_SYS_NAND_ECCSIZE 512 #define CFG_SYS_NAND_ECCBYTES 13 #define CFG_SYS_NAND_U_BOOT_START CONFIG_TEXT_BASE /* NAND block size is 128 KiB. Synchronize these values with * corresponding Device Tree entries in Linux: * MLO(SPL) 4 * NAND_BLOCK_SIZE = 512 KiB @ 0x000000 * U-Boot 15 * NAND_BLOCK_SIZE = 1920 KiB @ 0x080000 * U-Boot environment 2 * NAND_BLOCK_SIZE = 256 KiB @ 0x260000 * Kernel 64 * NAND_BLOCK_SIZE = 8 MiB @ 0x2A0000 * DTB 4 * NAND_BLOCK_SIZE = 512 KiB @ 0xAA0000 * RootFS Remaining Flash Space @ 0xB20000 */ #define CFG_SYS_FLASH_BASE NAND_BASE #endif /* CONFIG_MTD_RAW_NAND */ #endif /* __CONFIG_H */