summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm283x/include/mach/core.h
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-12-19 19:34:01 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-04 09:38:12 +0100
commit295d6763bf8e44fa453633791c77cd919bccdcab (patch)
treeb740e952ca55ba7cac9aed72d46c4c0a29262926 /arch/arm/mach-bcm283x/include/mach/core.h
parent9bdfe1ff7fa7f96d5889a3a35e1067d9698b6a94 (diff)
downloadbarebox-295d6763bf8e44fa453633791c77cd919bccdcab.tar.gz
barebox-295d6763bf8e44fa453633791c77cd919bccdcab.tar.xz
bcm2835: introduce mach-bcm283x
This patch changes the most part of mach-bcm2835 to mach-bcm283x. This prepares to add RPi2 support which is a bcm2836. This patch changes the Kconfig entry namens to BCM283X for drivers only. These drivers should working the same in bcm2836. While updating defconfig I added LED support/trigger option. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-bcm283x/include/mach/core.h')
-rw-r--r--arch/arm/mach-bcm283x/include/mach/core.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm283x/include/mach/core.h b/arch/arm/mach-bcm283x/include/mach/core.h
new file mode 100644
index 0000000000..b0bed80ea0
--- /dev/null
+++ b/arch/arm/mach-bcm283x/include/mach/core.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2009 Carlo Caione <carlo@carlocaione.org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef __BCM2835_CORE_H__
+#define __BCM2835_CORE_H__
+
+#include <mach/platform.h>
+
+void bcm2835_register_uart(void);
+void bcm2835_add_device_sdram(u32 size);
+
+static void inline bcm2835_register_mci(void)
+{
+ add_generic_device("bcm2835_mci", 0, NULL, BCM2835_EMMC_BASE, 0xFC,
+ IORESOURCE_MEM, NULL);
+}
+
+static void inline bcm2835_register_fb(void)
+{
+ add_generic_device("bcm2835_fb", 0, NULL, 0, 0, 0, NULL);
+}
+
+#endif