All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [PULL 20/23] hw/misc: imx6_ccm: Update PMU_MISC0 reset value
Date: Fri,  8 Jan 2021 15:36:18 +0000	[thread overview]
Message-ID: <20210108153621.3868-21-peter.maydell@linaro.org> (raw)
In-Reply-To: <20210108153621.3868-1-peter.maydell@linaro.org>

From: Bin Meng <bin.meng@windriver.com>

U-Boot expects PMU_MISC0 register bit 7 is set (see init_bandgap()
in arch/arm/mach-imx/mx6/soc.c) during boot. This bit indicates the
bandgap has stabilized.

With this change, the latest upstream U-Boot (v2021.01-rc3) for imx6
sabrelite board (mx6qsabrelite_defconfig), with a slight change made
by switching CONFIG_OF_SEPARATE to CONFIG_OF_EMBED, boots to U-Boot
shell on QEMU with the following command:

$ qemu-system-arm -M sabrelite -smp 4 -m 1G -kernel u-boot \
    -display none -serial null -serial stdio

Boot log below:

  U-Boot 2021.01-rc3 (Dec 12 2020 - 17:40:02 +0800)

  CPU:   Freescale i.MX?? rev1.0 at 792 MHz
  Reset cause: POR
  Model: Freescale i.MX6 Quad SABRE Lite Board
  Board: SABRE Lite
  I2C:   ready
  DRAM:  1 GiB
  force_idle_bus: sda=0 scl=0 sda.gp=0x5c scl.gp=0x55
  force_idle_bus: failed to clear bus, sda=0 scl=0
  force_idle_bus: sda=0 scl=0 sda.gp=0x6d scl.gp=0x6c
  force_idle_bus: failed to clear bus, sda=0 scl=0
  force_idle_bus: sda=0 scl=0 sda.gp=0xcb scl.gp=0x5
  force_idle_bus: failed to clear bus, sda=0 scl=0
  MMC:   FSL_SDHC: 0, FSL_SDHC: 1
  Loading Environment from MMC... *** Warning - No block device, using default environment

  In:    serial
  Out:   serial
  Err:   serial
  Net:   Board Net Initialization Failed
  No ethernet found.
  starting USB...
  Bus usb@2184000: usb dr_mode not found
  USB EHCI 1.00
  Bus usb@2184200: USB EHCI 1.00
  scanning bus usb@2184000 for devices... 1 USB Device(s) found
  scanning bus usb@2184200 for devices... 1 USB Device(s) found
         scanning usb for storage devices... 0 Storage Device(s) found
         scanning usb for ethernet devices... 0 Ethernet Device(s) found
  Hit any key to stop autoboot:  0
  =>

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20210106063504.10841-2-bmeng.cn@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 hw/misc/imx6_ccm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/misc/imx6_ccm.c b/hw/misc/imx6_ccm.c
index cb740427eca..7e031b67757 100644
--- a/hw/misc/imx6_ccm.c
+++ b/hw/misc/imx6_ccm.c
@@ -450,7 +450,7 @@ static void imx6_ccm_reset(DeviceState *dev)
     s->analog[PMU_REG_3P0] = 0x00000F74;
     s->analog[PMU_REG_2P5] = 0x00005071;
     s->analog[PMU_REG_CORE] = 0x00402010;
-    s->analog[PMU_MISC0] = 0x04000000;
+    s->analog[PMU_MISC0] = 0x04000080;
     s->analog[PMU_MISC1] = 0x00000000;
     s->analog[PMU_MISC2] = 0x00272727;
 
-- 
2.20.1



  parent reply	other threads:[~2021-01-08 15:57 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-08 15:35 [PULL 00/23] target-arm queue Peter Maydell
2021-01-08 15:35 ` [PULL 01/23] intc/arm_gic: Fix gic_irq_signaling_enabled() for vCPUs Peter Maydell
2021-01-08 15:36 ` [PULL 02/23] hw/arm/virt: Remove virt machine state 'smp_cpus' Peter Maydell
2021-01-08 15:36 ` [PULL 03/23] target/arm: Fix MTE0_ACTIVE Peter Maydell
2021-01-08 15:36 ` [PULL 04/23] hw/intc/armv7m_nvic: Correct handling of CCR.BFHFNMIGN Peter Maydell
2021-01-08 15:36 ` [PULL 05/23] target/arm: Correct store of FPSCR value via FPCXT_S Peter Maydell
2021-01-08 15:36 ` [PULL 06/23] target/arm: Implement FPCXT_NS fp system register Peter Maydell
2021-01-08 15:36 ` [PULL 07/23] target/arm: Implement Cortex-M55 model Peter Maydell
2021-01-08 15:36 ` [PULL 08/23] hw/arm/highbank: Drop dead KVM support code Peter Maydell
2021-01-08 15:36 ` [PULL 09/23] util/qemu-timer: Make timer_free() imply timer_del() Peter Maydell
2021-01-08 15:36 ` [PULL 10/23] scripts/coccinelle: New script to remove unnecessary timer_del() calls Peter Maydell
2021-01-08 15:36 ` [PULL 11/23] Remove superfluous " Peter Maydell
2021-01-08 15:36 ` [PULL 12/23] target/arm: Remove timer_del()/timer_deinit() before timer_free() Peter Maydell
2021-01-08 15:36 ` [PULL 13/23] digic-timer: Use ptimer_free() in the finalize function to avoid memleaks Peter Maydell
2021-01-08 15:36 ` [PULL 14/23] allwinner-a10-pit: " Peter Maydell
2021-01-08 15:36 ` [PULL 15/23] exynos4210_rtc: " Peter Maydell
2021-01-08 15:36 ` [PULL 16/23] exynos4210_pwm: " Peter Maydell
2021-01-08 15:36 ` [PULL 17/23] mss-timer: " Peter Maydell
2021-01-08 15:36 ` [PULL 18/23] musicpal: " Peter Maydell
2021-01-08 15:36 ` [PULL 19/23] exynos4210_mct: " Peter Maydell
2021-01-08 15:36 ` Peter Maydell [this message]
2021-01-08 15:36 ` [PULL 21/23] hw/msic: imx6_ccm: Correct register value for silicon type Peter Maydell
2021-01-08 15:36 ` [PULL 22/23] hw/arm: sabrelite: Connect the Ethernet PHY at address 6 Peter Maydell
2021-01-08 15:36 ` [PULL 23/23] docs/system: arm: Add sabrelite board description Peter Maydell
2021-01-08 17:49 ` [PULL 00/23] target-arm queue Peter Maydell
2021-01-10 19:08   ` 罗勇刚(Yonggang Luo)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210108153621.3868-21-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.