blob: 2991076c50a1b2f9791878e3ff1c3fce5bbe5900 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefano Babic17b60372016-06-08 10:50:20 +02002/*
3 * Copyright (C) Stefano Babic <sbabic@denx.de>
Stefano Babic17b60372016-06-08 10:50:20 +02004 */
5
Stefano Babic17b60372016-06-08 10:50:20 +02006#ifndef __PCM058_CONFIG_H
7#define __PCM058_CONFIG_H
8
Stefano Babic17b60372016-06-08 10:50:20 +02009#include "mx6_common.h"
10
Stefano Babic17b60372016-06-08 10:50:20 +020011#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
12
Stefano Babic17b60372016-06-08 10:50:20 +020013/* Enable NAND support */
Stefano Babic17b60372016-06-08 10:50:20 +020014
Stefano Babic17b60372016-06-08 10:50:20 +020015/* Physical Memory Map */
Stefano Babic17b60372016-06-08 10:50:20 +020016#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
17
Tom Rinibb4dd962022-11-16 13:10:37 -050018#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Tom Rini6a5dccc2022-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 Babic17b60372016-06-08 10:50:20 +020021
Stefano Babic17b60372016-06-08 10:50:20 +020022/* Environment organization */
Niel Fourie8ee19072020-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"
33
34#define ENV_NAND \
Niel Fourie8ee19072020-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
Tom Rinic9edebe2022-12-04 10:03:50 -050042#define CFG_EXTRA_ENV_SETTINGS \
Niel Fourie8ee19072020-05-19 14:01:43 +020043 "bootm_size=0x30000000\0" \
44 "optargs=rw rootwait\0" \
45 ENV_MMC \
46 ENV_NAND
Stefano Babic17b60372016-06-08 10:50:20 +020047#endif