Commit 9851ca57 authored by Daniel Tang's avatar Daniel Tang Committed by Arnd Bergmann
Browse files

arm: Add Initial TI-Nspire support



This patch adds support for the TI-Nspire platform.

Changes between v1 and v2:
* Added GENERIC_IRQ_CHIP to platform Kconfig

Signed-off-by: default avatarDaniel Tang <dt.tangr@gmail.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent d907849e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -964,6 +964,8 @@ source "arch/arm/mach-netx/Kconfig"

source "arch/arm/mach-nomadik/Kconfig"

source "arch/arm/mach-nspire/Kconfig"

source "arch/arm/plat-omap/Kconfig"

source "arch/arm/mach-omap1/Kconfig"
+16 −0
Original line number Diff line number Diff line
@@ -309,6 +309,20 @@ choice
		  Say Y here if you want kernel low-level debugging support
		  on MVEBU based platforms.

	config DEBUG_NSPIRE_CLASSIC_UART
		bool "Kernel low-level debugging via TI-NSPIRE 8250 UART"
		depends on ARCH_NSPIRE
		help
		  Say Y here if you want kernel low-level debugging support
		  on TI-NSPIRE classic models.

	config DEBUG_NSPIRE_CX_UART
		bool "Kernel low-level debugging via TI-NSPIRE PL011 UART"
		depends on ARCH_NSPIRE
		help
		  Say Y here if you want kernel low-level debugging support
		  on TI-NSPIRE CX models.

	config DEBUG_NOMADIK_UART
		bool "Kernel low-level debugging messages via NOMADIK UART"
		depends on ARCH_NOMADIK
@@ -633,6 +647,8 @@ config DEBUG_LL_INCLUDE
				 DEBUG_IMX53_UART ||\
				 DEBUG_IMX6Q_UART
	default "debug/mvebu.S" if DEBUG_MVEBU_UART
	default "debug/nspire.S" if 	DEBUG_NSPIRE_CX_UART || \
					DEBUG_NSPIRE_CLASSIC_UART
	default "debug/mxs.S" if DEBUG_IMX23_UART || DEBUG_IMX28_UART
	default "debug/nomadik.S" if DEBUG_NOMADIK_UART
	default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
+1 −0
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ machine-$(CONFIG_ARCH_MXS) += mxs
machine-$(CONFIG_ARCH_MVEBU)		+= mvebu
machine-$(CONFIG_ARCH_NETX)		+= netx
machine-$(CONFIG_ARCH_NOMADIK)		+= nomadik
machine-$(CONFIG_ARCH_NSPIRE)		+= nspire
machine-$(CONFIG_ARCH_OMAP1)		+= omap1
machine-$(CONFIG_ARCH_OMAP2PLUS)	+= omap2
machine-$(CONFIG_ARCH_ORION5X)		+= orion5x
+28 −0
Original line number Diff line number Diff line
/*
 *	linux/arch/arm/include/debug/nspire.S
 *
 *	Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
 *
 * 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.
 *
 */

#define NSPIRE_EARLY_UART_PHYS_BASE	   0x90020000
#define NSPIRE_EARLY_UART_VIRT_BASE	   0xfee20000

.macro	addruart, rp, rv, tmp
	ldr \rp, =(NSPIRE_EARLY_UART_PHYS_BASE)		@ physical base address
	ldr \rv, =(NSPIRE_EARLY_UART_VIRT_BASE)		@ virtual base address
.endm


#ifdef CONFIG_DEBUG_NSPIRE_CX_UART
#include <asm/hardware/debug-pl01x.S>
#endif

#ifdef CONFIG_DEBUG_NSPIRE_CLASSIC_UART
#define UART_SHIFT 2
#include <asm/hardware/debug-8250.S>
#endif
+16 −0
Original line number Diff line number Diff line
config ARCH_NSPIRE
	bool "TI-NSPIRE based"
	depends on ARCH_MULTI_V4_V5
	depends on MMU
	select CPU_ARM926T
	select COMMON_CLK
	select GENERIC_CLOCKEVENTS
	select GENERIC_IRQ_CHIP
	select SPARSE_IRQ
	select ARM_AMBA
	select ARM_VIC
	select ARM_TIMER_SP804
	select USE_OF
	select CLKSRC_OF
	help
	  This enables support for systems using the TI-NSPIRE CPU
Loading