diff options
author | Andy Fleming <afleming@freescale.com> | 2008-06-10 18:49:34 -0500 |
---|---|---|
committer | Andrew Fleming-AFLEMING <afleming@freescale.com> | 2008-06-10 18:49:34 -0500 |
commit | e1eb0e25d9d8fd8efdfb93f670a417663f386022 (patch) | |
tree | deeb23f734f9d3ecd51a2a5e99347f51de8399de /board | |
parent | a75a57ef6e4b613c81434971e96ed70cf9ec9ba0 (diff) | |
download | u-boot-imx-e1eb0e25d9d8fd8efdfb93f670a417663f386022.zip u-boot-imx-e1eb0e25d9d8fd8efdfb93f670a417663f386022.tar.gz u-boot-imx-e1eb0e25d9d8fd8efdfb93f670a417663f386022.tar.bz2 |
socrates: Fix PCI clk fix patch
The submitted patch seems to have been more up-to-date, but an older patch was
already in the repository. This patch encompasses the differences
Taken entirely from Sergei Poselenov <sposelenov@emcraft.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/socrates/socrates.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c index 15c6478..3c1e826 100644 --- a/board/socrates/socrates.c +++ b/board/socrates/socrates.c @@ -35,6 +35,7 @@ #include <flash.h> #include <libfdt.h> #include <fdt_support.h> +#include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; @@ -58,7 +59,8 @@ int checkboard (void) putc('\n'); #ifdef CONFIG_PCI - if (gur->porpllsr & (1<<15)) { + /* Check the PCI_clk sel bit */ + if (in_be32(&gur->porpllsr) & (1<<15)) { src = "SYSCLK"; f = CONFIG_SYS_CLK_FREQ; } else { |