blob: 162f07790ff0187d24ad31cdda394721d3340e3f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Michael Walledccfa462012-06-05 11:33:17 +00002/*
3 * Copyright (c) 2012 Michael Walle
4 * Michael Walle <michael@walle.cc>
Michael Walledccfa462012-06-05 11:33:17 +00005 */
6
7#ifndef _CONFIG_LSXL_H
8#define _CONFIG_LSXL_H
9
10/*
Michael Walledccfa462012-06-05 11:33:17 +000011 * General configuration options
12 */
Michael Walledccfa462012-06-05 11:33:17 +000013
Michael Walledccfa462012-06-05 11:33:17 +000014#include "mv-common.h"
15
Michael Walle22316a52015-02-08 20:06:07 +010016/* loading initramfs images without uimage header */
Michael Walle22316a52015-02-08 20:06:07 +010017
Michael Walledccfa462012-06-05 11:33:17 +000018/*
19 * Environment variables configurations
20 */
Michael Walledccfa462012-06-05 11:33:17 +000021
Michael Walledccfa462012-06-05 11:33:17 +000022/*
23 * Default environment variables
24 */
Michael Walledccfa462012-06-05 11:33:17 +000025#define CONFIG_EXTRA_ENV_SETTINGS \
Michael Walle35e6e292014-04-01 20:09:14 +020026 "bootsource=legacy\0" \
Michael Walledccfa462012-06-05 11:33:17 +000027 "hdpart=0:1\0" \
Michael Walleb7684732022-08-17 21:38:01 +020028 "kernel_addr_r=0x00800000\0" \
29 "ramdisk_addr_r=0x01000000\0" \
30 "fdt_addr_r=0x00ff0000\0" \
Michael Walle75c190e2022-08-17 21:37:59 +020031 "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
Michael Walle4f5cb5a2019-04-03 23:28:31 +020032 "bootcmd_legacy=sata init " \
Michael Walleb7684732022-08-17 21:38:01 +020033 "&& load sata ${hdpart} ${kernel_addr_r} /uImage.buffalo "\
34 "&& load sata ${hdpart} ${ramdisk_addr_r} /initrd.buffalo "\
35 "&& bootm ${kernel_addr_r} ${ramdisk_addr_r}\0" \
36 "bootcmd_net=bootp ${kernel_addr_r} vmlinuz " \
37 "&& tftpboot ${fdt_addr_r} ${fdtfile} " \
38 "&& tftpboot ${ramdisk_addr_r} initrd.img " \
39 "&& bootz ${kernel_addr_r} " \
40 "${ramdisk_addr_r}:${filesize} ${fdt_addr_r}\0" \
Michael Walle4f5cb5a2019-04-03 23:28:31 +020041 "bootcmd_hdd=sata init " \
Michael Walleb7684732022-08-17 21:38:01 +020042 "&& load sata ${hdpart} ${kernel_addr_r} /vmlinuz " \
43 "&& load sata ${hdpart} ${fdt_addr_r} /dtb " \
44 "&& load sata ${hdpart} ${ramdisk_addr_r} /initrd.img " \
45 "&& bootz ${kernel_addr_r} " \
46 "${ramdisk_addr_r}:${filesize} ${fdt_addr_r}\0" \
Michael Walledccfa462012-06-05 11:33:17 +000047 "bootcmd_usb=usb start " \
Michael Walleb7684732022-08-17 21:38:01 +020048 "&& load usb 0:1 ${kernel_addr_r} /vmlinuz " \
49 "&& load usb 0:1 ${fdt_addr_r} ${fdtfile} " \
50 "&& load usb 0:1 ${ramdisk_addr_r} /initrd.img " \
51 "&& bootz ${kernel_addr_r} " \
52 "${ramdisk_addr_r}:${filesize} ${fdt_addr_r}\0" \
Michael Walledccfa462012-06-05 11:33:17 +000053 "bootcmd_rescue=run config_nc_dhcp; run nc\0" \
Michael Walledccfa462012-06-05 11:33:17 +000054 "config_nc_dhcp=setenv autoload_old ${autoload}; " \
55 "setenv autoload no " \
56 "&& bootp " \
Michael Walledc3ba8e2012-10-04 06:54:25 +000057 "&& setenv ncip " \
Michael Walledccfa462012-06-05 11:33:17 +000058 "&& setenv autoload ${autoload_old}; " \
59 "setenv autoload_old\0" \
60 "standard_env=setenv ipaddr; setenv netmask; setenv serverip; " \
61 "setenv ncip; setenv gatewayip; setenv ethact; " \
62 "setenv bootfile; setenv dnsip; " \
Michael Walle9f061452014-09-28 00:05:23 +020063 "setenv bootsource legacy; run ser\0" \
Michael Walledccfa462012-06-05 11:33:17 +000064 "restore_env=run standard_env; saveenv; reset\0" \
65 "ser=setenv stdin serial; setenv stdout serial; " \
66 "setenv stderr serial\0" \
67 "nc=setenv stdin nc; setenv stdout nc; setenv stderr nc\0" \
68 "stdin=serial\0" \
69 "stdout=serial\0" \
70 "stderr=serial\0"
71
72/*
73 * Ethernet Driver configuration
74 */
75#ifdef CONFIG_CMD_NET
76#define CONFIG_MVGBE_PORTS {0, 1} /* enable port 1 only */
77#define CONFIG_PHY_BASE_ADR 7
Michael Walledccfa462012-06-05 11:33:17 +000078#endif /* CONFIG_CMD_NET */
79
Michael Walledccfa462012-06-05 11:33:17 +000080#endif /* _CONFIG_LSXL_H */