Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2012 Michael Walle |
| 4 | * Michael Walle <michael@walle.cc> |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _CONFIG_LSXL_H |
| 8 | #define _CONFIG_LSXL_H |
| 9 | |
| 10 | /* |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 11 | * General configuration options |
| 12 | */ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 13 | |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 14 | #include "mv-common.h" |
| 15 | |
Michael Walle | 22316a5 | 2015-02-08 20:06:07 +0100 | [diff] [blame] | 16 | /* loading initramfs images without uimage header */ |
Michael Walle | 22316a5 | 2015-02-08 20:06:07 +0100 | [diff] [blame] | 17 | |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 18 | /* |
| 19 | * Environment variables configurations |
| 20 | */ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 21 | |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 22 | /* |
| 23 | * Default environment variables |
| 24 | */ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 25 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Michael Walle | 35e6e29 | 2014-04-01 20:09:14 +0200 | [diff] [blame] | 26 | "bootsource=legacy\0" \ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 27 | "hdpart=0:1\0" \ |
Michael Walle | 35e6e29 | 2014-04-01 20:09:14 +0200 | [diff] [blame] | 28 | "kernel_addr=0x00800000\0" \ |
| 29 | "ramdisk_addr=0x01000000\0" \ |
Michael Walle | be08338 | 2015-02-08 20:06:06 +0100 | [diff] [blame] | 30 | "fdt_addr=0x00ff0000\0" \ |
Michael Walle | 75c190e | 2022-08-17 21:37:59 +0200 | [diff] [blame] | 31 | "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ |
Michael Walle | 4f5cb5a | 2019-04-03 23:28:31 +0200 | [diff] [blame] | 32 | "bootcmd_legacy=sata init " \ |
| 33 | "&& load sata ${hdpart} ${kernel_addr} /uImage.buffalo "\ |
| 34 | "&& load sata ${hdpart} ${ramdisk_addr} /initrd.buffalo "\ |
Michael Walle | daffcc5 | 2015-02-08 20:06:05 +0100 | [diff] [blame] | 35 | "&& bootm ${kernel_addr} ${ramdisk_addr}\0" \ |
Michael Walle | 22316a5 | 2015-02-08 20:06:07 +0100 | [diff] [blame] | 36 | "bootcmd_net=bootp ${kernel_addr} vmlinuz " \ |
Michael Walle | 75c190e | 2022-08-17 21:37:59 +0200 | [diff] [blame] | 37 | "&& tftpboot ${fdt_addr} ${fdtfile} " \ |
Michael Walle | 5b849ca | 2022-08-17 21:38:00 +0200 | [diff] [blame^] | 38 | "&& tftpboot ${ramdisk_addr} initrd.img " \ |
Michael Walle | 22316a5 | 2015-02-08 20:06:07 +0100 | [diff] [blame] | 39 | "&& bootz ${kernel_addr} " \ |
Michael Walle | 5b849ca | 2022-08-17 21:38:00 +0200 | [diff] [blame^] | 40 | "${ramdisk_addr}:${filesize} ${fdt_addr}\0" \ |
Michael Walle | 4f5cb5a | 2019-04-03 23:28:31 +0200 | [diff] [blame] | 41 | "bootcmd_hdd=sata init " \ |
| 42 | "&& load sata ${hdpart} ${kernel_addr} /vmlinuz " \ |
Michael Walle | 4f5cb5a | 2019-04-03 23:28:31 +0200 | [diff] [blame] | 43 | "&& load sata ${hdpart} ${fdt_addr} /dtb " \ |
Michael Walle | 5b849ca | 2022-08-17 21:38:00 +0200 | [diff] [blame^] | 44 | "&& load sata ${hdpart} ${ramdisk_addr} /initrd.img " \ |
Michael Walle | 22316a5 | 2015-02-08 20:06:07 +0100 | [diff] [blame] | 45 | "&& bootz ${kernel_addr} " \ |
Michael Walle | 5b849ca | 2022-08-17 21:38:00 +0200 | [diff] [blame^] | 46 | "${ramdisk_addr}:${filesize} ${fdt_addr}\0" \ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 47 | "bootcmd_usb=usb start " \ |
Michael Walle | 22316a5 | 2015-02-08 20:06:07 +0100 | [diff] [blame] | 48 | "&& load usb 0:1 ${kernel_addr} /vmlinuz " \ |
Michael Walle | 75c190e | 2022-08-17 21:37:59 +0200 | [diff] [blame] | 49 | "&& load usb 0:1 ${fdt_addr} ${fdtfile} " \ |
Michael Walle | 5b849ca | 2022-08-17 21:38:00 +0200 | [diff] [blame^] | 50 | "&& load usb 0:1 ${ramdisk_addr} /initrd.img " \ |
Michael Walle | 22316a5 | 2015-02-08 20:06:07 +0100 | [diff] [blame] | 51 | "&& bootz ${kernel_addr} " \ |
Michael Walle | 5b849ca | 2022-08-17 21:38:00 +0200 | [diff] [blame^] | 52 | "${ramdisk_addr}:${filesize} ${fdt_addr}\0" \ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 53 | "bootcmd_rescue=run config_nc_dhcp; run nc\0" \ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 54 | "config_nc_dhcp=setenv autoload_old ${autoload}; " \ |
| 55 | "setenv autoload no " \ |
| 56 | "&& bootp " \ |
Michael Walle | dc3ba8e | 2012-10-04 06:54:25 +0000 | [diff] [blame] | 57 | "&& setenv ncip " \ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 58 | "&& 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 Walle | 9f06145 | 2014-09-28 00:05:23 +0200 | [diff] [blame] | 63 | "setenv bootsource legacy; run ser\0" \ |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 64 | "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 Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 78 | #endif /* CONFIG_CMD_NET */ |
| 79 | |
Michael Walle | dccfa46 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 80 | #endif /* _CONFIG_LSXL_H */ |