Prepare v2023.10
[platform/kernel/u-boot.git] / include / configs / rockchip-common.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2016 Rockchip Electronics Co., Ltd
4  */
5
6 #ifndef _ROCKCHIP_COMMON_H_
7 #define _ROCKCHIP_COMMON_H_
8 #include <linux/sizes.h>
9
10 #ifndef CFG_CPUID_OFFSET
11 #define CFG_CPUID_OFFSET        0x7
12 #endif
13
14 #ifndef CONFIG_SPL_BUILD
15
16 #define BOOT_TARGETS    "mmc1 mmc0 nvme scsi usb pxe dhcp spi"
17
18 #ifdef CONFIG_ARM64
19 #define ROOT_UUID "B921B045-1DF0-41C3-AF44-4C6F280D3FAE;\0"
20 #else
21 #define ROOT_UUID "69DAD710-2CE4-4E3C-B16C-21A1D49ABED3;\0"
22 #endif
23 #define PARTS_DEFAULT \
24         "uuid_disk=${uuid_gpt_disk};" \
25         "name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};" \
26         "name=loader2,start=8MB,size=4MB,uuid=${uuid_gpt_loader2};" \
27         "name=trust,size=4M,uuid=${uuid_gpt_atf};" \
28         "name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};" \
29         "name=rootfs,size=-,uuid="ROOT_UUID
30
31 #endif
32
33 #endif /* _ROCKCHIP_COMMON_H_ */