2019-12-09 00:40:20 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright 2019 Google LLC
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* board/config.h - configuration options, board-specific
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
2020-11-04 16:57:37 +00:00
|
|
|
"tpm init; tpm startup TPM2_SU_CLEAR; " \
|
2021-03-15 05:00:05 +00:00
|
|
|
"read mmc 0:2 100000 0 80; setexpr loader *001004f0; " \
|
2020-11-04 16:57:37 +00:00
|
|
|
"setexpr size *00100518; setexpr blocks $size / 200; " \
|
2021-03-15 05:00:05 +00:00
|
|
|
"read mmc 0:2 100000 80 $blocks; setexpr setup $loader - 1000; " \
|
2020-11-09 14:12:25 +00:00
|
|
|
"setexpr cmdline_ptr $loader - 2000; " \
|
|
|
|
"setexpr.s cmdline *$cmdline_ptr; " \
|
|
|
|
"setexpr cmdline gsub %U \\\\${uuid}; " \
|
2021-03-15 05:00:05 +00:00
|
|
|
"if part uuid mmc 0:2 uuid; then " \
|
2020-11-09 14:12:25 +00:00
|
|
|
"zboot start 100000 0 0 0 $setup cmdline; " \
|
|
|
|
"zboot load; zboot setup; zboot dump; zboot go;" \
|
|
|
|
"fi"
|
2019-12-09 00:40:20 +00:00
|
|
|
|
|
|
|
#include <configs/x86-common.h>
|
|
|
|
#include <configs/x86-chromebook.h>
|
|
|
|
|
|
|
|
#undef CONFIG_STD_DEVICES_SETTINGS
|
|
|
|
#define CONFIG_STD_DEVICES_SETTINGS "stdin=usbkbd,i8042-kbd,serial\0" \
|
|
|
|
"stdout=vidconsole,serial\0" \
|
|
|
|
"stderr=vidconsole,serial\0"
|
|
|
|
|
|
|
|
#define CONFIG_TPL_TEXT_BASE 0xffff8000
|
|
|
|
|
|
|
|
#define CONFIG_SYS_NS16550_MEM32
|
|
|
|
#undef CONFIG_SYS_NS16550_PORT_MAPPED
|
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|