mainboard/amd/padmelon: Use pci_or_config32()
Change-Id: I8d55fc93f6ec413d0cbcea2f8e0a90a76f1803cd Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63970 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@tutanota.com>
This commit is contained in:
parent
14c49e3646
commit
c9b219804b
|
@ -13,11 +13,9 @@
|
||||||
/* Enable IO access to port, then enable UART HW control pins */
|
/* Enable IO access to port, then enable UART HW control pins */
|
||||||
static void enable_serial(unsigned int base_port, unsigned int io_enable)
|
static void enable_serial(unsigned int base_port, unsigned int io_enable)
|
||||||
{
|
{
|
||||||
u32 temp;
|
|
||||||
u8 reg;
|
u8 reg;
|
||||||
temp = pci_read_config32(SOC_LPC_DEV, LPC_IO_PORT_DECODE_ENABLE);
|
|
||||||
temp |= io_enable;
|
pci_or_config32(SOC_LPC_DEV, LPC_IO_PORT_DECODE_ENABLE, io_enable);
|
||||||
pci_write_config32(SOC_LPC_DEV, LPC_IO_PORT_DECODE_ENABLE, temp);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove this section if HW handshake is not needed. This is needed
|
* Remove this section if HW handshake is not needed. This is needed
|
||||||
|
|
|
@ -72,11 +72,8 @@ struct fintek_fan system_fan = {
|
||||||
|
|
||||||
static void init_fan_control(void *unused)
|
static void init_fan_control(void *unused)
|
||||||
{
|
{
|
||||||
u32 temp;
|
|
||||||
/* Open a LPC IO access to 0x0220-0x0227 */
|
/* Open a LPC IO access to 0x0220-0x0227 */
|
||||||
temp = pci_read_config32(SOC_LPC_DEV, LPC_IO_PORT_DECODE_ENABLE);
|
pci_or_config32(SOC_LPC_DEV, LPC_IO_PORT_DECODE_ENABLE, DECODE_ENABLE_SERIAL_PORT2);
|
||||||
temp |= DECODE_ENABLE_SERIAL_PORT2;
|
|
||||||
pci_write_config32(SOC_LPC_DEV, LPC_IO_PORT_DECODE_ENABLE, temp);
|
|
||||||
|
|
||||||
set_fan(&cpu_fan);
|
set_fan(&cpu_fan);
|
||||||
set_fan(&system_fan);
|
set_fan(&system_fan);
|
||||||
|
|
Loading…
Reference in New Issue