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
>
4
#include <
superio/smsc/lpc47m15x/lpc47m15x.h
>
5
#include <
northbridge/intel/i945/i945.h
>
6
#include <
southbridge/intel/i82801gx/i82801gx.h
>
7
8
#define SERIAL_DEV PNP_DEV(0x2e, LPC47M15X_SP1)
9
#define PME_DEV PNP_DEV(0x2e, LPC47M15X_PME)
10
11
void
mainboard_late_rcba_config
(
void
)
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
24
void
bootblock_mainboard_early_init
(
void
)
25
{
26
/* Enable SuperIO PM */
27
lpc47m15x_enable_serial
(
PME_DEV
, 0x680);
28
lpc47m15x_enable_serial
(
SERIAL_DEV
, CONFIG_TTYS0_BASE);
/* 0x3f8 */
29
}
bootblock_common.h
i82801gx.h
FD_INTLAN
#define FD_INTLAN
Definition:
i82801gx.h:248
i945.h
lpc47m15x.h
bootblock_mainboard_early_init
void bootblock_mainboard_early_init(void)
Definition:
early_init.c:11
mainboard_late_rcba_config
void mainboard_late_rcba_config(void)
Definition:
early_init.c:6
PME_DEV
#define PME_DEV
Definition:
early_init.c:9
SERIAL_DEV
#define SERIAL_DEV
Definition:
early_init.c:8
lpc47m15x_enable_serial
void lpc47m15x_enable_serial(pnp_devfn_t dev, u16 iobase)
Definition:
early_serial.c:24
D31IR
#define D31IR
Definition:
rcba.h:87
D30IR
#define D30IR
Definition:
rcba.h:88
D28IR
#define D28IR
Definition:
rcba.h:90
D29IR
#define D29IR
Definition:
rcba.h:89
FD
#define FD
Definition:
rcba.h:125
D27IR
#define D27IR
Definition:
rcba.h:91
RCBA16
#define RCBA16(x)
Definition:
rcba.h:13
RCBA32
#define RCBA32(x)
Definition:
rcba.h:14
src
mainboard
intel
d945gclf
early_init.c
Generated by
1.9.1