blob: 01190904cf6f71663126a0f64a016a34d486fa23 [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#ifdef CONFIG_SPL
Stefano Babic17b60372016-06-08 10:50:20 +020010#include "imx6_spl.h"
11#endif
12
13#include "mx6_common.h"
14
Stefano Babic17b60372016-06-08 10:50:20 +020015#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
16
Stefano Babic17b60372016-06-08 10:50:20 +020017/* Enable NAND support */
Stefano Babic17b60372016-06-08 10:50:20 +020018
Stefano Babic17b60372016-06-08 10:50:20 +020019/* Physical Memory Map */
Stefano Babic17b60372016-06-08 10:50:20 +020020#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
21
22#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
23#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
24#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
25
Stefano Babic17b60372016-06-08 10:50:20 +020026/* Environment organization */
Niel Fourie8ee19072020-05-19 14:01:43 +020027#define ENV_MMC \
28 "mmcdev=0\0" \
29 "mmcpart=2\0" \
30 "fitpart=1\0" \
31 "mmcrootfstype=ext4\0" \
32 "fitname=fitImage\0" \
33 "mmcloadfit=load mmc ${mmcdev}:${fitpart} ${loadaddr} ${fitname}\0" \
34 "mmcargs=setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcpart} " \
35 "rootfstype=${mmcrootfstype} ${optargs}\0" \
36 "mmcboot=run mmcloadfit;run mmcargs;bootm ${loadaddr}\0"
37
38#define ENV_NAND \
Niel Fourie8ee19072020-05-19 14:01:43 +020039 "nandroot=ubi0:root ubi.mtd=rootfs\0" \
40 "nandrootfstype=ubifs\0" \
41 "nandargs=setenv bootargs root=${nandroot} " \
42 "rootfstype=${nandrootfstype} ${mtdparts} ${optargs}\0" \
43 "nandloadfit=ubi part rootfs;ubi readvol ${loadaddr} fit\0" \
44 "nandboot=run nandloadfit;run nandargs;bootm ${loadaddr}\0"
45
46#define CONFIG_EXTRA_ENV_SETTINGS \
47 "bootm_size=0x30000000\0" \
48 "optargs=rw rootwait\0" \
49 ENV_MMC \
50 ENV_NAND
Stefano Babic17b60372016-06-08 10:50:20 +020051#endif