1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * Copyright (C) 2019 Intel Corporation <www.intel.com> 4 */ 5 6 #ifndef __SLIMBOOTLOADER_CONFIG_H__ 7 #define __SLIMBOOTLOADER_CONFIG_H__ 8 9 #include <configs/x86-common.h> 10 11 #define CONFIG_STD_DEVICES_SETTINGS \ 12 "stdin=serial,i8042-kbd,usbkbd\0" \ 13 "stdout=serial\0" \ 14 "stderr=serial\0" 15 16 /* 17 * Override CONFIG_EXTRA_ENV_SETTINGS in x86-common.h 18 */ 19 #undef CONFIG_EXTRA_ENV_SETTINGS 20 #define CONFIG_EXTRA_ENV_SETTINGS \ 21 CONFIG_STD_DEVICES_SETTINGS \ 22 "netdev=eth0\0" \ 23 "consoledev=ttyS0\0" \ 24 "ramdiskaddr=0x4000000\0" \ 25 "ramdiskfile=initrd\0" \ 26 "bootdev=usb\0" \ 27 "bootdevnum=0\0" \ 28 "bootdevpart=0\0" \ 29 "bootfsload=fatload\0" \ 30 "bootusb=setenv bootdev usb; boot\0" \ 31 "bootscsi=setenv bootdev scsi; boot\0" \ 32 "bootmmc=setenv bootdev mmc; boot\0" \ 33 "bootargs=console=ttyS0,115200 console=tty0\0" 34 35 /* 36 * Override CONFIG_BOOTCOMMAND in x86-common.h 37 */ 38 #undef CONFIG_BOOTCOMMAND 39 #define CONFIG_BOOTCOMMAND \ 40 "if test ${bootdev} = \"usb\"; then ${bootdev} start; fi; " \ 41 "if test ${bootdev} = \"scsi\"; then ${bootdev} scan; fi; " \ 42 "${bootdev} info; " \ 43 "${bootfsload} ${bootdev} ${bootdevnum}:${bootdevpart} " \ 44 "${loadaddr} ${bootfile}; " \ 45 "${bootfsload} ${bootdev} ${bootdevnum}:${bootdevpart} " \ 46 "${ramdiskaddr} ${ramdiskfile}; " \ 47 "zboot ${loadaddr} 0 ${ramdiskaddr} ${filesize}" 48 49 #endif /* __SLIMBOOTLOADER_CONFIG_H__ */ 50