Tom Rini | af48948 | 2018-05-18 17:54:39 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2018 Simone CIANNI <simone.cianni@bticino.it> |
| 4 | * Copyright (C) 2018 Raffaele RECALCATI <raffaele.recalcati@bticino.it> |
| 5 | * Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com> |
| 6 | * |
| 7 | * Configuration settings for the BTicion i.MX6DL Mamoj board. |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef __IMX6DL_MAMOJ_CONFIG_H |
| 11 | #define __IMX6DL_MAMOJ_CONFIG_H |
| 12 | |
| 13 | #include <linux/sizes.h> |
| 14 | #include "mx6_common.h" |
| 15 | |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 16 | /* Total Size of Environment Sector */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 17 | |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 18 | /* Environment */ |
| 19 | #ifndef CONFIG_ENV_IS_NOWHERE |
| 20 | /* Environment in MMC */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 21 | #endif |
| 22 | |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 23 | #define CFG_EXTRA_ENV_SETTINGS \ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 24 | "scriptaddr=0x14000000\0" \ |
| 25 | "fdt_addr_r=0x13000000\0" \ |
| 26 | "kernel_addr_r=0x10008000\0" \ |
| 27 | "fdt_high=0xffffffff\0" \ |
Jagan Teki | ce37014 | 2018-05-07 11:21:38 +0530 | [diff] [blame] | 28 | "dfu_alt_info_spl=spl raw 0x2 0x400\0" \ |
| 29 | "dfu_alt_info_uboot=u-boot raw 0x8a 0x11400\0" \ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 30 | BOOTENV |
| 31 | |
| 32 | #define BOOT_TARGET_DEVICES(func) \ |
| 33 | func(MMC, mmc, 2) |
| 34 | |
| 35 | #include <config_distro_bootcmd.h> |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 36 | |
| 37 | /* UART */ |
Tom Rini | a17aa19 | 2022-12-04 10:04:55 -0500 | [diff] [blame] | 38 | #define CFG_MXC_UART_BASE UART3_BASE |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 39 | |
| 40 | /* MMC */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 41 | |
| 42 | /* Ethernet */ |
Tom Rini | 4e3c8a6 | 2022-12-04 10:03:53 -0500 | [diff] [blame] | 43 | #define CFG_FEC_MXC_PHYADDR 1 |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 44 | |
Jagan Teki | 920decd | 2018-05-07 11:21:39 +0530 | [diff] [blame] | 45 | /* Falcon */ |
Jagan Teki | 920decd | 2018-05-07 11:21:39 +0530 | [diff] [blame] | 46 | |
| 47 | /* MMC support: args@1MB kernel@2MB */ |
Jagan Teki | 920decd | 2018-05-07 11:21:39 +0530 | [diff] [blame] | 48 | |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 49 | /* Miscellaneous configurable options */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 50 | |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 51 | /* Physical Memory Map */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 52 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 53 | |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 54 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 55 | #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 56 | #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 57 | |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 58 | #endif /* __IMX6DL_MAMOJ_CONFIG_H */ |