blob: 926ed39414fe90f7c10ad8454dd27b5a248cdf7f [file] [log] [blame]
Daisuke Nojiriefddcfb2014-09-04 09:55:34 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Daisuke Nojiriefddcfb2014-09-04 09:55:34 -070014 */
15
16#include <stddef.h>
17#include <string.h>
18#include "chromeos.h"
Daisuke Nojiriefddcfb2014-09-04 09:55:34 -070019
Daisuke Nojiriefddcfb2014-09-04 09:55:34 -070020int __attribute__((weak)) clear_recovery_mode_switch(void)
21{
22 // Can be implemented by a mainboard
23 return 0;
24}
25
Julius Werner015f0ae2014-09-15 22:10:33 -070026#ifdef __ROMSTAGE__
Daisuke Nojiriefddcfb2014-09-04 09:55:34 -070027void __attribute__((weak)) save_chromeos_gpios(void)
28{
29 // Can be implemented by a mainboard
30}
31
Paul Kocialkowskia4003272015-09-03 11:27:27 +020032int __attribute__((weak)) get_sw_write_protect_state(void)
Daisuke Nojiriefddcfb2014-09-04 09:55:34 -070033{
34 // Can be implemented by a platform / mainboard
35 return 0;
36}
37#endif