Daisuke Nojiri | efddcfb | 2014-09-04 09:55:34 -0700 | [diff] [blame] | 1 | /* |
| 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 Nojiri | efddcfb | 2014-09-04 09:55:34 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <stddef.h> |
| 17 | #include <string.h> |
| 18 | #include "chromeos.h" |
Daisuke Nojiri | efddcfb | 2014-09-04 09:55:34 -0700 | [diff] [blame] | 19 | |
Daisuke Nojiri | efddcfb | 2014-09-04 09:55:34 -0700 | [diff] [blame] | 20 | int __attribute__((weak)) clear_recovery_mode_switch(void) |
| 21 | { |
| 22 | // Can be implemented by a mainboard |
| 23 | return 0; |
| 24 | } |
| 25 | |
Julius Werner | 015f0ae | 2014-09-15 22:10:33 -0700 | [diff] [blame] | 26 | #ifdef __ROMSTAGE__ |
Daisuke Nojiri | efddcfb | 2014-09-04 09:55:34 -0700 | [diff] [blame] | 27 | void __attribute__((weak)) save_chromeos_gpios(void) |
| 28 | { |
| 29 | // Can be implemented by a mainboard |
| 30 | } |
| 31 | |
Paul Kocialkowski | a400327 | 2015-09-03 11:27:27 +0200 | [diff] [blame] | 32 | int __attribute__((weak)) get_sw_write_protect_state(void) |
Daisuke Nojiri | efddcfb | 2014-09-04 09:55:34 -0700 | [diff] [blame] | 33 | { |
| 34 | // Can be implemented by a platform / mainboard |
| 35 | return 0; |
| 36 | } |
| 37 | #endif |