[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v6 1/5] i.MX: Fix i.MX31 default/reset configuration.
From: |
Jean-Christophe Dubois |
Subject: |
[Qemu-arm] [PATCH v6 1/5] i.MX: Fix i.MX31 default/reset configuration. |
Date: |
Mon, 7 Dec 2015 23:53:26 +0100 |
Linux on i.MX31/KZM is expecting the CCM to use the CKIH ref clock instead
of the CKIL plus the FPM multiplier.
We change the CCMR reg reset value to match linux expected config.
This allow the CCM to provide a 39MHz clk (as expected by linux) instead of
the actual 50MHz.
With this change the "sleep 60" command on linux is time accurate with
"real world time".
Signed-off-by: Jean-Christophe Dubois <address@hidden>
Reviewed-by: Peter Crosthwaite <address@hidden>
---
Changes since v1:
* Not present
Changes since v2:
* Not present
Changes since v3:
* Not present
Changes since v4:
* Not present
Changes since v4:
* No change
hw/misc/imx_ccm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/misc/imx_ccm.c b/hw/misc/imx_ccm.c
index 4cc2bbc..500dda5 100644
--- a/hw/misc/imx_ccm.c
+++ b/hw/misc/imx_ccm.c
@@ -123,7 +123,7 @@ static void imx_ccm_reset(DeviceState *dev)
{
IMXCCMState *s = IMX_CCM(dev);
- s->ccmr = 0x074b0b7b;
+ s->ccmr = 0x074b0b7d;
s->pdr0 = 0xff870b48;
s->pdr1 = 0x49fcfe7f;
s->mpctl = PLL_PD(1) | PLL_MFD(0) | PLL_MFI(6) | PLL_MFN(0);
--
2.5.0
- [Qemu-arm] [PATCH v6 0/5] Add an i.MX25 specific CCM driver, Jean-Christophe Dubois, 2015/12/07
- [Qemu-arm] [PATCH v6 2/5] i.MX: rename i.MX CCM get_clock() function and CLK ID enum names, Jean-Christophe Dubois, 2015/12/07
- [Qemu-arm] [PATCH v6 1/5] i.MX: Fix i.MX31 default/reset configuration.,
Jean-Christophe Dubois <=
- [Qemu-arm] [PATCH v6 3/5] i.MX: Split the CCM class into an abstact base class and a concrete class., Jean-Christophe Dubois, 2015/12/07
- [Qemu-arm] [PATCH v6 4/5] i.MX: Add an i.MX25 specific CCM class/instance., Jean-Christophe Dubois, 2015/12/07
- [Qemu-arm] [PATCH v6 5/5] i.MX: move i.MX31 CCM object to register array., Jean-Christophe Dubois, 2015/12/07
- Re: [Qemu-arm] [PATCH v6 0/5] Add an i.MX25 specific CCM driver, Peter Maydell, 2015/12/17