diff options
author | Renaud Barbier <renaud.barbier@ge.com> | 2013-11-13 18:05:33 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-18 10:50:56 +0100 |
commit | 0e2308643c5b4322a175a5ce86457b1b0461cd23 (patch) | |
tree | 5594254903a67c762aa75d98cb084b0220dfe3b4 | |
parent | fbe83cfe502396b3b3e5aac32ee3f5d3d9a4ab67 (diff) | |
download | barebox-0e2308643c5b4322a175a5ce86457b1b0461cd23.tar.gz barebox-0e2308643c5b4322a175a5ce86457b1b0461cd23.tar.xz |
ppc: mpc85xx: add fsl,mpic node frequency property
The clock frequency property of the device tree node fsl,mpic is
added as it is needed by the PCI driver to function in newer
Linux version.
Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/ppc/mach-mpc85xx/fdt.c | 5 | ||||
-rw-r--r-- | arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/ppc/mach-mpc85xx/fdt.c b/arch/ppc/mach-mpc85xx/fdt.c index fd919a56e7..b1da144415 100644 --- a/arch/ppc/mach-mpc85xx/fdt.c +++ b/arch/ppc/mach-mpc85xx/fdt.c @@ -132,6 +132,11 @@ static int fdt_cpu_setup(struct device_node *blob, void *unused) node = of_find_compatible_node(node, NULL, "ns16550"); } + node = of_find_compatible_node(blob, NULL, "fsl,mpic"); + if (node) + of_property_write_u32(node, "clock-frequency", + sysinfo.freqSystemBus); + fdt_stdout_setup(blob); return 0; diff --git a/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h b/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h index ff3a31291c..d5a9c9704c 100644 --- a/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h +++ b/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h @@ -158,5 +158,8 @@ #define I2C1_BASE_ADDR (CFG_IMMR + 0x3000) #define I2C2_BASE_ADDR (CFG_IMMR + 0x3100) +/* Global Timer Registers */ +#define MPC8xxx_PIC_TFRR_OFFSET 0x10F0 + #define PCI1_BASE_ADDR (CFG_IMMR + MPC85xx_PCI1_OFFSET) #endif /*__IMMAP_85xx__*/ |