Commit 62be18ef74d50e53bc6bd15e51ad47fbf5d6ee11
Committed by
Stefano Babic
1 parent
d783c2744f
Exists in
v2017.01-smarct4x
and in
34 other branches
hummingboard: Remove mx6solo specific support
Hummingboard dual, dual-lite and solo are now supported via SPL mechanism. Remove the previous hummingboard support, which does not use SPL and supported only the solo variant. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Showing 9 changed files with 0 additions and 509 deletions Side-by-side Diff
- arch/arm/Kconfig
- board/solidrun/hummingboard/Kconfig
- board/solidrun/hummingboard/MAINTAINERS
- board/solidrun/hummingboard/Makefile
- board/solidrun/hummingboard/README
- board/solidrun/hummingboard/hummingboard.c
- board/solidrun/hummingboard/solo.cfg
- configs/hummingboard_solo_defconfig
- include/configs/hummingboard.h
arch/arm/Kconfig
... | ... | @@ -562,10 +562,6 @@ |
562 | 562 | select CPU_V7 |
563 | 563 | select SUPPORT_SPL |
564 | 564 | |
565 | -config TARGET_HUMMINGBOARD | |
566 | - bool "Support hummingboard" | |
567 | - select CPU_V7 | |
568 | - | |
569 | 565 | config TARGET_KOSAGI_NOVENA |
570 | 566 | bool "Support Kosagi Novena" |
571 | 567 | select CPU_V7 |
... | ... | @@ -933,7 +929,6 @@ |
933 | 929 | source "board/siemens/rut/Kconfig" |
934 | 930 | source "board/silica/pengwyn/Kconfig" |
935 | 931 | source "board/solidrun/mx6cuboxi/Kconfig" |
936 | -source "board/solidrun/hummingboard/Kconfig" | |
937 | 932 | source "board/spear/spear300/Kconfig" |
938 | 933 | source "board/spear/spear310/Kconfig" |
939 | 934 | source "board/spear/spear320/Kconfig" |
board/solidrun/hummingboard/Kconfig
board/solidrun/hummingboard/MAINTAINERS
board/solidrun/hummingboard/Makefile
board/solidrun/hummingboard/README
1 | -U-Boot for SolidRun Hummingboard | |
2 | --------------------------------- | |
3 | - | |
4 | -This file contains information for the port of U-Boot to the Hummingboard. | |
5 | - | |
6 | -For more details about Hummingboard, please refer to: | |
7 | -http://imx.solid-run.com/wiki/index.php?title=Carrier-One_Hardware | |
8 | - | |
9 | -(Carrier-One was the previous name of Hummingboard). | |
10 | - | |
11 | -Building U-boot for Hummingboard | |
12 | --------------------------------- | |
13 | - | |
14 | -To build U-Boot for the Hummingboard Solo version: | |
15 | - | |
16 | -$ make hummingboard_solo_config | |
17 | -$ make | |
18 | - | |
19 | -Flashing U-boot into the SD card | |
20 | --------------------------------- | |
21 | - | |
22 | -- After the 'make' command completes, the generated 'u-boot.imx' binary must be | |
23 | -flashed into the SD card: | |
24 | - | |
25 | -$ sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=1k seek=1; sync | |
26 | - | |
27 | -(Note - the SD card node may vary, so adjust this as needed). | |
28 | - | |
29 | -Also, a more detailed explanation on how to format the SD card is available | |
30 | -at doc/README.imximage. | |
31 | - | |
32 | -- Insert the micro SD card into the slot located in the bottom of the board | |
33 | - | |
34 | -- Connect a 3.3V USB to serial converter cable to the host PC. The MX6 UART | |
35 | -signals are available in the 26 pin connector as shown at: | |
36 | -http://imx.solid-run.com/wiki/index.php?title=Carrier-One_Hardware | |
37 | -(Check for "26 pin header layout"). | |
38 | - | |
39 | -- Power up the board via USB cable (CON201) and U-boot messages will appear in | |
40 | -the serial console. |
board/solidrun/hummingboard/hummingboard.c
1 | -/* | |
2 | - * Copyright (C) 2013 Freescale Semiconductor, Inc. | |
3 | - * Copyright (C) 2013 SolidRun ltd. | |
4 | - * Copyright (C) 2013 Jon Nettleton <jon.nettleton@gmail.com>. | |
5 | - * | |
6 | - * Authors: Fabio Estevam <fabio.estevam@freescale.com> | |
7 | - Jon Nettleton <jon.nettleton@gmail.com> | |
8 | - * | |
9 | - * SPDX-License-Identifier: GPL-2.0+ | |
10 | - */ | |
11 | - | |
12 | -#include <asm/arch/clock.h> | |
13 | -#include <asm/arch/crm_regs.h> | |
14 | -#include <asm/arch/imx-regs.h> | |
15 | -#include <asm/arch/iomux.h> | |
16 | -#include <asm/arch/mx6-pins.h> | |
17 | -#include <asm/arch/sys_proto.h> | |
18 | -#include <asm/errno.h> | |
19 | -#include <asm/gpio.h> | |
20 | -#include <asm/imx-common/iomux-v3.h> | |
21 | -#include <asm/io.h> | |
22 | -#include <mmc.h> | |
23 | -#include <fsl_esdhc.h> | |
24 | -#include <miiphy.h> | |
25 | -#include <netdev.h> | |
26 | - | |
27 | -DECLARE_GLOBAL_DATA_PTR; | |
28 | - | |
29 | -#define UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ | |
30 | - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ | |
31 | - PAD_CTL_SRE_FAST | PAD_CTL_HYS) | |
32 | - | |
33 | -#define USDHC_PAD_CTRL (PAD_CTL_PUS_47K_UP | \ | |
34 | - PAD_CTL_SPEED_LOW | PAD_CTL_DSE_80ohm | \ | |
35 | - PAD_CTL_SRE_FAST | PAD_CTL_HYS) | |
36 | - | |
37 | -#define USDHC_PAD_CLK_CTRL (PAD_CTL_SPEED_LOW | \ | |
38 | - PAD_CTL_DSE_80ohm | PAD_CTL_SRE_FAST | \ | |
39 | - PAD_CTL_HYS) | |
40 | - | |
41 | -#define USDHC_PAD_GPIO_CTRL (PAD_CTL_PUS_22K_UP | \ | |
42 | - PAD_CTL_SPEED_LOW | PAD_CTL_DSE_40ohm | \ | |
43 | - PAD_CTL_SRE_FAST | PAD_CTL_HYS) | |
44 | - | |
45 | -#define ENET_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ | |
46 | - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_HYS) | |
47 | - | |
48 | -#define ENET_PAD_CTRL_PD (PAD_CTL_PUS_100K_DOWN | \ | |
49 | - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_HYS) | |
50 | - | |
51 | -#define ENET_PAD_CTRL_CLK ((PAD_CTL_PUS_100K_UP & ~PAD_CTL_PKE) | \ | |
52 | - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST) | |
53 | - | |
54 | -#define ETH_PHY_RESET IMX_GPIO_NR(4, 15) | |
55 | - | |
56 | -int dram_init(void) | |
57 | -{ | |
58 | - gd->ram_size = ((phys_size_t)CONFIG_DDR_MB * 1024 * 1024); | |
59 | - | |
60 | - return 0; | |
61 | -} | |
62 | - | |
63 | -static iomux_v3_cfg_t const uart1_pads[] = { | |
64 | - MX6_PAD_CSI0_DAT10__UART1_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL), | |
65 | - MX6_PAD_CSI0_DAT11__UART1_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL), | |
66 | -}; | |
67 | - | |
68 | -static void setup_iomux_uart(void) | |
69 | -{ | |
70 | - imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads)); | |
71 | -} | |
72 | - | |
73 | -static iomux_v3_cfg_t const usdhc2_pads[] = { | |
74 | - MX6_PAD_SD2_CLK__SD2_CLK | MUX_PAD_CTRL(USDHC_PAD_CLK_CTRL), | |
75 | - MX6_PAD_SD2_CMD__SD2_CMD | MUX_PAD_CTRL(USDHC_PAD_CTRL), | |
76 | - MX6_PAD_SD2_DAT0__SD2_DATA0 | MUX_PAD_CTRL(USDHC_PAD_CTRL), | |
77 | - MX6_PAD_SD2_DAT1__SD2_DATA1 | MUX_PAD_CTRL(USDHC_PAD_CTRL), | |
78 | - MX6_PAD_SD2_DAT2__SD2_DATA2 | MUX_PAD_CTRL(USDHC_PAD_CTRL), | |
79 | - MX6_PAD_SD2_DAT3__SD2_DATA3 | MUX_PAD_CTRL(USDHC_PAD_CTRL), | |
80 | - MX6_PAD_GPIO_4__SD2_CD_B | MUX_PAD_CTRL(USDHC_PAD_GPIO_CTRL), | |
81 | -}; | |
82 | - | |
83 | -#ifdef CONFIG_FSL_ESDHC | |
84 | -static struct fsl_esdhc_cfg usdhc_cfg[1] = { | |
85 | - { USDHC2_BASE_ADDR }, | |
86 | -}; | |
87 | - | |
88 | -int board_mmc_getcd(struct mmc *mmc) | |
89 | -{ | |
90 | - return 1; /* SD card is the boot medium, so always present */ | |
91 | -} | |
92 | - | |
93 | -int board_mmc_init(bd_t *bis) | |
94 | -{ | |
95 | - imx_iomux_v3_setup_multiple_pads(usdhc2_pads, ARRAY_SIZE(usdhc2_pads)); | |
96 | - usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK); | |
97 | - | |
98 | - return fsl_esdhc_initialize(bis, &usdhc_cfg[0]); | |
99 | -} | |
100 | -#endif | |
101 | - | |
102 | -#ifdef CONFIG_FEC_MXC | |
103 | -static iomux_v3_cfg_t const enet_pads[] = { | |
104 | - MX6_PAD_ENET_MDIO__ENET_MDIO | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
105 | - MX6_PAD_ENET_MDC__ENET_MDC | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
106 | - /* AR8035 reset */ | |
107 | - MX6_PAD_KEY_ROW4__GPIO4_IO15 | MUX_PAD_CTRL(ENET_PAD_CTRL_PD), | |
108 | - /* AR8035 interrupt */ | |
109 | - MX6_PAD_DI0_PIN2__GPIO4_IO18 | MUX_PAD_CTRL(NO_PAD_CTRL), | |
110 | - /* GPIO16 -> AR8035 25MHz */ | |
111 | - MX6_PAD_GPIO_16__ENET_REF_CLK | MUX_PAD_CTRL(NO_PAD_CTRL), | |
112 | - MX6_PAD_RGMII_TXC__RGMII_TXC | MUX_PAD_CTRL(NO_PAD_CTRL), | |
113 | - MX6_PAD_RGMII_TD0__RGMII_TD0 | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
114 | - MX6_PAD_RGMII_TD1__RGMII_TD1 | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
115 | - MX6_PAD_RGMII_TD2__RGMII_TD2 | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
116 | - MX6_PAD_RGMII_TD3__RGMII_TD3 | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
117 | - MX6_PAD_RGMII_TX_CTL__RGMII_TX_CTL | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
118 | - /* AR8035 CLK_25M --> ENET_REF_CLK (V22) */ | |
119 | - MX6_PAD_ENET_REF_CLK__ENET_TX_CLK | MUX_PAD_CTRL(ENET_PAD_CTRL_CLK), | |
120 | - MX6_PAD_RGMII_RXC__RGMII_RXC | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
121 | - MX6_PAD_RGMII_RD0__RGMII_RD0 | MUX_PAD_CTRL(ENET_PAD_CTRL_PD), | |
122 | - MX6_PAD_RGMII_RD1__RGMII_RD1 | MUX_PAD_CTRL(ENET_PAD_CTRL_PD), | |
123 | - MX6_PAD_RGMII_RD2__RGMII_RD2 | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
124 | - MX6_PAD_RGMII_RD3__RGMII_RD3 | MUX_PAD_CTRL(ENET_PAD_CTRL), | |
125 | - MX6_PAD_RGMII_RX_CTL__RGMII_RX_CTL | MUX_PAD_CTRL(ENET_PAD_CTRL_PD), | |
126 | -}; | |
127 | - | |
128 | -static void setup_iomux_enet(void) | |
129 | -{ | |
130 | - imx_iomux_v3_setup_multiple_pads(enet_pads, ARRAY_SIZE(enet_pads)); | |
131 | - | |
132 | - gpio_direction_output(ETH_PHY_RESET, 0); | |
133 | - mdelay(2); | |
134 | - gpio_set_value(ETH_PHY_RESET, 1); | |
135 | -} | |
136 | - | |
137 | -int board_phy_config(struct phy_device *phydev) | |
138 | -{ | |
139 | - if (phydev->drv->config) | |
140 | - phydev->drv->config(phydev); | |
141 | - | |
142 | - return 0; | |
143 | -} | |
144 | - | |
145 | -int board_eth_init(bd_t *bis) | |
146 | -{ | |
147 | - struct iomuxc *const iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR; | |
148 | - | |
149 | - int ret = enable_fec_anatop_clock(ENET_25MHZ); | |
150 | - if (ret) | |
151 | - return ret; | |
152 | - | |
153 | - /* set gpr1[ENET_CLK_SEL] */ | |
154 | - setbits_le32(&iomuxc_regs->gpr[1], IOMUXC_GPR1_ENET_CLK_SEL_MASK); | |
155 | - | |
156 | - setup_iomux_enet(); | |
157 | - | |
158 | - return cpu_eth_init(bis); | |
159 | -} | |
160 | -#endif | |
161 | - | |
162 | -int board_early_init_f(void) | |
163 | -{ | |
164 | - setup_iomux_uart(); | |
165 | - | |
166 | - return 0; | |
167 | -} | |
168 | - | |
169 | -int board_init(void) | |
170 | -{ | |
171 | - /* address of boot parameters */ | |
172 | - gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; | |
173 | - | |
174 | - return 0; | |
175 | -} | |
176 | - | |
177 | -int checkboard(void) | |
178 | -{ | |
179 | - puts("Board: Hummingboard\n"); | |
180 | - | |
181 | - return 0; | |
182 | -} |
board/solidrun/hummingboard/solo.cfg
1 | -/* | |
2 | - * Copyright (C) 2013 Boundary Devices | |
3 | - * Copyright (C) 2013 Jon Nettleton <jon.nettleton@gmail.com> | |
4 | - * | |
5 | - * SPDX-License-Identifier: GPL-2.0+ | |
6 | - */ | |
7 | - | |
8 | -/* image version */ | |
9 | -IMAGE_VERSION 2 | |
10 | - | |
11 | -/* | |
12 | - * Boot Device : one of | |
13 | - * spi, sd (the board has no nand neither onenand) | |
14 | - */ | |
15 | -BOOT_FROM sd | |
16 | - | |
17 | -#define __ASSEMBLY__ | |
18 | -#include <config.h> | |
19 | -#include "asm/arch/mx6-ddr.h" | |
20 | -#include "asm/arch/iomux.h" | |
21 | -#include "asm/arch/crm_regs.h" | |
22 | - | |
23 | -#include "../mx6-microsom/ddr-800mhz-32bit-setup.cfg" | |
24 | -#include "../mx6-microsom/800mhz_2x128mx16.cfg" | |
25 | -#include "../mx6-microsom/clocks.cfg" |
configs/hummingboard_solo_defconfig
include/configs/hummingboard.h
1 | -/* | |
2 | - * Copyright (C) 2013 Freescale Semiconductor, Inc. | |
3 | - * Copyright (C) 2013 SolidRun ltd. | |
4 | - * Copyright (C) 2013 Jon Nettleton <jon.nettleton@gmail.com> | |
5 | - * | |
6 | - * Configuration settings for the SolidRun Hummingboard. | |
7 | - * | |
8 | - * SPDX-License-Identifier: GPL-2.0+ | |
9 | - */ | |
10 | - | |
11 | -#ifndef __CONFIG_H | |
12 | -#define __CONFIG_H | |
13 | - | |
14 | -#include "mx6_common.h" | |
15 | -#include <asm/arch/imx-regs.h> | |
16 | -#include <asm/imx-common/gpio.h> | |
17 | -#include <linux/sizes.h> | |
18 | - | |
19 | -#define CONFIG_MX6 | |
20 | -#define CONFIG_DISPLAY_CPUINFO | |
21 | -#define CONFIG_DISPLAY_BOARDINFO | |
22 | - | |
23 | -#define CONFIG_MACH_TYPE 4773 | |
24 | - | |
25 | -#define CONFIG_CMDLINE_TAG | |
26 | -#define CONFIG_SETUP_MEMORY_TAGS | |
27 | -#define CONFIG_INITRD_TAG | |
28 | -#define CONFIG_REVISION_TAG | |
29 | - | |
30 | -#define CONFIG_SYS_GENERIC_BOARD | |
31 | - | |
32 | -/* Size of malloc() pool */ | |
33 | -#define CONFIG_SYS_MALLOC_LEN (2 * SZ_1M) | |
34 | - | |
35 | -#define CONFIG_BOARD_EARLY_INIT_F | |
36 | -#define CONFIG_MXC_GPIO | |
37 | - | |
38 | -#define CONFIG_MXC_UART | |
39 | -#define CONFIG_MXC_UART_BASE UART1_BASE | |
40 | - | |
41 | -/* allow to overwrite serial and ethaddr */ | |
42 | -#define CONFIG_ENV_OVERWRITE | |
43 | -#define CONFIG_CONS_INDEX 1 | |
44 | -#define CONFIG_BAUDRATE 115200 | |
45 | - | |
46 | -/* Command definition */ | |
47 | -#include <config_cmd_default.h> | |
48 | - | |
49 | -#undef CONFIG_CMD_IMLS | |
50 | -#undef CONFIG_CMD_I2C | |
51 | - | |
52 | -#define CONFIG_CMD_BMODE | |
53 | -#define CONFIG_CMD_SETEXPR | |
54 | -#define CONFIG_CMD_MEMTEST | |
55 | -#define CONFIG_BOOTDELAY 3 | |
56 | - | |
57 | -#define CONFIG_SYS_MEMTEST_START 0x10000000 | |
58 | -#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 500 * SZ_1M) | |
59 | -#define CONFIG_LOADADDR 0x12000000 | |
60 | -#define CONFIG_SYS_TEXT_BASE 0x17800000 | |
61 | - | |
62 | -/* MMC Configuration */ | |
63 | -#define CONFIG_FSL_ESDHC | |
64 | -#define CONFIG_FSL_USDHC | |
65 | -#define CONFIG_SYS_FSL_USDHC_NUM 1 | |
66 | -#define CONFIG_SYS_FSL_ESDHC_ADDR 0 | |
67 | - | |
68 | -#define CONFIG_MMC | |
69 | -#define CONFIG_CMD_MMC | |
70 | -#define CONFIG_GENERIC_MMC | |
71 | -#define CONFIG_BOUNCE_BUFFER | |
72 | -#define CONFIG_CMD_EXT2 | |
73 | -#define CONFIG_CMD_FAT | |
74 | -#define CONFIG_DOS_PARTITION | |
75 | - | |
76 | -/* Ethernet Configuration */ | |
77 | -#define CONFIG_FEC_MXC | |
78 | -#ifdef CONFIG_FEC_MXC | |
79 | -#define CONFIG_CMD_PING | |
80 | -#define CONFIG_CMD_DHCP | |
81 | -#define CONFIG_CMD_MII | |
82 | -#define CONFIG_CMD_NET | |
83 | -#define CONFIG_MII | |
84 | -#define IMX_FEC_BASE ENET_BASE_ADDR | |
85 | -#define CONFIG_FEC_XCV_TYPE RGMII | |
86 | -#define CONFIG_FEC_MXC_PHYADDR 0 | |
87 | -#define CONFIG_PHYLIB | |
88 | -#define CONFIG_PHY_ATHEROS | |
89 | -#endif | |
90 | - | |
91 | -#if defined(CONFIG_MX6S) | |
92 | -#define CONFIG_DEFAULT_FDT_FILE "imx6dl-hummingboard.dtb" | |
93 | -#endif | |
94 | - | |
95 | -#define CONFIG_EXTRA_ENV_SETTINGS \ | |
96 | - "script=boot.scr\0" \ | |
97 | - "image=zImage\0" \ | |
98 | - "console=ttymxc0\0" \ | |
99 | - "splashpos=m,m\0" \ | |
100 | - "fdt_high=0xffffffff\0" \ | |
101 | - "initrd_high=0xffffffff\0" \ | |
102 | - "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \ | |
103 | - "fdt_addr=0x18000000\0" \ | |
104 | - "boot_fdt=try\0" \ | |
105 | - "ip_dyn=yes\0" \ | |
106 | - "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \ | |
107 | - "mmcpart=1\0" \ | |
108 | - "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \ | |
109 | - "update_sd_firmware_filename=u-boot.imx\0" \ | |
110 | - "update_sd_firmware=" \ | |
111 | - "if test ${ip_dyn} = yes; then " \ | |
112 | - "setenv get_cmd dhcp; " \ | |
113 | - "else " \ | |
114 | - "setenv get_cmd tftp; " \ | |
115 | - "fi; " \ | |
116 | - "if mmc dev ${mmcdev}; then " \ | |
117 | - "if ${get_cmd} ${update_sd_firmware_filename}; then " \ | |
118 | - "setexpr fw_sz ${filesize} / 0x200; " \ | |
119 | - "setexpr fw_sz ${fw_sz} + 1; " \ | |
120 | - "mmc write ${loadaddr} 0x2 ${fw_sz}; " \ | |
121 | - "fi; " \ | |
122 | - "fi\0" \ | |
123 | - "mmcargs=setenv bootargs console=${console},${baudrate} " \ | |
124 | - "root=${mmcroot}\0" \ | |
125 | - "loadbootscript=" \ | |
126 | - "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ | |
127 | - "bootscript=echo Running bootscript from mmc ...; " \ | |
128 | - "source\0" \ | |
129 | - "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ | |
130 | - "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \ | |
131 | - "mmcboot=echo Booting from mmc ...; " \ | |
132 | - "run mmcargs; " \ | |
133 | - "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ | |
134 | - "if run loadfdt; then " \ | |
135 | - "bootz ${loadaddr} - ${fdt_addr}; " \ | |
136 | - "else " \ | |
137 | - "if test ${boot_fdt} = try; then " \ | |
138 | - "bootz; " \ | |
139 | - "else " \ | |
140 | - "echo WARN: Cannot load the DT; " \ | |
141 | - "fi; " \ | |
142 | - "fi; " \ | |
143 | - "else " \ | |
144 | - "bootz; " \ | |
145 | - "fi;\0" \ | |
146 | - "netargs=setenv bootargs console=${console},${baudrate} " \ | |
147 | - "root=/dev/nfs " \ | |
148 | - "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ | |
149 | - "netboot=echo Booting from net ...; " \ | |
150 | - "run netargs; " \ | |
151 | - "if test ${ip_dyn} = yes; then " \ | |
152 | - "setenv get_cmd dhcp; " \ | |
153 | - "else " \ | |
154 | - "setenv get_cmd tftp; " \ | |
155 | - "fi; " \ | |
156 | - "${get_cmd} ${image}; " \ | |
157 | - "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ | |
158 | - "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \ | |
159 | - "bootz ${loadaddr} - ${fdt_addr}; " \ | |
160 | - "else " \ | |
161 | - "if test ${boot_fdt} = try; then " \ | |
162 | - "bootz; " \ | |
163 | - "else " \ | |
164 | - "echo WARN: Cannot load the DT; " \ | |
165 | - "fi; " \ | |
166 | - "fi; " \ | |
167 | - "else " \ | |
168 | - "bootz; " \ | |
169 | - "fi;\0" | |
170 | - | |
171 | -#define CONFIG_BOOTCOMMAND \ | |
172 | - "mmc dev ${mmcdev}; if mmc rescan; then " \ | |
173 | - "if run loadbootscript; then " \ | |
174 | - "run bootscript; " \ | |
175 | - "else " \ | |
176 | - "if run loadimage; then " \ | |
177 | - "run mmcboot; " \ | |
178 | - "else run netboot; " \ | |
179 | - "fi; " \ | |
180 | - "fi; " \ | |
181 | - "else run netboot; fi" | |
182 | - | |
183 | -/* Miscellaneous configurable options */ | |
184 | -#define CONFIG_SYS_LONGHELP | |
185 | -#define CONFIG_SYS_HUSH_PARSER | |
186 | -#define CONFIG_AUTO_COMPLETE | |
187 | -#define CONFIG_SYS_CBSIZE 1024 | |
188 | -#define CONFIG_SYS_MAXARGS 16 | |
189 | -#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE | |
190 | - | |
191 | -#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR | |
192 | - | |
193 | -#define CONFIG_CMDLINE_EDITING | |
194 | - | |
195 | -/* Physical Memory Map */ | |
196 | -#define CONFIG_NR_DRAM_BANKS 1 | |
197 | -#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR | |
198 | - | |
199 | -#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM | |
200 | -#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR | |
201 | -#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE | |
202 | - | |
203 | -#define CONFIG_SYS_INIT_SP_OFFSET \ | |
204 | - (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) | |
205 | -#define CONFIG_SYS_INIT_SP_ADDR \ | |
206 | - (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) | |
207 | - | |
208 | -/* FLASH and environment organization */ | |
209 | -#define CONFIG_SYS_NO_FLASH | |
210 | - | |
211 | -#define CONFIG_ENV_SIZE (8 * 1024) | |
212 | - | |
213 | -#define CONFIG_ENV_IS_IN_MMC | |
214 | -#define CONFIG_ENV_OFFSET (6 * 64 * 1024) | |
215 | -#define CONFIG_SYS_MMC_ENV_DEV 0 | |
216 | - | |
217 | -#define CONFIG_OF_LIBFDT | |
218 | -#define CONFIG_CMD_BOOTZ | |
219 | - | |
220 | -#ifndef CONFIG_SYS_DCACHE_OFF | |
221 | -#define CONFIG_CMD_CACHE | |
222 | -#endif | |
223 | - | |
224 | -#endif /* __CONFIG_H * */ |