summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/include/mach/at91_sck.h
diff options
context:
space:
mode:
authorAndre Renaud <andre@designa-electronics.com>2016-05-05 07:28:05 -0600
committerAndreas Bießmann <andreas@biessmann.org>2016-06-12 23:49:38 +0200
commit909584665546ec51c54ac7d362f91fdabaef2cc2 (patch)
tree48297855305f980bdd41bfef29111e8d3c0bea28 /arch/arm/mach-at91/include/mach/at91_sck.h
parent152ac5fabf05daf6b0ae28f04d540b1e005c3ea1 (diff)
downloadblackbird-obmc-uboot-909584665546ec51c54ac7d362f91fdabaef2cc2.tar.gz
blackbird-obmc-uboot-909584665546ec51c54ac7d362f91fdabaef2cc2.zip
at91: Add support for the AT91 slow clock controller
This is available on AT91SAM9G45. Add the peripheral address and flag definitions. Signed-off-by: Andre Renaud <andre@designa-electronics.com> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
Diffstat (limited to 'arch/arm/mach-at91/include/mach/at91_sck.h')
-rw-r--r--arch/arm/mach-at91/include/mach/at91_sck.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/at91_sck.h b/arch/arm/mach-at91/include/mach/at91_sck.h
new file mode 100644
index 0000000000..ce8e577c33
--- /dev/null
+++ b/arch/arm/mach-at91/include/mach/at91_sck.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (C) 2016 Google, Inc
+ * Written by Simon Glass <sjg@chromium.org>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef AT91_SCK_H
+#define AT91_SCK_H
+
+/*
+ * SCKCR flags
+ */
+#define AT91SAM9G45_SCKCR_RCEN (1 << 0) /* RC Oscillator Enable */
+#define AT91SAM9G45_SCKCR_OSC32EN (1 << 1) /* 32kHz Oscillator Enable */
+#define AT91SAM9G45_SCKCR_OSC32BYP (1 << 2) /* 32kHz Oscillator Bypass */
+#define AT91SAM9G45_SCKCR_OSCSEL (1 << 3) /* Slow Clock Selector */
+#define AT91SAM9G45_SCKCR_OSCSEL_RC (0 << 3)
+#define AT91SAM9G45_SCKCR_OSCSEL_32 (1 << 3)
+
+#endif
OpenPOWER on IntegriCloud