1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2013 Freescale Semiconductor, Inc.
5 * Configuration settings for the pico-imx6 board.
11 #include "mx6_common.h"
13 #define CONFIG_MXC_UART_BASE UART1_BASE
15 /* MMC Configuration */
16 #define CFG_SYS_FSL_ESDHC_ADDR USDHC3_BASE_ADDR
19 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
20 #define CONFIG_MXC_USB_FLAGS 0
22 #define DFU_DEFAULT_POLL_TIMEOUT 300
24 #define CFG_DFU_ENV_SETTINGS \
26 "spl raw 0x2 0x400;" \
27 "u-boot raw 0x8a 0x1000;" \
28 "/boot/zImage ext4 0 1;" \
31 #define BOOTMENU_ENV \
32 "bootmenu_0=Boot using PICO-Hobbit baseboard=" \
33 "setenv baseboard hobbit; saveenv; run base_boot\0" \
34 "bootmenu_1=Boot using PICO-Pi baseboard=" \
35 "setenv baseboard pi; saveenv; run base_boot\0" \
36 "bootmenu_2=Boot using PICO-Dwarf baseboard=" \
37 "setenv baseboard dwarf; saveenv; run base_boot\0" \
38 "bootmenu_3=Boot using PICO-Nymph baseboard=" \
39 "setenv baseboard nymph; saveenv; run base_boot\0" \
41 #define CFG_EXTRA_ENV_SETTINGS \
43 "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
45 "fdt_high=0xffffffff\0" \
46 "initrd_high=0xffffffff\0" \
47 "fdt_addr_r=0x18000000\0" \
48 "fdt_addr=0x18000000\0" \
49 "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
50 CFG_DFU_ENV_SETTINGS \
51 "finduuid=part uuid mmc 0:1 uuid\0" \
53 "if test $baseboard = hobbit && test $board_rev = MX6Q ; then " \
54 "setenv fdtfile imx6q-pico-hobbit.dtb; fi; " \
55 "if test $baseboard = pi && test $board_rev = MX6Q ; then " \
56 "setenv fdtfile imx6q-pico-pi.dtb; fi; " \
57 "if test $baseboard = dwarf && test $board_rev = MX6Q ; then " \
58 "setenv fdtfile imx6q-pico-dwarf.dtb; fi; " \
59 "if test $baseboard = nymph && test $board_rev = MX6Q ; then " \
60 "setenv fdtfile imx6q-pico-nymph.dtb; fi; " \
61 "if test $baseboard = hobbit && test $board_rev = MX6DL ; then " \
62 "setenv fdtfile imx6dl-pico-hobbit.dtb; fi; " \
63 "if test $baseboard = pi && test $board_rev = MX6DL ; then " \
64 "setenv fdtfile imx6dl-pico-pi.dtb; fi; " \
65 "if test $baseboard = dwarf && test $board_rev = MX6DL ; then " \
66 "setenv fdtfile imx6dl-pico-dwarf.dtb; fi; " \
67 "if test $baseboard = nymph && test $board_rev = MX6DL ; then " \
68 "setenv fdtfile imx6dl-pico-nymph.dtb; fi; " \
69 "if test $fdtfile = ask; then " \
70 "echo WARNING: Could not determine dtb to use; fi; \0" \
72 "if test $baseboard = ask ; then " \
77 "base_boot=run findfdt; run finduuid; run distro_bootcmd\0" \
78 "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
79 "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
80 "ramdisk_addr_r=0x13000000\0" \
81 "ramdiskaddr=0x13000000\0" \
82 "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
85 #define BOOT_TARGET_DEVICES(func) \
89 #include <config_distro_bootcmd.h>
91 /* Physical Memory Map */
92 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
94 #define CFG_SYS_SDRAM_BASE PHYS_SDRAM
95 #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
96 #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
98 /* Environment organization */
100 /* Ethernet Configuration */
101 #define CFG_FEC_MXC_PHYADDR 1
103 #endif /* __CONFIG_H * */