mb/google/rauru: Implement regulator interface
[coreboot2.git] / src / mainboard / intel / d945gclf / early_init.c
blob458ec777cd093d7732a0a08d026d9c9e9f68e807
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <bootblock_common.h>
4 #include <superio/smsc/lpc47m15x/lpc47m15x.h>
5 #include <northbridge/intel/i945/i945.h>
6 #include <southbridge/intel/i82801gx/i82801gx.h>
8 #define SERIAL_DEV PNP_DEV(0x2e, LPC47M15X_SP1)
9 #define PME_DEV PNP_DEV(0x2e, LPC47M15X_PME)
11 void mainboard_late_rcba_config(void)
13 /* dev irq route register */
14 RCBA16(D31IR) = 0x0132;
15 RCBA16(D30IR) = 0x0146;
16 RCBA16(D29IR) = 0x0237;
17 RCBA16(D28IR) = 0x3201;
18 RCBA16(D27IR) = 0x0146;
20 /* Disable unused devices */
21 RCBA32(FD) |= FD_INTLAN;
24 void bootblock_mainboard_early_init(void)
26 /* Enable SuperIO PM */
27 lpc47m15x_enable_serial(PME_DEV, 0x680);
28 lpc47m15x_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); /* 0x3f8 */