Caleb Connolly | e6c284b | 2023-11-20 20:48:00 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Configuration file for Qualcomm Snapdragon boards |
| 4 | * |
| 5 | * (C) Copyright 2021 Dzmitry Sankouski <dsankouski@gmail.com> |
| 6 | * (C) Copyright 2023 Linaro Ltd. |
| 7 | */ |
| 8 | |
| 9 | #ifndef __CONFIGS_SNAPDRAGON_H |
| 10 | #define __CONFIGS_SNAPDRAGON_H |
| 11 | |
| 12 | #define CFG_SYS_BAUDRATE_TABLE { 115200, 230400, 460800, 921600 } |
| 13 | |
Caleb Connolly | b55c0f8 | 2023-12-07 00:13:07 +0000 | [diff] [blame] | 14 | // 2a5aa852-b856-4d97-baa9-5c5f4421551f |
| 15 | #define QUALCOMM_UBOOT_BOOT_IMAGE_GUID \ |
| 16 | EFI_GUID(0x2a5aa852, 0xb856, 0x4d97, 0xba, 0xa9, \ |
| 17 | 0x5c, 0x5f, 0x44, 0x21, 0x55, 0x1f) |
| 18 | |
Caleb Connolly | e6c284b | 2023-11-20 20:48:00 +0000 | [diff] [blame] | 19 | /* Load addressed are calculated during board_late_init(). See arm/mach-snapdragon/board.c */ |
| 20 | #define CFG_EXTRA_ENV_SETTINGS \ |
Caleb Connolly | dcca2dd | 2023-12-04 15:00:37 +0000 | [diff] [blame] | 21 | "bootdelay=1\0" \ |
Caleb Connolly | e6c284b | 2023-11-20 20:48:00 +0000 | [diff] [blame] | 22 | "stdin=serial,button-kbd\0" \ |
| 23 | "stdout=serial,vidconsole\0" \ |
| 24 | "stderr=serial,vidconsole\0" \ |
Caleb Connolly | dcca2dd | 2023-12-04 15:00:37 +0000 | [diff] [blame] | 25 | "preboot=bootflow scan -l\0" \ |
Amit Pundir | e5a4d56 | 2024-01-12 14:29:42 +0530 | [diff] [blame] | 26 | "uuid_boot=77036CD4-03D5-42BB-8ED1-37E5A88BAA37\0" \ |
Amit Pundir | 9f36103 | 2024-03-09 13:36:24 +0530 | [diff] [blame] | 27 | "uuid_init_boot=9FB61B5A-5245-47C2-9A59-DBE909F38497\0" \ |
Amit Pundir | e5a4d56 | 2024-01-12 14:29:42 +0530 | [diff] [blame] | 28 | "uuid_vendor_boot=4FFF84FA-5269-43A8-9E36-25C566123B67\0" \ |
| 29 | "uuid_modemst1=EBBEADAF-22C9-E33B-8F5D-0E81686A68C7\0" \ |
| 30 | "uuid_modemst2=0A288B1F-22C9-E33B-8F5D-0E81686A68C7\0" \ |
| 31 | "uuid_fsg=638FF8E2-22C9-E33B-8F5D-0E81686A68C7\0" \ |
| 32 | "uuid_fsc=57B90A16-22C9-E33B-8F5D-0E81686A68C7\0" \ |
| 33 | "uuid_misc=82ACC91F-357C-4A68-9C8F-689E1B1A23A7\0" \ |
| 34 | "uuid_metadata=649044CD-B22B-443F-8DF8-687EB85380A7\0" \ |
| 35 | "uuid_super=88147DE5-14E6-43CC-9FE2-48F6B99CBB47\0" \ |
| 36 | "uuid_userdata=1B81E7E6-F50D-419B-A739-2AEEF8DA3337\0" \ |
Amit Pundir | 9f36103 | 2024-03-09 13:36:24 +0530 | [diff] [blame] | 37 | "partitions_aosp=name=boot,start=128K,size=128M,uuid=${uuid_boot};name=init_boot,size=128M,uuid=${uuid_init_boot};name=vendor_boot,size=128M,uuid=${uuid_vendor_boot};name=modemst1,size=2M,uuid=${uuid_modemst1};name=modemst2,size=2M,uuid=${uuid_modemst2};name=fsg,size=2M,uuid=${uuid_fsg};name=fsc,size=1M,uuid=${uuid_fsc};name=misc,size=1M,uuid=${uuid_misc};name=metadata,size=64M,uuid=${uuid_metadata};name=super,size=4096M,uuid=${uuid_super};name=userdata,size=-,uuid=${uuid_userdata};\0" \ |
Amit Pundir | e5a4d56 | 2024-01-12 14:29:42 +0530 | [diff] [blame] | 38 | "gpt_mmc_aosp=gpt write mmc 0 $partitions_aosp\0" \ |
Amit Pundir | f92c410 | 2024-03-09 13:26:47 +0530 | [diff] [blame] | 39 | "fastboot=setenv bootargs androidboot.serialno=${serial#} ; fastboot -l $fastboot_addr_r usb 0\0" \ |
Caleb Connolly | da55090 | 2023-10-17 16:58:30 +0100 | [diff] [blame] | 40 | "bootmenu_0=Boot first available device=bootflow scan -b\0" \ |
| 41 | "bootmenu_1=Enable USB mass storage=ums 0 scsi 0,1,2,3,4,5\0" \ |
Caleb Connolly | dcca2dd | 2023-12-04 15:00:37 +0000 | [diff] [blame] | 42 | "bootmenu_2=Enable fastboot mode=run fastboot\0" \ |
Caleb Connolly | da55090 | 2023-10-17 16:58:30 +0100 | [diff] [blame] | 43 | "bootmenu_3=Reset device=reset\0" \ |
| 44 | "menucmd=bootmenu\0" \ |
| 45 | "bootcmd=bootflow scan -b\0" /* first entry is default */ |
Caleb Connolly | e6c284b | 2023-11-20 20:48:00 +0000 | [diff] [blame] | 46 | |
| 47 | #endif |