soc/intel: Remove blank lines before '}' and after '{'
[coreboot2.git] / src / mainboard / acer / g43t-am3 / early_init.c
blobb34ab4651b45a7809123e7cf4f639f367e774f84
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <bootblock_common.h>
4 #include <southbridge/intel/i82801jx/i82801jx.h>
5 #include <northbridge/intel/x4x/x4x.h>
6 #include <superio/ite/common/ite.h>
7 #include <superio/ite/it8720f/it8720f.h>
9 #define GPIO_DEV PNP_DEV(0x2e, IT8720F_GPIO)
11 void bootblock_mainboard_early_init(void)
13 /* Set up GPIOs on Super I/O. */
14 ite_reg_write(GPIO_DEV, 0x25, 0x00); // GPIO set 1
15 ite_reg_write(GPIO_DEV, 0x26, 0x0c); // GPIO set 2
16 ite_reg_write(GPIO_DEV, 0x27, 0x70); // GPIO set 3
17 ite_reg_write(GPIO_DEV, 0x28, 0x40); // GPIO set 4
18 ite_reg_write(GPIO_DEV, 0x29, 0x00); // GPIO set 5
20 /* Enable 3VSB during Suspend-to-RAM */
21 ite_enable_3vsbsw(GPIO_DEV);
23 /* Delay PWROK2 after 3VSBSW# during resume from Suspend-to-RAM */
24 ite_delay_pwrgd3(GPIO_DEV);
27 void mb_get_spd_map(u8 spd_map[4])
29 spd_map[0] = 0x50;
30 spd_map[1] = 0x51;
31 spd_map[2] = 0x52;
32 spd_map[3] = 0x53;