blob: f2c2f0163beaa5fc707c4a1418467871bc4a64ed [file] [log] [blame]
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <bootblock_common.h>
#include <delay.h>
#include "board.h"
void bootblock_mainboard_init(void)
{
gpio_output(GPIO_LED_ENABLE, 0);
udelay(2);
gpio_set(GPIO_LED_ENABLE, 1);
mdelay(2);
gpio_input_irq(GPIO_H1_AP_INT, IRQ_TYPE_RISING_EDGE, GPIO_PULL_UP);
}