summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm2835/include/mach/debug-macro.S
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-09-20 17:10:51 -0700
committerOlof Johansson <olof@lixom.net>2012-09-20 17:10:51 -0700
commit3aec092eed5d8d2b19a62b0aeed3acea9471099a (patch)
treeeb63293fc01612d28474464ec98ac082d208027b /arch/arm/mach-bcm2835/include/mach/debug-macro.S
parentaa817b2e68af8753bb95777255e22164610342c7 (diff)
parentf680f25c635a1a4327bef34fcbe1e9e3777b546c (diff)
Merge tag 'rpi-for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-rpi into next/soc
ARM: add basic BCM2835 SoC and Raspberry Pi board support The BCM2835 is an ARM SoC from Broadcom. This patch adds very basic support for this SoC; enough to boot the system into an initrd with UART console, interrupt controller, timers, and a stub clock driver. Also provided is a similarly basic device tree for the Raspberry Pi Model B board. This series was written by Simon Arlott, Chris Boot, and Dom Cobley downstream, with reference to a Broadcom tree, and modified for upstream and submitted by Stephen Warren. * tag 'rpi-for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-rpi: MAINTAINERS: add an entry for the BCM2835 ARM sub-architecture ARM: bcm2835: instantiate console UART ARM: bcm2835: add stub clock driver ARM: bcm2835: add system timer ARM: bcm2835: add interrupt controller driver ARM: add infra-structure for BCM2835 and Raspberry Pi
Diffstat (limited to 'arch/arm/mach-bcm2835/include/mach/debug-macro.S')
-rw-r--r--arch/arm/mach-bcm2835/include/mach/debug-macro.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm2835/include/mach/debug-macro.S b/arch/arm/mach-bcm2835/include/mach/debug-macro.S
new file mode 100644
index 000000000000..8a161e44ae28
--- /dev/null
+++ b/arch/arm/mach-bcm2835/include/mach/debug-macro.S
@@ -0,0 +1,21 @@
+/*
+ * Debugging macro include header
+ *
+ * Copyright (C) 2010 Broadcom
+ * Copyright (C) 1994-1999 Russell King
+ * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+#include <mach/bcm2835_soc.h>
+
+ .macro addruart, rp, rv, tmp
+ ldr \rp, =BCM2835_DEBUG_PHYS
+ ldr \rv, =BCM2835_DEBUG_VIRT
+ .endm
+
+#include <asm/hardware/debug-pl01x.S>