blob: ae46126399f88de52d060e929f1217ef5958f18b [file] [log] [blame]
Nick Hawkins79c6c382022-06-08 16:21:40 -05001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * GXP board
4 *
5 * (C) Copyright 2022 Hewlett Packard Enterprise Development LP.
6 * Author: Nick Hawkins <nick.hawkins@hpe.com>
7 * Author: Jean-Marie Verdun <verdun@hpe.com>
8 */
9
10#ifndef _GXP_H_
11#define _GXP_H_
12
13#define CONFIG_SYS_SDRAM_BASE 0x40000000
14
15#define CONFIG_EXTRA_ENV_SETTINGS \
16 "recover_file=openbmc-hpe-recovery-image.mtd\0" \
17 "recover_cmd=usb start; " \
18 "mw.b 0xD100000D 0x40; " \
19 "if fatload usb 0 0x50000000 $recover_file 0x4C0000 0x80000; then " \
20 "setenv bootargs console=ttyS0,115200 recovery; " \
21 "setenv force_recovery; " \
22 "saveenv; " \
23 "bootm 0x50000000; " \
24 "else " \
25 "while itest 0 < 1; do " \
26 "mw.b 0xd1000005 0xc0; " \
27 "sleep .1; " \
28 "mw.b 0xd1000005 0x00; " \
29 "sleep .1; " \
30 "done; " \
31 "fi; " \
32 "reset;\0" \
33 "spiboot=if itest.b *0xD10000B2 == 6; then " \
34 "run recover_cmd;" \
35 "fi;" \
36 "if printenv force_recovery; then " \
37 "run recover_cmd; " \
38 "else " \
39 "bootm 0xfc080000; " \
40 "run recover_cmd; " \
41 "fi;\0"
42
43#endif