blob: 915e10b7d3b30126cc2aebc334ee4a8f7a860ce6 [file] [log] [blame]
Stefan Reinauer61be08b2006-08-29 17:41:14 +00001/*
Stefan Reinauer7e61e452008-01-18 10:35:56 +00002 * This file is part of the coreboot project.
Uwe Hermanna4c56c32006-11-01 14:31:00 +00003 *
Edward O'Callaghan2e4dea62014-05-12 05:02:58 +10004 * Copyright (C) 2014 Edward O'Callaghan <eocallaghan@alterapraxis.com>
Stefan Reinauer61be08b2006-08-29 17:41:14 +00005 *
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 Reinauer61be08b2006-08-29 17:41:14 +000015 */
16
Stefan Reinauer24d1d4b2013-03-21 11:51:41 -070017#include <arch/io.h>
Edward O'Callaghan2e4dea62014-05-12 05:02:58 +100018#include <superio/ite/common/ite.h>
Stefan Reinauer61be08b2006-08-29 17:41:14 +000019#include "it8718f.h"
20
Uwe Hermann5c6bae22010-11-08 15:16:30 +000021/*
22 * GIGABYTE uses a special Super I/O register to protect its Dual BIOS
Wang Qing Pei6d7c1fc2010-08-15 11:37:41 +000023 * mechanism. It lives in the GPIO LDN. However, register 0xEF is not
Uwe Hermann5c6bae22010-11-08 15:16:30 +000024 * mentioned in the IT8718F datasheet so just hardcode it to 0x7E for now.
Wang Qing Pei6d7c1fc2010-08-15 11:37:41 +000025 */
Edward O'Callaghan85836c22014-07-09 20:26:25 +100026void it8718f_disable_reboot(pnp_devfn_t dev)
Wang Qing Pei6d7c1fc2010-08-15 11:37:41 +000027{
Edward O'Callaghan2e4dea62014-05-12 05:02:58 +100028 ite_reg_write(dev, 0xEF, 0x7E);
Wang Qing Pei6d7c1fc2010-08-15 11:37:41 +000029}