blob: 9121bba3738471a05970062b6375656f752af7d1 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jacob Chen63dc9712016-10-08 13:47:41 +08002/*
3 * (C) Copyright 2016 Rockchip Electronics Co., Ltd
Jacob Chen63dc9712016-10-08 13:47:41 +08004 */
5
6#ifndef _ROCKCHIP_COMMON_H_
7#define _ROCKCHIP_COMMON_H_
8#include <linux/sizes.h>
9
Jonas Karlmanbe56bb52023-02-22 22:44:41 +000010#ifndef CFG_CPUID_OFFSET
11#define CFG_CPUID_OFFSET 0x7
12#endif
13
Jacob Chen63dc9712016-10-08 13:47:41 +080014#ifndef CONFIG_SPL_BUILD
Jacob Chen63dc9712016-10-08 13:47:41 +080015
Simon Glassa90f3272023-01-17 10:48:20 -070016#define BOOT_TARGETS "mmc1 mmc0 nvme scsi usb pxe dhcp spi"
Klaus Gogerf165eb22017-10-06 19:24:08 +020017
Kever Yang065386f2017-07-25 12:00:05 +080018#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
Jacob Chen63dc9712016-10-08 13:47:41 +080023#define PARTS_DEFAULT \
24 "uuid_disk=${uuid_gpt_disk};" \
25 "name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};" \
Kever Yang12fb1202017-10-31 16:52:23 +080026 "name=loader2,start=8MB,size=4MB,uuid=${uuid_gpt_loader2};" \
27 "name=trust,size=4M,uuid=${uuid_gpt_atf};" \
Jacob Chenc0662e52016-11-15 16:55:27 +080028 "name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};" \
Kever Yang065386f2017-07-25 12:00:05 +080029 "name=rootfs,size=-,uuid="ROOT_UUID
Jacob Chen63dc9712016-10-08 13:47:41 +080030
31#endif
32
Jacob Chen63dc9712016-10-08 13:47:41 +080033#endif /* _ROCKCHIP_COMMON_H_ */