Stefan Reinauer | 61be08b | 2006-08-29 17:41:14 +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. |
Uwe Hermann | a4c56c3 | 2006-11-01 14:31:00 +0000 | [diff] [blame] | 3 | * |
Edward O'Callaghan | 2e4dea6 | 2014-05-12 05:02:58 +1000 | [diff] [blame] | 4 | * Copyright (C) 2014 Edward O'Callaghan <eocallaghan@alterapraxis.com> |
Stefan Reinauer | 61be08b | 2006-08-29 17:41:14 +0000 | [diff] [blame] | 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; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Stefan Reinauer | 61be08b | 2006-08-29 17:41:14 +0000 | [diff] [blame] | 15 | */ |
| 16 | |
Stefan Reinauer | 24d1d4b | 2013-03-21 11:51:41 -0700 | [diff] [blame] | 17 | #include <arch/io.h> |
Edward O'Callaghan | 2e4dea6 | 2014-05-12 05:02:58 +1000 | [diff] [blame] | 18 | #include <superio/ite/common/ite.h> |
Stefan Reinauer | 61be08b | 2006-08-29 17:41:14 +0000 | [diff] [blame] | 19 | #include "it8718f.h" |
| 20 | |
Uwe Hermann | 5c6bae2 | 2010-11-08 15:16:30 +0000 | [diff] [blame] | 21 | /* |
| 22 | * GIGABYTE uses a special Super I/O register to protect its Dual BIOS |
Wang Qing Pei | 6d7c1fc | 2010-08-15 11:37:41 +0000 | [diff] [blame] | 23 | * mechanism. It lives in the GPIO LDN. However, register 0xEF is not |
Uwe Hermann | 5c6bae2 | 2010-11-08 15:16:30 +0000 | [diff] [blame] | 24 | * mentioned in the IT8718F datasheet so just hardcode it to 0x7E for now. |
Wang Qing Pei | 6d7c1fc | 2010-08-15 11:37:41 +0000 | [diff] [blame] | 25 | */ |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 26 | void it8718f_disable_reboot(pnp_devfn_t dev) |
Wang Qing Pei | 6d7c1fc | 2010-08-15 11:37:41 +0000 | [diff] [blame] | 27 | { |
Edward O'Callaghan | 2e4dea6 | 2014-05-12 05:02:58 +1000 | [diff] [blame] | 28 | ite_reg_write(dev, 0xEF, 0x7E); |
Wang Qing Pei | 6d7c1fc | 2010-08-15 11:37:41 +0000 | [diff] [blame] | 29 | } |