blob: c8c7fc7f3e08b7c98ca542c1215cee97215dc069 [file] [log] [blame]
Jagan Tekid55af072017-09-12 17:15:47 +05301/*
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
Jagan Teki5d94ebe2017-09-27 23:03:13 +053023#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
Jagan Teki36b6e0c2017-11-10 17:18:44 +053034/* 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 */
Jagan Teki5d94ebe2017-09-27 23:03:13 +053038#endif
39
Jagan Tekid55af072017-09-12 17:15:47 +053040#endif