c8c7fc7f3e08b7c98ca542c1215cee97215dc069
[platform/kernel/u-boot.git] / include / configs / vyasa-rk3288.h
1 /*
2  * Copyright (C) 2017 Amarula Solutions
3  *
4  * Configuration settings for Amarula Vyasa RK3288.
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #ifndef __CONFIG_H
10 #define __CONFIG_H
11
12 #define ROCKCHIP_DEVICE_SETTINGS
13 #include <configs/rk3288_common.h>
14
15 #undef BOOT_TARGET_DEVICES
16
17 #define BOOT_TARGET_DEVICES(func) \
18         func(MMC, mmc, 1) \
19
20 #define CONFIG_SYS_MMC_ENV_DEV 1
21 #undef CONFIG_CMD_USB_MASS_STORAGE
22
23 #ifndef CONFIG_TPL_BUILD
24
25 #define CONFIG_SPL_OS_BOOT
26
27 /* Falcon Mode */
28 #define CONFIG_SPL_FS_LOAD_ARGS_NAME    "args"
29 #define CONFIG_SPL_FS_LOAD_KERNEL_NAME  "uImage"
30 #define CONFIG_CMD_SPL
31 #define CONFIG_SYS_SPL_ARGS_ADDR        0x0ffe5000
32 #define CONFIG_CMD_SPL_WRITE_SIZE      (128 * SZ_1K)
33
34 /* Falcon Mode - MMC support: args@16MB kernel@17MB */
35 #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR           0x8000  /* 16MB */
36 #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS          (CONFIG_CMD_SPL_WRITE_SIZE / 512)
37 #define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR         0x8800  /* 17MB */
38 #endif
39
40 #endif