Debian Codegraph @

src/mainboard/intel/d945gclf/early_init.c

raw symbols SCIP
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 }