summaryrefslogtreecommitdiff
path: root/include/configs/odroid-m1.h
blob: 1058122f60854adcce35b4c5a5dbd1ba30c0babe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * SPDX-License-Identifier:     GPL-2.0+
 *
 * Copyright (c) 2021 Hardkernel Co., Ltd
 */

#ifndef __CONFIGS_ODROID_M1_H
#define __CONFIGS_ODROID_M1_H

#include <configs/rk3568_common.h>

#undef RKIMG_BOOTCOMMAND

#ifndef CONFIG_SPL_BUILD

#undef ROCKCHIP_DEVICE_SETTINGS
#define ROCKCHIP_DEVICE_SETTINGS \
		"stdout=serial,vidconsole\0" \
		"stderr=serial,vidconsole\0"

#define CONFIG_SYS_MMC_ENV_DEV		0
#define CONFIG_SUPPORT_EMMC_BOOT

#define CONFIG_SET_DFU_ALT_INFO
#define DFU_ALT_BOOT_EMMC \
	"gpt raw 0x0 0x20000;" \
	"loader raw 0x20000 0xE0000;"\
	"uboot part uboot;" \
	"boot part boot;" \
	"rootfs partubi rootfs;" \
	"userdata partubi userdata\0"

#define DFU_ALT_BOOT_MTD \
	"gpt raw 0x0 0x20000;" \
	"loader raw 0x20000 0xE0000;"\
	"vnvm part vnvm;" \
	"uboot part uboot;" \
	"boot part boot;" \
	"rootfs partubi rootfs;" \
	"userdata partubi userdata\0"

#undef CONFIG_EXTRA_ENV_SETTINGS
#define CONFIG_EXTRA_ENV_SETTINGS \
	ENV_MEM_LAYOUT_SETTINGS \
	"partitions=" PARTS_RKIMG \
	ROCKCHIP_DEVICE_SETTINGS \
	RKIMG_DET_BOOTDEV \
	BOOTENV

#define ENV_MEM_LAYOUT_SETTINGS1 \
	"cramfsaddr=0x0c000000\0" \
	"loadaddr=0x02000000\0"

#define CONFIG_ENV_SECT_SIZE	0x10000

#endif
#endif