mb/kontron: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Iac341f592acd777fe9ba22cfbca19d4cbdb4916e Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26103 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
070b2d97e5
commit
f65f297eff
|
@ -151,7 +151,7 @@ static void hwm_setup(void)
|
||||||
/* mainboard_enable is executed as first thing after */
|
/* mainboard_enable is executed as first thing after */
|
||||||
/* enumerate_buses(). */
|
/* enumerate_buses(). */
|
||||||
|
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 3);
|
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 3);
|
||||||
hwm_setup();
|
hwm_setup();
|
||||||
|
|
|
@ -57,7 +57,7 @@ static u32 get_bus_conf_done = 0;
|
||||||
void get_bus_conf(void)
|
void get_bus_conf(void)
|
||||||
{
|
{
|
||||||
u32 apicid_base;
|
u32 apicid_base;
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (get_bus_conf_done == 1)
|
if (get_bus_conf_done == 1)
|
||||||
|
|
|
@ -115,7 +115,7 @@ static void set_thermal_config(void)
|
||||||
{
|
{
|
||||||
u8 byte;
|
u8 byte;
|
||||||
u16 word;
|
u16 word;
|
||||||
device_t sm_dev;
|
struct device *sm_dev;
|
||||||
|
|
||||||
/* set ADT 7461 */
|
/* set ADT 7461 */
|
||||||
ADT7461_write_byte(0x0B, 0x50); /* Local Temperature Hight limit */
|
ADT7461_write_byte(0x0B, 0x50); /* Local Temperature Hight limit */
|
||||||
|
@ -176,7 +176,7 @@ static void set_thermal_config(void)
|
||||||
* enable the dedicated function in dbm690t board.
|
* enable the dedicated function in dbm690t board.
|
||||||
* This function called early than rs690_enable.
|
* This function called early than rs690_enable.
|
||||||
*************************************************/
|
*************************************************/
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard KT690 Enable. dev=0x%p\n", dev);
|
printk(BIOS_INFO, "Mainboard KT690 Enable. dev=0x%p\n", dev);
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ static void *smp_write_config_table(void *v)
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
u32 dword;
|
u32 dword;
|
||||||
u8 byte;
|
u8 byte;
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ static int int15_handler(void)
|
||||||
/* mainboard_enable is executed as first thing after */
|
/* mainboard_enable is executed as first thing after */
|
||||||
/* enumerate_buses(). */
|
/* enumerate_buses(). */
|
||||||
|
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
#if IS_ENABLED(CONFIG_PCI_OPTION_ROM_RUN_YABEL) || \
|
#if IS_ENABLED(CONFIG_PCI_OPTION_ROM_RUN_YABEL) || \
|
||||||
IS_ENABLED(CONFIG_PCI_OPTION_ROM_RUN_REALMODE)
|
IS_ENABLED(CONFIG_PCI_OPTION_ROM_RUN_REALMODE)
|
||||||
|
@ -172,7 +172,7 @@ static void mainboard_enable(device_t dev)
|
||||||
|
|
||||||
unsigned disable = 0;
|
unsigned disable = 0;
|
||||||
if ((get_option(&disable, "ethernet1") == CB_SUCCESS) && disable) {
|
if ((get_option(&disable, "ethernet1") == CB_SUCCESS) && disable) {
|
||||||
device_t nic = dev_find_slot(0, PCI_DEVFN(0x1c, 2));
|
struct device *nic = dev_find_slot(0, PCI_DEVFN(0x1c, 2));
|
||||||
if (nic) {
|
if (nic) {
|
||||||
printk(BIOS_DEBUG, "DISABLE FIRST NIC!\n");
|
printk(BIOS_DEBUG, "DISABLE FIRST NIC!\n");
|
||||||
nic->enabled = 0;
|
nic->enabled = 0;
|
||||||
|
@ -180,7 +180,7 @@ static void mainboard_enable(device_t dev)
|
||||||
}
|
}
|
||||||
disable = 0;
|
disable = 0;
|
||||||
if ((get_option(&disable, "ethernet2") == CB_SUCCESS) && disable) {
|
if ((get_option(&disable, "ethernet2") == CB_SUCCESS) && disable) {
|
||||||
device_t nic = dev_find_slot(0, PCI_DEVFN(0x1c, 3));
|
struct device *nic = dev_find_slot(0, PCI_DEVFN(0x1c, 3));
|
||||||
if (nic) {
|
if (nic) {
|
||||||
printk(BIOS_DEBUG, "DISABLE SECOND NIC!\n");
|
printk(BIOS_DEBUG, "DISABLE SECOND NIC!\n");
|
||||||
nic->enabled = 0;
|
nic->enabled = 0;
|
||||||
|
|
Loading…
Reference in New Issue