Tom Warren | bb932c5 | 2014-04-30 14:51:38 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2014 Google Inc. |
| 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. |
Tom Warren | bb932c5 | 2014-04-30 14:51:38 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <arch/io.h> |
Julius Werner | eaa9c45 | 2014-09-24 15:40:49 -0700 | [diff] [blame] | 17 | #include <gpio.h> |
Daisuke Nojiri | 512bfbc | 2014-08-15 17:07:39 -0700 | [diff] [blame] | 18 | #include <reset.h> |
Tom Warren | bb932c5 | 2014-04-30 14:51:38 -0700 | [diff] [blame] | 19 | |
Daisuke Nojiri | 512bfbc | 2014-08-15 17:07:39 -0700 | [diff] [blame] | 20 | void hard_reset(void) |
Tom Warren | bb932c5 | 2014-04-30 14:51:38 -0700 | [diff] [blame] | 21 | { |
| 22 | gpio_output(GPIO(I5), 0); |
| 23 | while(1); |
| 24 | } |