coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hudson.h File Reference
#include <device/device.h>
#include <types.h>
Include dependency graph for hudson.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BIOSRAM_INDEX   0xcd4
 
#define BIOSRAM_DATA   0xcd5
 
#define PM_INDEX   0xcd6
 
#define PM_DATA   0xcd7
 
#define PM2_INDEX   0xcd0
 
#define PM2_DATA   0xcd1
 
#define HUDSON_ACPI_IO_BASE   0x800
 
#define ACPI_PM_EVT_BLK   (HUDSON_ACPI_IO_BASE + 0x00) /* 4 bytes */
 
#define ACPI_PM1_CNT_BLK   (HUDSON_ACPI_IO_BASE + 0x04) /* 2 bytes */
 
#define ACPI_PM_TMR_BLK   (HUDSON_ACPI_IO_BASE + 0x18) /* 4 bytes */
 
#define ACPI_GPE0_BLK   (HUDSON_ACPI_IO_BASE + 0x10) /* 8 bytes */
 
#define ACPI_CPU_CONTROL   (HUDSON_ACPI_IO_BASE + 0x08) /* 6 bytes */
 
#define ACPI_SMI_CTL_PORT   0xb2
 
#define ACPI_SMI_CMD_CST_CONTROL   0xde
 
#define ACPI_SMI_CMD_PST_CONTROL   0xad
 
#define ACPI_SMI_CMD_DISABLE   0xbe
 
#define ACPI_SMI_CMD_ENABLE   0xef
 
#define ACPI_SMI_CMD_S4_REQ   0xc0
 
#define REV_HUDSON_A11   0x11
 
#define REV_HUDSON_A12   0x12
 
#define LPC_IO_PORT_DECODE_ENABLE   0x44
 
#define DECODE_ENABLE_PARALLEL_PORT0   BIT(0)
 
#define DECODE_ENABLE_PARALLEL_PORT1   BIT(1)
 
#define DECODE_ENABLE_PARALLEL_PORT2   BIT(2)
 
#define DECODE_ENABLE_PARALLEL_PORT3   BIT(3)
 
#define DECODE_ENABLE_PARALLEL_PORT4   BIT(4)
 
#define DECODE_ENABLE_PARALLEL_PORT5   BIT(5)
 
#define DECODE_ENABLE_SERIAL_PORT0   BIT(6)
 
#define DECODE_ENABLE_SERIAL_PORT1   BIT(7)
 
#define DECODE_ENABLE_SERIAL_PORT2   BIT(8)
 
#define DECODE_ENABLE_SERIAL_PORT3   BIT(9)
 
#define DECODE_ENABLE_SERIAL_PORT4   BIT(10)
 
#define DECODE_ENABLE_SERIAL_PORT5   BIT(11)
 
#define DECODE_ENABLE_SERIAL_PORT6   BIT(12)
 
#define DECODE_ENABLE_SERIAL_PORT7   BIT(13)
 
#define DECODE_ENABLE_AUDIO_PORT0   BIT(14)
 
#define DECODE_ENABLE_AUDIO_PORT1   BIT(15)
 
#define DECODE_ENABLE_AUDIO_PORT2   BIT(16)
 
#define DECODE_ENABLE_AUDIO_PORT3   BIT(17)
 
#define DECODE_ENABLE_MIDI_PORT0   BIT(18)
 
#define DECODE_ENABLE_MIDI_PORT1   BIT(19)
 
#define DECODE_ENABLE_MIDI_PORT2   BIT(20)
 
#define DECODE_ENABLE_MIDI_PORT3   BIT(21)
 
#define DECODE_ENABLE_MSS_PORT0   BIT(22)
 
#define DECODE_ENABLE_MSS_PORT1   BIT(23)
 
#define DECODE_ENABLE_MSS_PORT2   BIT(24)
 
#define DECODE_ENABLE_MSS_PORT3   BIT(25)
 
#define DECODE_ENABLE_FDC_PORT0   BIT(26)
 
#define DECODE_ENABLE_FDC_PORT1   BIT(27)
 
#define DECODE_ENABLE_GAME_PORT   BIT(28)
 
#define DECODE_ENABLE_KBC_PORT   BIT(29)
 
#define DECODE_ENABLE_ACPIUC_PORT   BIT(30)
 
#define DECODE_ENABLE_ADLIB_PORT   BIT(31)
 
#define LPC_IO_OR_MEM_DECODE_ENABLE   0x48
 
#define LPC_TRUSTED_PLATFORM_MODULE   0x7c
 
#define TPM_12_EN   BIT(0)
 
#define TPM_LEGACY_EN   BIT(2)
 
#define SPIROM_BASE_ADDRESS_REGISTER   0xA0
 
#define SPI_ROM_ENABLE   0x02
 
#define SPI_BASE_ADDRESS   0xFEC10000
 

Functions

static int hudson_sata_enable (void)
 
static int hudson_ide_enable (void)
 
void hudson_lpc_port80 (void)
 
void hudson_pci_port80 (void)
 
void hudson_lpc_decode (void)
 
void hudson_clk_output_48Mhz (void)
 
void hudson_enable (struct device *dev)
 

Macro Definition Documentation

◆ ACPI_CPU_CONTROL

#define ACPI_CPU_CONTROL   (HUDSON_ACPI_IO_BASE + 0x08) /* 6 bytes */

Definition at line 23 of file hudson.h.

◆ ACPI_GPE0_BLK

#define ACPI_GPE0_BLK   (HUDSON_ACPI_IO_BASE + 0x10) /* 8 bytes */

Definition at line 22 of file hudson.h.

◆ ACPI_PM1_CNT_BLK

#define ACPI_PM1_CNT_BLK   (HUDSON_ACPI_IO_BASE + 0x04) /* 2 bytes */

Definition at line 20 of file hudson.h.

◆ ACPI_PM_EVT_BLK

#define ACPI_PM_EVT_BLK   (HUDSON_ACPI_IO_BASE + 0x00) /* 4 bytes */

Definition at line 19 of file hudson.h.

◆ ACPI_PM_TMR_BLK

#define ACPI_PM_TMR_BLK   (HUDSON_ACPI_IO_BASE + 0x18) /* 4 bytes */

Definition at line 21 of file hudson.h.

◆ ACPI_SMI_CMD_CST_CONTROL

#define ACPI_SMI_CMD_CST_CONTROL   0xde

Definition at line 26 of file hudson.h.

◆ ACPI_SMI_CMD_DISABLE

#define ACPI_SMI_CMD_DISABLE   0xbe

Definition at line 28 of file hudson.h.

◆ ACPI_SMI_CMD_ENABLE

#define ACPI_SMI_CMD_ENABLE   0xef

Definition at line 29 of file hudson.h.

◆ ACPI_SMI_CMD_PST_CONTROL

#define ACPI_SMI_CMD_PST_CONTROL   0xad

Definition at line 27 of file hudson.h.

◆ ACPI_SMI_CMD_S4_REQ

#define ACPI_SMI_CMD_S4_REQ   0xc0

Definition at line 30 of file hudson.h.

◆ ACPI_SMI_CTL_PORT

#define ACPI_SMI_CTL_PORT   0xb2

Definition at line 25 of file hudson.h.

◆ BIOSRAM_DATA

#define BIOSRAM_DATA   0xcd5

Definition at line 11 of file hudson.h.

◆ BIOSRAM_INDEX

#define BIOSRAM_INDEX   0xcd4

Definition at line 10 of file hudson.h.

◆ DECODE_ENABLE_ACPIUC_PORT

#define DECODE_ENABLE_ACPIUC_PORT   BIT(30)

Definition at line 66 of file hudson.h.

◆ DECODE_ENABLE_ADLIB_PORT

#define DECODE_ENABLE_ADLIB_PORT   BIT(31)

Definition at line 67 of file hudson.h.

◆ DECODE_ENABLE_AUDIO_PORT0

#define DECODE_ENABLE_AUDIO_PORT0   BIT(14)

Definition at line 50 of file hudson.h.

◆ DECODE_ENABLE_AUDIO_PORT1

#define DECODE_ENABLE_AUDIO_PORT1   BIT(15)

Definition at line 51 of file hudson.h.

◆ DECODE_ENABLE_AUDIO_PORT2

#define DECODE_ENABLE_AUDIO_PORT2   BIT(16)

Definition at line 52 of file hudson.h.

◆ DECODE_ENABLE_AUDIO_PORT3

#define DECODE_ENABLE_AUDIO_PORT3   BIT(17)

Definition at line 53 of file hudson.h.

◆ DECODE_ENABLE_FDC_PORT0

#define DECODE_ENABLE_FDC_PORT0   BIT(26)

Definition at line 62 of file hudson.h.

◆ DECODE_ENABLE_FDC_PORT1

#define DECODE_ENABLE_FDC_PORT1   BIT(27)

Definition at line 63 of file hudson.h.

◆ DECODE_ENABLE_GAME_PORT

#define DECODE_ENABLE_GAME_PORT   BIT(28)

Definition at line 64 of file hudson.h.

◆ DECODE_ENABLE_KBC_PORT

#define DECODE_ENABLE_KBC_PORT   BIT(29)

Definition at line 65 of file hudson.h.

◆ DECODE_ENABLE_MIDI_PORT0

#define DECODE_ENABLE_MIDI_PORT0   BIT(18)

Definition at line 54 of file hudson.h.

◆ DECODE_ENABLE_MIDI_PORT1

#define DECODE_ENABLE_MIDI_PORT1   BIT(19)

Definition at line 55 of file hudson.h.

◆ DECODE_ENABLE_MIDI_PORT2

#define DECODE_ENABLE_MIDI_PORT2   BIT(20)

Definition at line 56 of file hudson.h.

◆ DECODE_ENABLE_MIDI_PORT3

#define DECODE_ENABLE_MIDI_PORT3   BIT(21)

Definition at line 57 of file hudson.h.

◆ DECODE_ENABLE_MSS_PORT0

#define DECODE_ENABLE_MSS_PORT0   BIT(22)

Definition at line 58 of file hudson.h.

◆ DECODE_ENABLE_MSS_PORT1

#define DECODE_ENABLE_MSS_PORT1   BIT(23)

Definition at line 59 of file hudson.h.

◆ DECODE_ENABLE_MSS_PORT2

#define DECODE_ENABLE_MSS_PORT2   BIT(24)

Definition at line 60 of file hudson.h.

◆ DECODE_ENABLE_MSS_PORT3

#define DECODE_ENABLE_MSS_PORT3   BIT(25)

Definition at line 61 of file hudson.h.

◆ DECODE_ENABLE_PARALLEL_PORT0

#define DECODE_ENABLE_PARALLEL_PORT0   BIT(0)

Definition at line 36 of file hudson.h.

◆ DECODE_ENABLE_PARALLEL_PORT1

#define DECODE_ENABLE_PARALLEL_PORT1   BIT(1)

Definition at line 37 of file hudson.h.

◆ DECODE_ENABLE_PARALLEL_PORT2

#define DECODE_ENABLE_PARALLEL_PORT2   BIT(2)

Definition at line 38 of file hudson.h.

◆ DECODE_ENABLE_PARALLEL_PORT3

#define DECODE_ENABLE_PARALLEL_PORT3   BIT(3)

Definition at line 39 of file hudson.h.

◆ DECODE_ENABLE_PARALLEL_PORT4

#define DECODE_ENABLE_PARALLEL_PORT4   BIT(4)

Definition at line 40 of file hudson.h.

◆ DECODE_ENABLE_PARALLEL_PORT5

#define DECODE_ENABLE_PARALLEL_PORT5   BIT(5)

Definition at line 41 of file hudson.h.

◆ DECODE_ENABLE_SERIAL_PORT0

#define DECODE_ENABLE_SERIAL_PORT0   BIT(6)

Definition at line 42 of file hudson.h.

◆ DECODE_ENABLE_SERIAL_PORT1

#define DECODE_ENABLE_SERIAL_PORT1   BIT(7)

Definition at line 43 of file hudson.h.

◆ DECODE_ENABLE_SERIAL_PORT2

#define DECODE_ENABLE_SERIAL_PORT2   BIT(8)

Definition at line 44 of file hudson.h.

◆ DECODE_ENABLE_SERIAL_PORT3

#define DECODE_ENABLE_SERIAL_PORT3   BIT(9)

Definition at line 45 of file hudson.h.

◆ DECODE_ENABLE_SERIAL_PORT4

#define DECODE_ENABLE_SERIAL_PORT4   BIT(10)

Definition at line 46 of file hudson.h.

◆ DECODE_ENABLE_SERIAL_PORT5

#define DECODE_ENABLE_SERIAL_PORT5   BIT(11)

Definition at line 47 of file hudson.h.

◆ DECODE_ENABLE_SERIAL_PORT6

#define DECODE_ENABLE_SERIAL_PORT6   BIT(12)

Definition at line 48 of file hudson.h.

◆ DECODE_ENABLE_SERIAL_PORT7

#define DECODE_ENABLE_SERIAL_PORT7   BIT(13)

Definition at line 49 of file hudson.h.

◆ HUDSON_ACPI_IO_BASE

#define HUDSON_ACPI_IO_BASE   0x800

Definition at line 17 of file hudson.h.

◆ LPC_IO_OR_MEM_DECODE_ENABLE

#define LPC_IO_OR_MEM_DECODE_ENABLE   0x48

Definition at line 69 of file hudson.h.

◆ LPC_IO_PORT_DECODE_ENABLE

#define LPC_IO_PORT_DECODE_ENABLE   0x44

Definition at line 35 of file hudson.h.

◆ LPC_TRUSTED_PLATFORM_MODULE

#define LPC_TRUSTED_PLATFORM_MODULE   0x7c

Definition at line 71 of file hudson.h.

◆ PM2_DATA

#define PM2_DATA   0xcd1

Definition at line 15 of file hudson.h.

◆ PM2_INDEX

#define PM2_INDEX   0xcd0

Definition at line 14 of file hudson.h.

◆ PM_DATA

#define PM_DATA   0xcd7

Definition at line 13 of file hudson.h.

◆ PM_INDEX

#define PM_INDEX   0xcd6

Definition at line 12 of file hudson.h.

◆ REV_HUDSON_A11

#define REV_HUDSON_A11   0x11

Definition at line 32 of file hudson.h.

◆ REV_HUDSON_A12

#define REV_HUDSON_A12   0x12

Definition at line 33 of file hudson.h.

◆ SPI_BASE_ADDRESS

#define SPI_BASE_ADDRESS   0xFEC10000

Definition at line 77 of file hudson.h.

◆ SPI_ROM_ENABLE

#define SPI_ROM_ENABLE   0x02

Definition at line 76 of file hudson.h.

◆ SPIROM_BASE_ADDRESS_REGISTER

#define SPIROM_BASE_ADDRESS_REGISTER   0xA0

Definition at line 75 of file hudson.h.

◆ TPM_12_EN

#define TPM_12_EN   BIT(0)

Definition at line 72 of file hudson.h.

◆ TPM_LEGACY_EN

#define TPM_LEGACY_EN   BIT(2)

Definition at line 73 of file hudson.h.

Function Documentation

◆ hudson_clk_output_48Mhz()

void hudson_clk_output_48Mhz ( void  )

Definition at line 179 of file early_setup.c.

References misc_read32(), and misc_write32().

Referenced by bootblock_mainboard_early_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hudson_enable()

void hudson_enable ( struct device dev)

Definition at line 39 of file hudson.c.

◆ hudson_ide_enable()

static int hudson_ide_enable ( void  )
inlinestatic

Definition at line 85 of file hudson.h.

Referenced by board_FCH_InitReset().

Here is the caller graph for this function:

◆ hudson_lpc_decode()

void hudson_lpc_decode ( void  )

Definition at line 68 of file early_setup.c.

◆ hudson_lpc_port80()

void hudson_lpc_port80 ( void  )

Definition at line 57 of file early_setup.c.

◆ hudson_pci_port80()

void hudson_pci_port80 ( void  )

Definition at line 12 of file early_setup.c.

◆ hudson_sata_enable()

static int hudson_sata_enable ( void  )
inlinestatic

Definition at line 79 of file hudson.h.

Referenced by board_FCH_InitReset().

Here is the caller graph for this function: