Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 1 | /* |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | * This file is part of the coreboot project. |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2004 Tyan Computer |
| 5 | * Written by Yinghai Lu <yhlu@tyan.com> for Tyan Computer. |
| 6 | * Copyright (C) 2006,2007 AMD |
| 7 | * Written by Yinghai Lu <yinghai.lu@amd.com> for AMD. |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License as published by |
| 11 | * the Free Software Foundation; either version 2 of the License, or |
| 12 | * (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 18 | */ |
| 19 | |
Kyösti Mälkki | 8db31a8 | 2016-12-05 06:33:32 +0200 | [diff] [blame] | 20 | #define __SIMPLE_DEVICE__ |
| 21 | |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 22 | #include <arch/io.h> |
Stefan Reinauer | f8b1923 | 2010-04-07 00:38:09 +0000 | [diff] [blame] | 23 | #include <reset.h> |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 24 | |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 25 | #include "../../../northbridge/amd/amdk8/reset_test.c" |
| 26 | |
| 27 | void hard_reset(void) |
| 28 | { |
| 29 | set_bios_reset(); |
| 30 | /* Try rebooting through port 0xcf9 */ |
| 31 | /* Actually it is not a real hard_reset --- it only reset coherent link table, but not reset link freq and width */ |
| 32 | outb((0 <<3)|(0<<2)|(1<<1), 0xcf9); |
| 33 | outb((0 <<3)|(1<<2)|(1<<1), 0xcf9); |
| 34 | } |