Merge tag 'xilinx-for-v2022.07-rc4' of https://source.denx.de/u-boot/custodians/u...
[platform/kernel/u-boot.git] / include / configs / udoo_neo.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
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.
8  */
9
10 #ifndef __CONFIG_H
11 #define __CONFIG_H
12
13 #include "mx6_common.h"
14
15 #include "imx6_spl.h"
16
17 /* MMC Configuration */
18 #define CONFIG_SYS_FSL_ESDHC_ADDR       USDHC2_BASE_ADDR
19
20 /* Command definition */
21 #define CONFIG_MXC_UART_BASE            UART1_BASE
22
23 /* Linux only */
24 #define CONFIG_EXTRA_ENV_SETTINGS \
25         "console=ttymxc0,115200\0" \
26         "fdt_high=0xffffffff\0" \
27         "initrd_high=0xffffffff\0" \
28         "fdtfile=undefined\0" \
29         "fdt_addr=0x83000000\0" \
30         "fdt_addr_r=0x83000000\0" \
31         "ip_dyn=yes\0" \
32         "mmcdev=1\0" \
33         "mmcrootfstype=ext4\0" \
34         "findfdt="\
35                 "if test $board_name = BASIC; then " \
36                         "setenv fdtfile imx6sx-udoo-neo-basic.dtb; fi; " \
37                 "if test $board_name = BASICKS; then " \
38                         "setenv fdtfile imx6sx-udoo-neo-basic.dtb; fi; " \
39                 "if test $board_name = FULL; then " \
40                         "setenv fdtfile imx6sx-udoo-neo-full.dtb; fi; " \
41                 "if test $board_name = EXTENDED; then " \
42                         "setenv fdtfile imx6sx-udoo-neo-extended.dtb; fi; " \
43                 "if test $fdtfile = UNDEFINED; then " \
44                         "echo WARNING: Could not determine dtb to use; fi\0" \
45         "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
46         "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
47         "ramdisk_addr_r=0x84000000\0" \
48         "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
49         BOOTENV
50
51 #define BOOT_TARGET_DEVICES(func) \
52         func(MMC, mmc, 1) \
53         func(USB, usb, 0) \
54         func(DHCP, dhcp, na)
55
56 #include <config_distro_bootcmd.h>
57
58 /* Miscellaneous configurable options */
59
60 /* Physical Memory Map */
61 #define PHYS_SDRAM                      MMDC0_ARB_BASE_ADDR
62 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM
63 #define CONFIG_SYS_INIT_RAM_ADDR        IRAM_BASE_ADDR
64 #define CONFIG_SYS_INIT_RAM_SIZE        IRAM_SIZE
65
66 #define CONFIG_SYS_INIT_SP_OFFSET \
67         (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
68 #define CONFIG_SYS_INIT_SP_ADDR \
69         (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
70
71 /* PMIC */
72 #define CONFIG_POWER_PFUZE3000
73 #define CONFIG_POWER_PFUZE3000_I2C_ADDR 0x08
74 #define PFUZE3000_I2C_BUS       0
75
76 #endif                          /* __CONFIG_H */