mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 18:28:55 +00:00
6113d3f27c
Change CONFIG_SPL_PAD_TO from a link address to an image offset since this is more handy and closer to the purpose of this config. Automatically define CONFIG_SPL_PAD_TO to CONFIG_SPL_MAX_SIZE (or 0 without CONFIG_SPL_MAX_SIZE). Test that CONFIG_SPL_PAD_TO >= CONFIG_SPL_MAX_SIZE if CONFIG_SPL_PAD_TO is non-zero. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
/*
|
|
* Copyright 2012 Texas Instruments
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License Version 2. This file is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*/
|
|
|
|
#ifndef __CONFIG_FALLBACKS_H
|
|
#define __CONFIG_FALLBACKS_H
|
|
|
|
#ifdef CONFIG_SPL
|
|
#ifdef CONFIG_SPL_PAD_TO
|
|
#ifdef CONFIG_SPL_MAX_SIZE
|
|
#if CONFIG_SPL_PAD_TO && CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE
|
|
#error CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE
|
|
#endif
|
|
#endif
|
|
#else
|
|
#ifdef CONFIG_SPL_MAX_SIZE
|
|
#define CONFIG_SPL_PAD_TO CONFIG_SPL_MAX_SIZE
|
|
#else
|
|
#define CONFIG_SPL_PAD_TO 0
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef CONFIG_SYS_BAUDRATE_TABLE
|
|
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
|
|
#endif
|
|
|
|
#if defined(CONFIG_CMD_FAT) && !defined(CONFIG_FS_FAT)
|
|
#define CONFIG_FS_FAT
|
|
#endif
|
|
|
|
#if (defined(CONFIG_CMD_EXT4) || defined(CONFIG_CMD_EXT2)) && \
|
|
!defined(CONFIG_FS_EXT4)
|
|
#define CONFIG_FS_EXT4
|
|
#endif
|
|
|
|
#if defined(CONFIG_CMD_EXT4_WRITE) && !defined(CONFIG_EXT4_WRITE)
|
|
#define CONFIG_EXT4_WRITE
|
|
#endif
|
|
|
|
/* Rather than repeat this expression each time, add a define for it */
|
|
#if defined(CONFIG_CMD_IDE) || \
|
|
defined(CONFIG_CMD_SATA) || \
|
|
defined(CONFIG_CMD_SCSI) || \
|
|
defined(CONFIG_CMD_USB) || \
|
|
defined(CONFIG_CMD_PART) || \
|
|
defined(CONFIG_MMC) || \
|
|
defined(CONFIG_SYSTEMACE)
|
|
#define HAVE_BLOCK_DEVICE
|
|
#endif
|
|
|
|
#endif /* __CONFIG_FALLBACKS_H */
|