public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] ARM: bcm283x: Reorder timer.h
Date: Mon,  4 May 2015 22:54:35 +0200	[thread overview]
Message-ID: <1430772877-7301-2-git-send-email-marex@denx.de> (raw)
In-Reply-To: <1430772877-7301-1-git-send-email-marex@denx.de>

Reorder the timer.h file so it can be included from board config file.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Tyler Baker <tyler.baker@linaro.org>
---
 arch/arm/mach-bcm283x/include/mach/timer.h | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-bcm283x/include/mach/timer.h b/arch/arm/mach-bcm283x/include/mach/timer.h
index fc7aec7..004c24b 100644
--- a/arch/arm/mach-bcm283x/include/mach/timer.h
+++ b/arch/arm/mach-bcm283x/include/mach/timer.h
@@ -13,6 +13,14 @@
 #define BCM2835_TIMER_PHYSADDR	0x20003000
 #endif
 
+#define BCM2835_TIMER_CS_M3	(1 << 3)
+#define BCM2835_TIMER_CS_M2	(1 << 2)
+#define BCM2835_TIMER_CS_M1	(1 << 1)
+#define BCM2835_TIMER_CS_M0	(1 << 0)
+
+#ifndef __ASSEMBLY__
+#include <linux/types.h>
+
 struct bcm2835_timer_regs {
 	u32 cs;
 	u32 clo;
@@ -23,11 +31,8 @@ struct bcm2835_timer_regs {
 	u32 c3;
 };
 
-#define BCM2835_TIMER_CS_M3	(1 << 3)
-#define BCM2835_TIMER_CS_M2	(1 << 2)
-#define BCM2835_TIMER_CS_M1	(1 << 1)
-#define BCM2835_TIMER_CS_M0	(1 << 0)
-
 extern ulong get_timer_us(ulong base);
 
 #endif
+
+#endif
-- 
2.1.4

  reply	other threads:[~2015-05-04 20:54 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04 20:54 [U-Boot] [PATCH 1/4] ARM: bcm283x: Repair wdog.h Marek Vasut
2015-05-04 20:54 ` Marek Vasut [this message]
2015-05-28 13:25   ` [U-Boot] [U-Boot,2/4] ARM: bcm283x: Reorder timer.h Tom Rini
2015-05-04 20:54 ` [U-Boot] [PATCH 3/4] ARM: mmc: bcm283x: Remove get_timer_us() from mmc driver Marek Vasut
2015-05-05  9:40   ` Pantelis Antoniou
2015-06-16  3:44   ` Stephen Warren
2015-06-17 10:44     ` Marek Vasut
2015-06-17 16:13       ` Jakub Kiciński
2015-06-18 12:35         ` Marek Vasut
2015-06-18 12:51           ` Jakub Kiciński
2015-06-19 21:39             ` Marek Vasut
2015-06-18  1:55       ` Stephen Warren
2015-05-04 20:54 ` [U-Boot] [PATCH 4/4] ARM: bcm283x: Switch to generic timer Marek Vasut
2015-05-05 21:46   ` Stephen Warren
2015-05-05 22:17     ` Marek Vasut
2015-05-05 22:37       ` Stephen Warren
2015-05-05 22:42         ` Marek Vasut
2015-05-05 22:57           ` Stephen Warren
2015-05-05 23:37             ` Marek Vasut
2015-05-06 15:52               ` Stephen Warren
2015-05-06 18:13                 ` Marek Vasut
2015-05-06 19:51                   ` Tyler Baker
2015-05-08 16:06                     ` Stephen Warren
2015-05-08 16:23                       ` Marek Vasut
2015-05-08 16:03                   ` Stephen Warren
2015-05-08 16:31                     ` Marek Vasut
2015-05-08 16:40                       ` Stephen Warren
2015-05-08 18:20                         ` Marek Vasut
2015-05-28 13:25   ` [U-Boot] [U-Boot,4/4] " Tom Rini
2015-05-28 13:25 ` [U-Boot] [U-Boot,1/4] ARM: bcm283x: Repair wdog.h Tom Rini

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=1430772877-7301-2-git-send-email-marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /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