coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hudson.c File Reference
#include <amdblocks/acpimmio.h>
#include <console/console.h>
#include <device/mmio.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include "hudson.h"
#include "imc.h"
#include "smbus.h"
#include "smi.h"
Include dependency graph for hudson.c:

Go to the source code of this file.

Macros

#define PM_REG_USB_ENABLE   0xef
 

Enumerations

enum  usb_enable {
  USB_EN_DEVFN_12_0 = (1 << 0) , USB_EN_DEVFN_12_2 = (1 << 1) , USB_EN_DEVFN_13_0 = (1 << 2) , USB_EN_DEVFN_13_2 = (1 << 3) ,
  USB_EN_DEVFN_16_0 = (1 << 4) , USB_EN_DEVFN_16_2 = (1 << 5)
}
 

Functions

static void hudson_disable_usb (u8 disable)
 
void hudson_enable (struct device *dev)
 
static void hudson_init_acpi_ports (void)
 
static void hudson_init (void *chip_info)
 
static void hudson_final (void *chip_info)
 

Variables

struct chip_operations southbridge_amd_agesa_hudson_ops
 

Macro Definition Documentation

◆ PM_REG_USB_ENABLE

#define PM_REG_USB_ENABLE   0xef

Definition at line 16 of file hudson.c.

Enumeration Type Documentation

◆ usb_enable

enum usb_enable
Enumerator
USB_EN_DEVFN_12_0 
USB_EN_DEVFN_12_2 
USB_EN_DEVFN_13_0 
USB_EN_DEVFN_13_2 
USB_EN_DEVFN_16_0 
USB_EN_DEVFN_16_2 

Definition at line 18 of file hudson.c.

Function Documentation

◆ hudson_disable_usb()

static void hudson_disable_usb ( u8  disable)
static

Definition at line 27 of file hudson.c.

References pm_read8(), PM_REG_USB_ENABLE, and pm_write8().

Referenced by hudson_enable().

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

◆ hudson_enable()

◆ hudson_final()

static void hudson_final ( void chip_info)
static

Definition at line 138 of file hudson.c.

References CONFIG, and enable_imc_thermal_zone().

Here is the call graph for this function:

◆ hudson_init()

static void hudson_init ( void chip_info)
static

Definition at line 133 of file hudson.c.

References hudson_init_acpi_ports().

Here is the call graph for this function:

◆ hudson_init_acpi_ports()

static void hudson_init_acpi_ports ( void  )
static

Definition at line 107 of file hudson.c.

References ACPI_CPU_CONTROL, ACPI_GPE0_BLK, ACPI_PM1_CNT_BLK, ACPI_PM_EVT_BLK, ACPI_PM_TMR_BLK, ACPI_SMI_CTL_PORT, CONFIG, hudson_enable_acpi_cmd_smi(), pm_write16(), and pm_write8().

Referenced by hudson_init().

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

Variable Documentation

◆ southbridge_amd_agesa_hudson_ops

struct chip_operations southbridge_amd_agesa_hudson_ops
Initial value:
= {
.enable_dev = hudson_enable,
.init = hudson_init,
.final = hudson_final
}
void hudson_enable(struct device *dev)
Definition: hudson.c:39
static void hudson_init(void *chip_info)
Definition: hudson.c:133
static void hudson_final(void *chip_info)
Definition: hudson.c:138

Definition at line 138 of file hudson.c.