blob: e3432ebeaabb5cd0985207520e95b612edb3594f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Vaibhav Hiremathdb5c5582010-06-07 15:20:43 -04002/*
3 * am3517_evm.h - Default configuration for AM3517 EVM board.
4 *
5 * Author: Vaibhav Hiremath <hvaibhav@ti.com>
6 *
7 * Based on omap3_evm_config.h
8 *
9 * Copyright (C) 2010 Texas Instruments Incorporated
Vaibhav Hiremathdb5c5582010-06-07 15:20:43 -040010 */
11
12#ifndef __CONFIG_H
13#define __CONFIG_H
14
Adam Ford15d6b842017-08-22 10:50:01 -050015#include <configs/ti_omap3_common.h>
Vaibhav Hiremathdb5c5582010-06-07 15:20:43 -040016
Derald D. Woods6b3c6342016-03-05 13:19:59 -060017/* Board NAND Info. */
Adam Forde7d6d722024-07-08 21:38:57 -050018#if defined(CONFIG_MTD_RAW_NAND)
Tom Rinib4213492022-11-12 17:36:51 -050019#define CFG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, 10, \
Derald D. Woods6b3c6342016-03-05 13:19:59 -060020 11, 12, 13, 14, 16, 17, 18, 19, 20, \
21 21, 22, 23, 24, 25, 26, 27, 28, 30, \
22 31, 32, 33, 34, 35, 36, 37, 38, 39, \
23 40, 41, 42, 44, 45, 46, 47, 48, 49, \
24 50, 51, 52, 53, 54, 55, 56 }
25
Tom Rinib4213492022-11-12 17:36:51 -050026#define CFG_SYS_NAND_ECCSIZE 512
27#define CFG_SYS_NAND_ECCBYTES 13
28#define CFG_SYS_NAND_U_BOOT_START CONFIG_TEXT_BASE
Derald D. Woods6b3c6342016-03-05 13:19:59 -060029/* NAND block size is 128 KiB. Synchronize these values with
30 * corresponding Device Tree entries in Linux:
31 * MLO(SPL) 4 * NAND_BLOCK_SIZE = 512 KiB @ 0x000000
32 * U-Boot 15 * NAND_BLOCK_SIZE = 1920 KiB @ 0x080000
33 * U-Boot environment 2 * NAND_BLOCK_SIZE = 256 KiB @ 0x260000
34 * Kernel 64 * NAND_BLOCK_SIZE = 8 MiB @ 0x2A0000
35 * DTB 4 * NAND_BLOCK_SIZE = 512 KiB @ 0xAA0000
36 * RootFS Remaining Flash Space @ 0xB20000
37 */
Vaibhav Hiremathdb5c5582010-06-07 15:20:43 -040038
Tom Rini6a5dccc2022-11-16 13:10:41 -050039#define CFG_SYS_FLASH_BASE NAND_BASE
Adam Forde7d6d722024-07-08 21:38:57 -050040#endif /* CONFIG_MTD_RAW_NAND */
Vaibhav Hiremathdb5c5582010-06-07 15:20:43 -040041
Vaibhav Hiremathdb5c5582010-06-07 15:20:43 -040042#endif /* __CONFIG_H */