blob: 3674e4cddaedac51328253a287141705c7ec458d [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefano Babic876a25d2016-06-08 10:50:20 +02002/*
3 * Copyright (C) Stefano Babic <sbabic@denx.de>
Stefano Babic876a25d2016-06-08 10:50:20 +02004 */
5
Stefano Babic876a25d2016-06-08 10:50:20 +02006#ifndef __PCM058_CONFIG_H
7#define __PCM058_CONFIG_H
8
Stefano Babic876a25d2016-06-08 10:50:20 +02009#include "mx6_common.h"
10
Stefano Babic876a25d2016-06-08 10:50:20 +020011#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
12
Stefano Babic876a25d2016-06-08 10:50:20 +020013/* Enable NAND support */
Stefano Babic876a25d2016-06-08 10:50:20 +020014
Stefano Babic876a25d2016-06-08 10:50:20 +020015/* Physical Memory Map */
Stefano Babic876a25d2016-06-08 10:50:20 +020016#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
17
Tom Riniaa6e94d2022-11-16 13:10:37 -050018#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Tom Rini65cc0e22022-11-16 13:10:41 -050019#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
20#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
Stefano Babic876a25d2016-06-08 10:50:20 +020021
Stefano Babic876a25d2016-06-08 10:50:20 +020022/* Environment organization */
Niel Fourie26a6ed12020-05-19 14:01:43 +020023#define ENV_MMC \
24 "mmcdev=0\0" \
25 "mmcpart=2\0" \
26 "fitpart=1\0" \
27 "mmcrootfstype=ext4\0" \
28 "fitname=fitImage\0" \
29 "mmcloadfit=load mmc ${mmcdev}:${fitpart} ${loadaddr} ${fitname}\0" \
30 "mmcargs=setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcpart} " \
31 "rootfstype=${mmcrootfstype} ${optargs}\0" \
32 "mmcboot=run mmcloadfit;run mmcargs;bootm ${loadaddr}\0"
Stefano Babic876a25d2016-06-08 10:50:20 +020033
Niel Fourie26a6ed12020-05-19 14:01:43 +020034#define ENV_NAND \
Niel Fourie26a6ed12020-05-19 14:01:43 +020035 "nandroot=ubi0:root ubi.mtd=rootfs\0" \
36 "nandrootfstype=ubifs\0" \
37 "nandargs=setenv bootargs root=${nandroot} " \
38 "rootfstype=${nandrootfstype} ${mtdparts} ${optargs}\0" \
39 "nandloadfit=ubi part rootfs;ubi readvol ${loadaddr} fit\0" \
40 "nandboot=run nandloadfit;run nandargs;bootm ${loadaddr}\0"
41
42#define CONFIG_EXTRA_ENV_SETTINGS \
43 "bootm_size=0x30000000\0" \
44 "optargs=rw rootwait\0" \
45 ENV_MMC \
46 ENV_NAND
Stefano Babic876a25d2016-06-08 10:50:20 +020047#endif