Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2014-2015 Freescale Semiconductor, Inc. |
| 4 | * Copyright Jasbir Matharu |
| 5 | * Copyright 2015 UDOO Team |
| 6 | * |
| 7 | * Configuration settings for the UDOO NEO board. |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef __CONFIG_H |
| 11 | #define __CONFIG_H |
| 12 | |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 13 | #include "mx6_common.h" |
| 14 | |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 15 | /* MMC Configuration */ |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 16 | #define CFG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 17 | |
| 18 | /* Command definition */ |
Tom Rini | a17aa19 | 2022-12-04 10:04:55 -0500 | [diff] [blame] | 19 | #define CFG_MXC_UART_BASE UART1_BASE |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 20 | |
| 21 | /* Linux only */ |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 22 | #define CFG_EXTRA_ENV_SETTINGS \ |
Peter Robinson | 42b5089 | 2017-02-14 13:10:10 +0000 | [diff] [blame] | 23 | "console=ttymxc0,115200\0" \ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 24 | "fdt_high=0xffffffff\0" \ |
| 25 | "initrd_high=0xffffffff\0" \ |
Fabio Estevam | 3a85138 | 2016-12-15 20:10:08 -0200 | [diff] [blame] | 26 | "fdtfile=undefined\0" \ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 27 | "fdt_addr=0x83000000\0" \ |
Breno Lima | aa263a9 | 2017-01-10 16:32:38 -0200 | [diff] [blame] | 28 | "fdt_addr_r=0x83000000\0" \ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 29 | "ip_dyn=yes\0" \ |
Peter Robinson | 89e2806 | 2021-12-21 12:32:47 +0000 | [diff] [blame] | 30 | "mmcdev=1\0" \ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 31 | "mmcrootfstype=ext4\0" \ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 32 | "findfdt="\ |
| 33 | "if test $board_name = BASIC; then " \ |
Fabio Estevam | 3a85138 | 2016-12-15 20:10:08 -0200 | [diff] [blame] | 34 | "setenv fdtfile imx6sx-udoo-neo-basic.dtb; fi; " \ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 35 | "if test $board_name = BASICKS; then " \ |
Fabio Estevam | 3a85138 | 2016-12-15 20:10:08 -0200 | [diff] [blame] | 36 | "setenv fdtfile imx6sx-udoo-neo-basic.dtb; fi; " \ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 37 | "if test $board_name = FULL; then " \ |
Fabio Estevam | 3a85138 | 2016-12-15 20:10:08 -0200 | [diff] [blame] | 38 | "setenv fdtfile imx6sx-udoo-neo-full.dtb; fi; " \ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 39 | "if test $board_name = EXTENDED; then " \ |
Fabio Estevam | 3a85138 | 2016-12-15 20:10:08 -0200 | [diff] [blame] | 40 | "setenv fdtfile imx6sx-udoo-neo-extended.dtb; fi; " \ |
| 41 | "if test $fdtfile = UNDEFINED; then " \ |
Breno Lima | f141773 | 2017-01-10 16:32:39 -0200 | [diff] [blame] | 42 | "echo WARNING: Could not determine dtb to use; fi\0" \ |
Tom Rini | 9004ee0 | 2021-08-23 10:25:30 -0400 | [diff] [blame] | 43 | "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ |
| 44 | "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ |
Peter Robinson | f26279e | 2017-02-14 13:10:11 +0000 | [diff] [blame] | 45 | "ramdisk_addr_r=0x84000000\0" \ |
Tom Rini | 9004ee0 | 2021-08-23 10:25:30 -0400 | [diff] [blame] | 46 | "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 47 | BOOTENV |
| 48 | |
| 49 | #define BOOT_TARGET_DEVICES(func) \ |
Peter Robinson | 89e2806 | 2021-12-21 12:32:47 +0000 | [diff] [blame] | 50 | func(MMC, mmc, 1) \ |
Peter Robinson | dbe2d5a | 2021-12-21 12:32:49 +0000 | [diff] [blame] | 51 | func(USB, usb, 0) \ |
Breno Lima | 70c003c | 2016-12-06 15:38:26 -0200 | [diff] [blame] | 52 | func(DHCP, dhcp, na) |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 53 | |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 54 | #include <config_distro_bootcmd.h> |
| 55 | |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 56 | /* Physical Memory Map */ |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 57 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 58 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 59 | #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 60 | #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 61 | |
Breno Lima | fd57769 | 2016-11-25 16:56:57 -0200 | [diff] [blame] | 62 | #endif /* __CONFIG_H */ |