2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-10-08 05:47:41 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ROCKCHIP_COMMON_H_
|
|
|
|
#define _ROCKCHIP_COMMON_H_
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
|
2023-02-22 22:44:41 +00:00
|
|
|
#ifndef CFG_CPUID_OFFSET
|
|
|
|
#define CFG_CPUID_OFFSET 0x7
|
|
|
|
#endif
|
|
|
|
|
2016-10-08 05:47:41 +00:00
|
|
|
#ifndef CONFIG_SPL_BUILD
|
|
|
|
|
2023-01-17 17:48:20 +00:00
|
|
|
#define BOOT_TARGETS "mmc1 mmc0 nvme scsi usb pxe dhcp spi"
|
2017-10-06 17:24:08 +00:00
|
|
|
|
2017-07-25 04:00:05 +00:00
|
|
|
#ifdef CONFIG_ARM64
|
|
|
|
#define ROOT_UUID "B921B045-1DF0-41C3-AF44-4C6F280D3FAE;\0"
|
|
|
|
#else
|
|
|
|
#define ROOT_UUID "69DAD710-2CE4-4E3C-B16C-21A1D49ABED3;\0"
|
|
|
|
#endif
|
2016-10-08 05:47:41 +00:00
|
|
|
#define PARTS_DEFAULT \
|
|
|
|
"uuid_disk=${uuid_gpt_disk};" \
|
|
|
|
"name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};" \
|
2017-10-31 08:52:23 +00:00
|
|
|
"name=loader2,start=8MB,size=4MB,uuid=${uuid_gpt_loader2};" \
|
|
|
|
"name=trust,size=4M,uuid=${uuid_gpt_atf};" \
|
2016-11-15 08:55:27 +00:00
|
|
|
"name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};" \
|
2017-07-25 04:00:05 +00:00
|
|
|
"name=rootfs,size=-,uuid="ROOT_UUID
|
2016-10-08 05:47:41 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _ROCKCHIP_COMMON_H_ */
|