coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_init.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <bootblock_common.h>
7 
8 #define SERIAL_DEV PNP_DEV(0x2e, LPC47M15X_SP1)
9 #define PME_DEV PNP_DEV(0x2e, LPC47M15X_PME)
10 
12 {
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;
19 
20  /* Disable unused devices */
21  RCBA32(FD) |= FD_INTLAN;
22 }
23 
25 {
26  /* Enable SuperIO PM */
28  lpc47m15x_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); /* 0x3f8 */
29 }
#define FD_INTLAN
Definition: i82801gx.h:248
void bootblock_mainboard_early_init(void)
Definition: early_init.c:11
void mainboard_late_rcba_config(void)
Definition: early_init.c:6
#define PME_DEV
Definition: early_init.c:9
#define SERIAL_DEV
Definition: early_init.c:8
void lpc47m15x_enable_serial(pnp_devfn_t dev, u16 iobase)
Definition: early_serial.c:24
#define D31IR
Definition: rcba.h:87
#define D30IR
Definition: rcba.h:88
#define D28IR
Definition: rcba.h:90
#define D29IR
Definition: rcba.h:89
#define FD
Definition: rcba.h:125
#define D27IR
Definition: rcba.h:91
#define RCBA16(x)
Definition: rcba.h:13
#define RCBA32(x)
Definition: rcba.h:14