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_XPL_BUILD 15 16 #ifndef BOOT_TARGETS 17 #define BOOT_TARGETS "mmc1 mmc0 nvme scsi usb pxe dhcp spi" 18 #endif 19 20 #ifdef CONFIG_ARM64 21 #define ROOT_UUID "B921B045-1DF0-41C3-AF44-4C6F280D3FAE;\0" 22 #else 23 #define ROOT_UUID "69DAD710-2CE4-4E3C-B16C-21A1D49ABED3;\0" 24 #endif 25 #define PARTS_DEFAULT \ 26 "uuid_disk=${uuid_gpt_disk};" \ 27 "name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};" \ 28 "name=loader2,start=8MB,size=4MB,uuid=${uuid_gpt_loader2};" \ 29 "name=trust,size=4M,uuid=${uuid_gpt_atf};" \ 30 "name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};" \ 31 "name=rootfs,size=-,uuid="ROOT_UUID 32 33 #endif 34 35 #endif /* _ROCKCHIP_COMMON_H_ */ 36