From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Subject: [PATCH 4/9] ARM: socfpga: clkmgr: bypass debug root clock
Date: Thu, 8 Jan 2015 12:46:19 +0100 [thread overview]
Message-ID: <1420717584-15766-5-git-send-email-s.trumtrar@pengutronix.de> (raw)
In-Reply-To: <1420717584-15766-1-git-send-email-s.trumtrar@pengutronix.de>
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
arch/arm/mach-socfpga/clock-manager.c | 4 ++++
arch/arm/mach-socfpga/include/mach/clock-manager.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/arch/arm/mach-socfpga/clock-manager.c b/arch/arm/mach-socfpga/clock-manager.c
index 4cffb49f7cea..5196f08b09af 100644
--- a/arch/arm/mach-socfpga/clock-manager.c
+++ b/arch/arm/mach-socfpga/clock-manager.c
@@ -290,4 +290,8 @@ void socfpga_cm_basic_init(const struct socfpga_cm_config *cfg)
writel(~0, cm + CLKMGR_MAINPLLGRP_EN_ADDRESS);
writel(~0, cm + CLKMGR_PERPLLGRP_EN_ADDRESS);
writel(~0, cm + CLKMGR_SDRPLLGRP_EN_ADDRESS);
+
+ val = readl(cm + CLKMGR_DBCTRL_ADDRESS);
+ val |= CLKMGR_DBCTRL_STAYOSC1_MASK;
+ writel(val, cm + CLKMGR_DBCTRL_ADDRESS);
}
diff --git a/arch/arm/mach-socfpga/include/mach/clock-manager.h b/arch/arm/mach-socfpga/include/mach/clock-manager.h
index 649cf96ae846..45800de79a7a 100644
--- a/arch/arm/mach-socfpga/include/mach/clock-manager.h
+++ b/arch/arm/mach-socfpga/include/mach/clock-manager.h
@@ -102,6 +102,7 @@ void socfpga_cm_basic_init(const struct socfpga_cm_config *cfg);
#define CLKMGR_ALTERAGRP_MPUCLK 0xe0
#define CLKMGR_ALTERAGRP_MAINCLK 0xe4
+#define CLKMGR_DBCTRL_STAYOSC1_MASK 0x00000001
#define CLKMGR_MAINPLLGRP_EN_S2FUSER0CLK_MASK 0x00000200
#define CLKMGR_MAINPLLGRP_EN_DBGTIMERCLK_MASK 0x00000080
#define CLKMGR_MAINPLLGRP_EN_DBGTRACECLK_MASK 0x00000040
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-01-08 11:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 11:46 [PATCH 0/9] Socfpga: Sequencer updates Steffen Trumtrar
2015-01-08 11:46 ` [PATCH 1/9] ARM: sockit: Define inst_rom_init static Steffen Trumtrar
2015-01-08 11:46 ` [PATCH 2/9] ARM: socfpga: avoid using external regulator for PLL Steffen Trumtrar
2015-01-08 11:46 ` [PATCH 3/9] ARM: socfpga: clkmgr: set alteragrp clocks Steffen Trumtrar
2015-01-08 11:46 ` Steffen Trumtrar [this message]
2015-01-08 11:46 ` [PATCH 5/9] ARM: socfpga: clock-manager: set mainnandsdmmcclk Steffen Trumtrar
2015-01-08 11:46 ` [PATCH 6/9] scripts: socfpga sequencer extraction tool Steffen Trumtrar
2015-01-08 11:46 ` [PATCH 7/9] ARM: boards: socfpga new mem calibration function Steffen Trumtrar
2015-01-08 11:46 ` [PATCH 8/9] ARM: socfpga: Import sequencer code from generated uboot Steffen Trumtrar
2015-01-08 11:46 ` [PATCH 9/9] ARM: socfpga: cleanup sequencer warnings Steffen Trumtrar
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=1420717584-15766-5-git-send-email-s.trumtrar@pengutronix.de \
--to=s.trumtrar@pengutronix.de \
--cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox