mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 17:58:23 +00:00
bf904ea418
The "autoload" environment variable is always checked with env_get_yesno as it can be set to any form of no. The default behavior of env_get_yesno is to return -1 on variables that are not set, which acts as true in general (we test for non-zero return). To convert CONFIG_SYS_AUTOLOAD to Kconfig, given that it was almost always used to set autoload to no, first rename to CONFIG_SYS_DISABLE_AUTOLOAD for consistency sake. Then, make it so that if enabled we set autoload=0 in the default environment. Migrate all platforms which set CONFIG_SYS_AUTOLOAD to non-true or that set autoload to false in their default environment to using CONFIG_SYS_DISABLE_AUTOLOAD Signed-off-by: Tom Rini <trini@konsulko.com>
24 lines
582 B
C
24 lines
582 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* (C) Copyright 2018 Michal Simek <monstr@monstr.eu>
|
|
*/
|
|
|
|
#ifndef __CONFIG_BITMAIN_ANTMINER_S9_H
|
|
#define __CONFIG_BITMAIN_ANTMINER_S9_H
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x00000000
|
|
#define CONFIG_SYS_SDRAM_SIZE 0x40000000
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
"pxefile_addr_r=0x2000000\0" \
|
|
"scriptaddr=0x3000000\0" \
|
|
"kernel_addr_r=0x2000000\0" \
|
|
"fdt_high=0xefff000\0" \
|
|
"initrd_high=0xefff000\0" \
|
|
"devnum=0\0" \
|
|
"wdstop=mw f8005000 ABC000\0" \
|
|
BOOTENV
|
|
|
|
#include <configs/zynq-common.h>
|
|
|
|
#endif /* __CONFIG_BITMAIN_ANTMINER_S9_H */
|