Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) Stefano Babic <sbabic@denx.de> |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 6 | #ifndef __PCM058_CONFIG_H |
| 7 | #define __PCM058_CONFIG_H |
| 8 | |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 9 | #include "mx6_common.h" |
| 10 | |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 11 | #define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024) |
| 12 | |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 13 | /* Enable NAND support */ |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 14 | |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 15 | /* Physical Memory Map */ |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 16 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 17 | |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 18 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 19 | #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 20 | #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 21 | |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 22 | /* Environment organization */ |
Niel Fourie | 8ee1907 | 2020-05-19 14:01:43 +0200 | [diff] [blame] | 23 | #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 Fourie | 8ee1907 | 2020-05-19 14:01:43 +0200 | [diff] [blame] | 35 | "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 Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 42 | #define CFG_EXTRA_ENV_SETTINGS \ |
Niel Fourie | 8ee1907 | 2020-05-19 14:01:43 +0200 | [diff] [blame] | 43 | "bootm_size=0x30000000\0" \ |
| 44 | "optargs=rw rootwait\0" \ |
| 45 | ENV_MMC \ |
| 46 | ENV_NAND |
Stefano Babic | 17b6037 | 2016-06-08 10:50:20 +0200 | [diff] [blame] | 47 | #endif |