pcengines/apu1: enable use of clkreq pins

only enable pcie gpp clocks when the corresponding clkreq pin is asserted

Change-Id: I7822d011bb94867d470c0194e6b652833c395cb2
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: http://review.coreboot.org/12353
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Felix Held 2015-11-06 18:32:43 +01:00 committed by Stefan Reinauer
parent b06015b92e
commit df95b51ab6
1 changed files with 3 additions and 3 deletions

View File

@ -187,10 +187,10 @@ static void mainboard_enable(device_t dev)
u8 *misc_mem_clk_cntrl = (u8 *)(ACPI_MMIO_BASE + MISC_BASE); u8 *misc_mem_clk_cntrl = (u8 *)(ACPI_MMIO_BASE + MISC_BASE);
/* GPP CLK0-2 are connected to the 3 ethernet chips /* GPP CLK0-2 are connected to the 3 ethernet chips
* GPP CLK3-4 are connected to the miniPCIe slots */ * GPP CLK3-4 are connected to the miniPCIe slots */
write8(misc_mem_clk_cntrl + 0, 0xFF); write8(misc_mem_clk_cntrl + 0, 0x21);
write8(misc_mem_clk_cntrl + 1, 0xFF); write8(misc_mem_clk_cntrl + 1, 0x43);
/* GPP CLK5 is only connected to test pads -> disable */ /* GPP CLK5 is only connected to test pads -> disable */
write8(misc_mem_clk_cntrl + 2, 0x0F); write8(misc_mem_clk_cntrl + 2, 0x05);
/* disable unconnected GPP CLK6-8 and SLT_GFX_CLK */ /* disable unconnected GPP CLK6-8 and SLT_GFX_CLK */
write8(misc_mem_clk_cntrl + 3, 0x00); write8(misc_mem_clk_cntrl + 3, 0x00);
write8(misc_mem_clk_cntrl + 4, 0x00); write8(misc_mem_clk_cntrl + 4, 0x00);