Victor Rodriguez wrote:
Basic support for Hawkboard OMAPL138 just UART cominication is included
Signed-off-by: Victor Rodriguez <[email protected]>
Notes: This patch is checked with 0a50e05b20f3c6af67656303bdb3661a2541ce03 from
Kernel development tree for TI DaVinci family of processors
This patch works with basic da8xx_omapl_defconfig, it just have
basic support
for UART console
---
arch/arm/mach-davinci/Kconfig | 9 +++
arch/arm/mach-davinci/Makefile | 1 +
arch/arm/mach-davinci/board-da850-hawk.c | 69 +++++++++++++++++++++++
arch/arm/mach-davinci/include/mach/uncompress.h | 1 +
4 files changed, 80 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/mach-davinci/board-da850-hawk.c
diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
index 2bf03e9..fd8a11c 100644
--- a/arch/arm/mach-davinci/Kconfig
+++ b/arch/arm/mach-davinci/Kconfig
@@ -185,6 +185,15 @@ config MACH_TNETV107X
help
Say Y here to select the TI TNETV107X Evaluation Module.
+config MACH_OMAPL138_HAWKBOARD
+ bool "TI DA850/OMAP-L138/AM18xx Hawkboard(.org) Platform"
+ default ARCH_DAVINCI_DA850
Only EVM boards are enabled by default.
+ depends on ARCH_DAVINCI_DA850
+ help
+ Say Y here to select the TI DA850/OMAP-L138/AM18xx Hawkboard.
+ Information of this board may be found at
+ http://www.hawkboard.org/
+
config DAVINCI_MUX
bool "DAVINCI multiplexing support"
depends on ARCH_DAVINCI
[...]
diff --git a/arch/arm/mach-davinci/board-da850-hawk.c
b/arch/arm/mach-davinci/board-da850-hawk.c
new file mode 100644
index 0000000..e34bcbb
--- /dev/null
+++ b/arch/arm/mach-davinci/board-da850-hawk.c
@@ -0,0 +1,69 @@
+/*
+ * Hawkboar.org based on TI's OMAP-L138 Platform
Hawkboard.org?
+ *
+ * Initial code: Syed Mohammed Khasim
+ *
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * Derived from: arch/arm/mach-davinci/board-da850-evm.c
+ * Original Copyrights follow:
+ *
+ * 2007, 2009 (c) MontaVista Software, Inc. This file is licensed under
MV didn't write any code in board-da850-evm.c, so the original copyright
is wrong.
+ * the terms of the GNU General Public License version 2. This program
+ * is licensed "as is" without any warranty of any kind, whether express
+ * or implied.
+ */
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/console.h>
+#include <linux/gpio.h>
+
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+
+#include <mach/cp_intc.h>
+#include <mach/da8xx.h>
+
+
+
Too many empty lines?
+static struct davinci_uart_config omapl138_hawk_uart_config __initdata = {
+ .enabled_uarts = 0x7,
Why enable URARTs 0 and 1 if you shut down them below?
+};
+
+static __init void omapl138_hawk_init(void)
+{
+
+ davinci_serial_init(&omapl138_hawk_uart_config);
+
+ /*
+ * shut down uart 0 and 1; they are not used on the board and
+ * accessing them causes endless "too much work in irq53" messages
+ * with arago fs
+ */
+ __raw_writel(0, IO_ADDRESS(DA8XX_UART1_BASE) + 0x30);
+ __raw_writel(0, IO_ADDRESS(DA8XX_UART0_BASE) + 0x30);
+
+}
WBR, Sergei
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source