northbridge/via/vx900: transition away from device_t
Replace the use of the old device_t definition inside northbridge/via/vx900. Change-Id: I04292a6b698a42a5c582eddcef7cf5a235e1a464 Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/17317 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
a34e70e002
commit
823f7bb962
|
@ -76,7 +76,7 @@ u8 smbus_read_byte(u32 smbus_dev, u8 addr, u8 offset)
|
||||||
|
|
||||||
void enable_smbus(void)
|
void enable_smbus(void)
|
||||||
{
|
{
|
||||||
device_t dev;
|
pci_devfn_t dev;
|
||||||
u8 reg8;
|
u8 reg8;
|
||||||
u32 smbus_dev = (u32) SMBUS_IO_BASE;
|
u32 smbus_dev = (u32) SMBUS_IO_BASE;
|
||||||
|
|
||||||
|
|
|
@ -1627,7 +1627,7 @@ void vx900_init_dram_ddr3(const dimm_layout * dimm_addr)
|
||||||
dimm_info dimm_prop;
|
dimm_info dimm_prop;
|
||||||
ramctr_timing ctrl_prop;
|
ramctr_timing ctrl_prop;
|
||||||
rank_layout ranks;
|
rank_layout ranks;
|
||||||
device_t mcu;
|
pci_devfn_t mcu;
|
||||||
|
|
||||||
if (!ram_check_noprint_nodie(1 << 20, 1 << 20)) {
|
if (!ram_check_noprint_nodie(1 << 20, 1 << 20)) {
|
||||||
printram("RAM is already initialized. Skipping init\n");
|
printram("RAM is already initialized. Skipping init\n");
|
||||||
|
|
|
@ -41,6 +41,16 @@ uint64_t get_uma_memory_base(void);
|
||||||
|
|
||||||
/* We use these throughout the code. They really belong in a generic part of
|
/* We use these throughout the code. They really belong in a generic part of
|
||||||
* coreboot, but until bureaucracy gets them there, we still need them */
|
* coreboot, but until bureaucracy gets them there, we still need them */
|
||||||
|
|
||||||
|
#ifdef __SIMPLE_DEVICE__
|
||||||
|
void dump_pci_device(pci_devfn_t dev);
|
||||||
|
void pci_mod_config8(pci_devfn_t dev, unsigned int where,
|
||||||
|
uint8_t clr_mask, uint8_t set_mask);
|
||||||
|
void pci_mod_config16(pci_devfn_t dev, unsigned int where,
|
||||||
|
uint16_t clr_mask, uint16_t set_mask);
|
||||||
|
void pci_mod_config32(pci_devfn_t dev, unsigned int where,
|
||||||
|
uint32_t clr_mask, uint32_t set_mask);
|
||||||
|
#else
|
||||||
void dump_pci_device(device_t dev);
|
void dump_pci_device(device_t dev);
|
||||||
void pci_mod_config8(device_t dev, unsigned int where,
|
void pci_mod_config8(device_t dev, unsigned int where,
|
||||||
uint8_t clr_mask, uint8_t set_mask);
|
uint8_t clr_mask, uint8_t set_mask);
|
||||||
|
@ -48,5 +58,6 @@ void pci_mod_config16(device_t dev, unsigned int where,
|
||||||
uint16_t clr_mask, uint16_t set_mask);
|
uint16_t clr_mask, uint16_t set_mask);
|
||||||
void pci_mod_config32(device_t dev, unsigned int where,
|
void pci_mod_config32(device_t dev, unsigned int where,
|
||||||
uint32_t clr_mask, uint32_t set_mask);
|
uint32_t clr_mask, uint32_t set_mask);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __VX900_H */
|
#endif /* __VX900_H */
|
||||||
|
|
Loading…
Reference in New Issue