1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) Stefano Babic <sbabic@denx.de>
6 #ifndef __PCM058_CONFIG_H
7 #define __PCM058_CONFIG_H
13 #include "mx6_common.h"
15 #define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
17 /* Enable NAND support */
18 #define CONFIG_SYS_MAX_NAND_DEVICE 1
20 /* Physical Memory Map */
21 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
23 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
24 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
25 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
27 #define CONFIG_SYS_INIT_SP_OFFSET \
28 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
29 #define CONFIG_SYS_INIT_SP_ADDR \
30 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
32 /* Environment organization */
37 "mmcrootfstype=ext4\0" \
38 "fitname=fitImage\0" \
39 "mmcloadfit=load mmc ${mmcdev}:${fitpart} ${loadaddr} ${fitname}\0" \
40 "mmcargs=setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcpart} " \
41 "rootfstype=${mmcrootfstype} ${optargs}\0" \
42 "mmcboot=run mmcloadfit;run mmcargs;bootm ${loadaddr}\0"
45 "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
46 "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
47 "nandroot=ubi0:root ubi.mtd=rootfs\0" \
48 "nandrootfstype=ubifs\0" \
49 "nandargs=setenv bootargs root=${nandroot} " \
50 "rootfstype=${nandrootfstype} ${mtdparts} ${optargs}\0" \
51 "nandloadfit=ubi part rootfs;ubi readvol ${loadaddr} fit\0" \
52 "nandboot=run nandloadfit;run nandargs;bootm ${loadaddr}\0"
54 #define CONFIG_EXTRA_ENV_SETTINGS \
55 "bootm_size=0x30000000\0" \
56 "optargs=rw rootwait\0" \