Mattijs Korpershoek | f89b90d | 2021-11-22 16:22:05 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Configuration for the khadas VIM3 Android |
| 4 | * |
| 5 | * Copyright (C) 2021 Baylibre, SAS |
| 6 | * Author: Guillaume LA ROQUE <glaroque@baylibre.com> |
| 7 | */ |
| 8 | |
| 9 | #ifndef __CONFIG_H |
| 10 | #define __CONFIG_H |
| 11 | |
| 12 | #define LOGO_UUID "43a3305d-150f-4cc9-bd3b-38fca8693846;" |
| 13 | #define ROOT_UUID "ddb8c3f6-d94d-4394-b633-3134139cc2e0;" |
| 14 | |
Mattijs Korpershoek | 425f06f | 2021-11-22 16:22:06 +0100 | [diff] [blame] | 15 | #if defined(CONFIG_CMD_AB_SELECT) |
| 16 | #define PARTS_DEFAULT \ |
| 17 | "uuid_disk=${uuid_gpt_disk};" \ |
| 18 | "name=logo,start=512K,size=2M,uuid=" LOGO_UUID \ |
| 19 | "name=misc,size=512K,uuid=${uuid_gpt_misc};" \ |
| 20 | "name=dtbo_a,size=8M,uuid=${uuid_gpt_dtbo_a};" \ |
| 21 | "name=dtbo_b,size=8M,uuid=${uuid_gpt_dtbo_b};" \ |
| 22 | "name=vbmeta_a,size=512K,uuid=${uuid_gpt_vbmeta_a};" \ |
| 23 | "name=vbmeta_b,size=512K,uuid=${uuid_gpt_vbmeta_b};" \ |
| 24 | "name=boot_a,size=32M,bootable,uuid=${uuid_gpt_boot_a};" \ |
| 25 | "name=boot_b,size=32M,bootable,uuid=${uuid_gpt_boot_b};" \ |
| 26 | "name=super,size=3072M,uuid=${uuid_gpt_super};" \ |
| 27 | "name=userdata,size=11282M,uuid=${uuid_gpt_userdata};" \ |
| 28 | "name=rootfs,size=-,uuid=" ROOT_UUID |
| 29 | #else |
Mattijs Korpershoek | f89b90d | 2021-11-22 16:22:05 +0100 | [diff] [blame] | 30 | #define PARTS_DEFAULT \ |
| 31 | "uuid_disk=${uuid_gpt_disk};" \ |
| 32 | "name=logo,start=512K,size=2M,uuid=" LOGO_UUID \ |
| 33 | "name=misc,size=512K,uuid=${uuid_gpt_misc};" \ |
| 34 | "name=dtbo,size=8M,uuid=${uuid_gpt_dtbo};" \ |
| 35 | "name=vbmeta,size=512K,uuid=${uuid_gpt_vbmeta};" \ |
| 36 | "name=boot,size=32M,bootable,uuid=${uuid_gpt_boot};" \ |
| 37 | "name=recovery,size=32M,uuid=${uuid_gpt_recovery};" \ |
| 38 | "name=cache,size=256M,uuid=${uuid_gpt_cache};" \ |
| 39 | "name=super,size=1792M,uuid=${uuid_gpt_super};" \ |
| 40 | "name=userdata,size=12786M,uuid=${uuid_gpt_userdata};" \ |
| 41 | "name=rootfs,size=-,uuid=" ROOT_UUID |
Mattijs Korpershoek | 425f06f | 2021-11-22 16:22:06 +0100 | [diff] [blame] | 42 | #endif |
Mattijs Korpershoek | f89b90d | 2021-11-22 16:22:05 +0100 | [diff] [blame] | 43 | |
| 44 | #define EXTRA_ANDROID_ENV_SETTINGS \ |
| 45 | "board=vim3\0" \ |
| 46 | "board_name=vim3\0" \ |
| 47 | |
| 48 | #include <configs/meson64_android.h> |
| 49 | |
| 50 | #endif /* __CONFIG_H */ |