Simon Glass | 124602a | 2019-12-08 17:40:20 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2019 Google LLC |
| 4 | */ |
| 5 | |
| 6 | /* |
| 7 | * board/config.h - configuration options, board-specific |
| 8 | */ |
| 9 | |
| 10 | #ifndef __CONFIG_H |
| 11 | #define __CONFIG_H |
| 12 | |
| 13 | #define CONFIG_BOOTCOMMAND \ |
Simon Glass | 34c58f6 | 2020-11-04 09:57:37 -0700 | [diff] [blame] | 14 | "tpm init; tpm startup TPM2_SU_CLEAR; " \ |
Simon Glass | 2daf7de | 2021-03-15 18:00:05 +1300 | [diff] [blame] | 15 | "read mmc 0:2 100000 0 80; setexpr loader *001004f0; " \ |
Simon Glass | 34c58f6 | 2020-11-04 09:57:37 -0700 | [diff] [blame] | 16 | "setexpr size *00100518; setexpr blocks $size / 200; " \ |
Simon Glass | 2daf7de | 2021-03-15 18:00:05 +1300 | [diff] [blame] | 17 | "read mmc 0:2 100000 80 $blocks; setexpr setup $loader - 1000; " \ |
Simon Glass | b48bf18 | 2020-11-09 07:12:25 -0700 | [diff] [blame] | 18 | "setexpr cmdline_ptr $loader - 2000; " \ |
| 19 | "setexpr.s cmdline *$cmdline_ptr; " \ |
| 20 | "setexpr cmdline gsub %U \\\\${uuid}; " \ |
Simon Glass | 2daf7de | 2021-03-15 18:00:05 +1300 | [diff] [blame] | 21 | "if part uuid mmc 0:2 uuid; then " \ |
Simon Glass | b48bf18 | 2020-11-09 07:12:25 -0700 | [diff] [blame] | 22 | "zboot start 100000 0 0 0 $setup cmdline; " \ |
| 23 | "zboot load; zboot setup; zboot dump; zboot go;" \ |
| 24 | "fi" |
Simon Glass | 124602a | 2019-12-08 17:40:20 -0700 | [diff] [blame] | 25 | |
| 26 | #include <configs/x86-common.h> |
| 27 | #include <configs/x86-chromebook.h> |
| 28 | |
| 29 | #undef CONFIG_STD_DEVICES_SETTINGS |
| 30 | #define CONFIG_STD_DEVICES_SETTINGS "stdin=usbkbd,i8042-kbd,serial\0" \ |
| 31 | "stdout=vidconsole,serial\0" \ |
| 32 | "stderr=vidconsole,serial\0" |
| 33 | |
Simon Glass | 124602a | 2019-12-08 17:40:20 -0700 | [diff] [blame] | 34 | #define CONFIG_TPL_TEXT_BASE 0xffff8000 |
| 35 | |
| 36 | #define CONFIG_SYS_NS16550_MEM32 |
| 37 | #undef CONFIG_SYS_NS16550_PORT_MAPPED |
| 38 | |
| 39 | #endif /* __CONFIG_H */ |