]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
792f1868 BL |
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. | |
792f1868 BL |
8 | */ |
9 | ||
10 | #ifndef __CONFIG_H | |
11 | #define __CONFIG_H | |
12 | ||
792f1868 BL |
13 | #include "mx6_common.h" |
14 | ||
15 | #include "imx6_spl.h" | |
16 | ||
792f1868 BL |
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 | |
792f1868 BL |
22 | |
23 | /* Linux only */ | |
792f1868 | 24 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
f902802f | 25 | "console=ttymxc0,115200\0" \ |
792f1868 BL |
26 | "fdt_high=0xffffffff\0" \ |
27 | "initrd_high=0xffffffff\0" \ | |
5d3a28ab | 28 | "fdtfile=undefined\0" \ |
792f1868 | 29 | "fdt_addr=0x83000000\0" \ |
8df93b1a | 30 | "fdt_addr_r=0x83000000\0" \ |
792f1868 BL |
31 | "ip_dyn=yes\0" \ |
32 | "mmcdev=0\0" \ | |
33 | "mmcrootfstype=ext4\0" \ | |
792f1868 BL |
34 | "findfdt="\ |
35 | "if test $board_name = BASIC; then " \ | |
5d3a28ab | 36 | "setenv fdtfile imx6sx-udoo-neo-basic.dtb; fi; " \ |
792f1868 | 37 | "if test $board_name = BASICKS; then " \ |
5d3a28ab | 38 | "setenv fdtfile imx6sx-udoo-neo-basic.dtb; fi; " \ |
792f1868 | 39 | "if test $board_name = FULL; then " \ |
5d3a28ab | 40 | "setenv fdtfile imx6sx-udoo-neo-full.dtb; fi; " \ |
792f1868 | 41 | "if test $board_name = EXTENDED; then " \ |
5d3a28ab FE |
42 | "setenv fdtfile imx6sx-udoo-neo-extended.dtb; fi; " \ |
43 | "if test $fdtfile = UNDEFINED; then " \ | |
d8e13887 | 44 | "echo WARNING: Could not determine dtb to use; fi\0" \ |
72d81360 TR |
45 | "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ |
46 | "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ | |
276ad065 | 47 | "ramdisk_addr_r=0x84000000\0" \ |
72d81360 | 48 | "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ |
792f1868 BL |
49 | BOOTENV |
50 | ||
51 | #define BOOT_TARGET_DEVICES(func) \ | |
a11e30f8 BL |
52 | func(MMC, mmc, 0) \ |
53 | func(DHCP, dhcp, na) | |
792f1868 | 54 | |
792f1868 BL |
55 | #include <config_distro_bootcmd.h> |
56 | ||
57 | /* Miscellaneous configurable options */ | |
792f1868 BL |
58 | |
59 | /* Physical Memory Map */ | |
792f1868 BL |
60 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
61 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM | |
62 | #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR | |
63 | #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE | |
64 | ||
65 | #define CONFIG_SYS_INIT_SP_OFFSET \ | |
66 | (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) | |
67 | #define CONFIG_SYS_INIT_SP_ADDR \ | |
68 | (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) | |
69 | ||
21729bcd | 70 | /* PMIC */ |
21729bcd BL |
71 | #define CONFIG_POWER_PFUZE3000 |
72 | #define CONFIG_POWER_PFUZE3000_I2C_ADDR 0x08 | |
73 | #define PFUZE3000_I2C_BUS 0 | |
74 | ||
792f1868 | 75 | #endif /* __CONFIG_H */ |