huang lin | 47b4c22 | 2015-12-07 11:08:57 +0800 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2015 Rockchip Electronics Co., Ltd |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #ifndef __CONFIG_H |
| 8 | #define __CONFIG_H |
| 9 | |
| 10 | #include <configs/rk3036_common.h> |
| 11 | |
Jeffy Chen | 197e14e | 2016-01-14 10:19:38 +0800 | [diff] [blame] | 12 | #ifndef CONFIG_SPL_BUILD |
| 13 | |
| 14 | /* Enable gpt partition table */ |
| 15 | #define CONFIG_CMD_GPT |
| 16 | #define CONFIG_RANDOM_UUID |
| 17 | #define CONFIG_EFI_PARTITION |
| 18 | #define PARTS_DEFAULT \ |
| 19 | "uuid_disk=${uuid_gpt_disk};" \ |
| 20 | "name=loader,start=32K,size=4000K,uuid=${uuid_gpt_loader};" \ |
| 21 | "name=reserved,size=64K,uuid=${uuid_gpt_reserved};" \ |
| 22 | "name=misc,size=4M,uuid=${uuid_gpt_misc};" \ |
| 23 | "name=recovery,size=32M,uuid=${uuid_gpt_recovery};" \ |
| 24 | "name=boot_a,size=32M,uuid=${uuid_gpt_boot_a};" \ |
| 25 | "name=boot_b,size=32M,uuid=${uuid_gpt_boot_b};" \ |
| 26 | "name=system_a,size=818M,uuid=${uuid_gpt_system_a};" \ |
| 27 | "name=system_b,size=818M,uuid=${uuid_gpt_system_b};" \ |
| 28 | "name=vendor_a,size=50M,uuid=${uuid_gpt_vendor_a};" \ |
| 29 | "name=vendor_b,size=50M,uuid=${uuid_gpt_vendor_b};" \ |
| 30 | "name=cache,size=100M,uuid=${uuid_gpt_cache};" \ |
| 31 | "name=metadata,size=16M,uuid=${uuid_gpt_metadata};" \ |
| 32 | "name=persist,size=4M,uuid=${uuid_gpt_persist};" \ |
| 33 | "name=userdata,size=-,uuid=${uuid_gpt_userdata};\0" \ |
| 34 | |
| 35 | #undef CONFIG_EXTRA_ENV_SETTINGS |
| 36 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 37 | "partitions=" PARTS_DEFAULT \ |
| 38 | |
| 39 | #endif |
| 40 | |
Jeffy Chen | e68f203 | 2016-01-14 10:19:40 +0800 | [diff] [blame^] | 41 | #define CONFIG_BOARD_LATE_INIT |
| 42 | #define CONFIG_PREBOOT |
| 43 | |
huang lin | 47b4c22 | 2015-12-07 11:08:57 +0800 | [diff] [blame] | 44 | #endif |