U8500: adds basic SoC support for U8500 CPU
Subsystems (5)
PATCH 4/8 U8500: adds basic SoC support for U8500 CPU
From: srinidhi kasagar <[email protected]>
This adds the cpu specific changes which
includes memory map of U8500, GIC interrupt
mapping, MutiTimerUnit (MTU) as system timer
(with clocksource, clockevent support) and
other supportive header files.
Signed-off-by srinidhi kasagar <[email protected]>
Acked-by Andrea Gallo <[email protected]>
Reviewed-by Alessandro Rubini <[email protected]>
Reviewed-by Linus Walleij <[email protected]>
---
.../{mach-footbridge => mach-ux500}/Makefile.boot | 0
arch/arm/mach-ux500/cpu-u8500.c | 78 ++++++++++
.../include/mach/clkdev.h | 0
arch/arm/mach-ux500/include/mach/debug-macro.S | 22 +++
arch/arm/mach-ux500/include/mach/entry-macro.S | 80 ++++++++++
arch/arm/mach-ux500/include/mach/hardware.h | 129 ++++++++++++++++
arch/arm/mach-ux500/include/mach/io.h | 22 +++
arch/arm/mach-ux500/include/mach/irqs.h | 71 +++++++++
arch/arm/mach-ux500/include/mach/memory.h | 18 ++
arch/arm/mach-ux500/include/mach/mtu.h | 53 +++++++
arch/arm/mach-ux500/include/mach/setup.h | 22 +++
arch/arm/mach-ux500/include/mach/smp.h | 29 ++++
arch/arm/mach-ux500/include/mach/system.h | 25 +++
arch/arm/mach-ux500/include/mach/timex.h | 6 +
arch/arm/mach-ux500/include/mach/uncompress.h | 58 +++++++
arch/arm/mach-ux500/include/mach/vmalloc.h | 18 ++
arch/arm/mach-ux500/timer.c | 163 ++++++++++++++++++++
17 files changed, 794 insertions(+), 0 deletions(-)
copy arch/arm/{mach-footbridge => mach-ux500}/Makefile.boot (100%)
create mode 100644 arch/arm/mach-ux500/cpu-u8500.c
copy arch/arm/{mach-ep93xx => mach-ux500}/include/mach/clkdev.h (100%)
create mode 100644 arch/arm/mach-ux500/include/mach/debug-macro.S
create mode 100644 arch/arm/mach-ux500/include/mach/entry-macro.S
create mode 100644 arch/arm/mach-ux500/include/mach/hardware.h
create mode 100644 arch/arm/mach-ux500/include/mach/io.h
create mode 100644 arch/arm/mach-ux500/include/mach/irqs.h
create mode 100644 arch/arm/mach-ux500/include/mach/memory.h
create mode 100644 arch/arm/mach-ux500/include/mach/mtu.h
create mode 100644 arch/arm/mach-ux500/include/mach/setup.h
create mode 100644 arch/arm/mach-ux500/include/mach/smp.h
create mode 100644 arch/arm/mach-ux500/include/mach/system.h
create mode 100644 arch/arm/mach-ux500/include/mach/timex.h
create mode 100644 arch/arm/mach-ux500/include/mach/uncompress.h
create mode 100644 arch/arm/mach-ux500/include/mach/vmalloc.h
create mode 100644 arch/arm/mach-ux500/timer.carch/arm/mach-ux500/Makefile.boot renamed from arch/arm/mach-footbridge/Makefile.boot +0 -0
arch/arm/mach-ux500/cpu-u8500.c new file +78 -0
78 lines not on this page · raw message
arch/arm/mach-ux500/include/mach/clkdev.h renamed from arch/arm/mach-ep93xx/include/mach/clkdev.h +0 -0
arch/arm/mach-ux500/include/mach/debug-macro.S new file +22 -0
@@ -0,0 +1,22 @@ +/* arch/arm/mach-u8500/include/mach/debug-macro.S + * + * Debugging macro include header + * + * 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 <linux/amba/serial.h> + .macro addruart,rx + mrc p15, 0, \rx, c1, c0 + tst \rx, #1 @MMU enabled? + moveq \rx, #0x80007000 @MMU off, Physical address + movne \rx, #0xF0007000 @MMU on, Virtual address + .endm + +#include <asm/hardware/debug-pl01x.S>
arch/arm/mach-ux500/include/mach/entry-macro.S new file +80 -0
80 lines not on this page · raw message
arch/arm/mach-ux500/include/mach/hardware.h new file +129 -0
129 lines not on this page · raw message
arch/arm/mach-ux500/include/mach/io.h new file +22 -0
@@ -0,0 +1,22 @@ +/* +* arch/arm/mach-u8500/include/mach/io.h +* +* Copyright (C) 1997-1999 Russell King +* +* Modifications: +* 06-12-1997 RMK Created. +* 07-04-1999 RMK Major cleanup +*/ +#ifndef __ASM_ARM_ARCH_IO_H +#define __ASM_ARM_ARCH_IO_H + +#define IO_SPACE_LIMIT 0xffffffff + +/* +* We don't actually have real ISA nor PCI buses, but there is so many +* drivers out there that might just work if we fake them... +*/ +#define __io (a) __typesafe_io(a) +#define __mem_pci (a) (a) + +#endif
arch/arm/mach-ux500/include/mach/irqs.h new file +71 -0
71 lines not on this page · raw message
arch/arm/mach-ux500/include/mach/memory.h new file +18 -0
@@ -0,0 +1,18 @@ +/* +* Copyright (C) 2009 ST-Ericsson +* +* 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. +*/ +#ifndef __ASM_ARCH_MEMORY_H +#define __ASM_ARCH_MEMORY_H + +/* +* Physical DRAM offset. +*/ +#define PHYS_OFFSET UL(0x00000000) +#define BUS_OFFSET UL(0x00000000) + +#endif
arch/arm/mach-ux500/include/mach/mtu.h new file +53 -0
53 lines not on this page · raw message
arch/arm/mach-ux500/include/mach/setup.h new file +22 -0
@@ -0,0 +1,22 @@ +/* +* Copyright (C) 2009 ST-Ericsson. +* +* 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. +* +* These symbols are needed for board-specific files to call their +* own cpu-specific files +*/ +#ifndef __ASM_ARCH_SETUP_H +#define __ASM_ARCH_SETUP_H + +#include <asm/mach/time.h> +#include <linux/init.h> + +extern void u8500_map_io (void ); +extern void u8500_init_devices (void ); +extern void u8500_init_irq (void ); +extern struct sys_timer u8500_timer; + +#endif /* __ASM_ARCH_SETUP_H */
arch/arm/mach-ux500/include/mach/smp.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* This file is based ARM realview platform. +* Copyright (C) ARM Limited. +* +* This file is licensed under 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. +*/ +#ifndef ASMARM_ARCH_SMP_H +#define ASMARM_ARCH_SMP_H + +#include <asm/hardware/gic.h> + +#define hard_smp_processor_id () \ + ({ \ + unsigned int cpunum; \ + __asm__("mrc p15, 0, %0, c0, c0, 5" \ + : "=r" (cpunum)); \ + cpunum &= 0x0F; \ + }) + +/* +* We use IRQ1 as the IPI +*/ +static inline void smp_cross_call (const struct cpumask *mask) +{ +gic_raise_softirq (mask,1 ); +} +#endif
arch/arm/mach-ux500/include/mach/system.h new file +25 -0
@@ -0,0 +1,25 @@ +/* +* Copyright (C) 2009 ST-Ericsson. +* +* This file is licensed under 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. +*/ +#ifndef __ASM_ARCH_SYSTEM_H +#define __ASM_ARCH_SYSTEM_H + +static inline void arch_idle (void ) +{ +/* +* This should do all the clock switching +* and wait for interrupt tricks +*/ +cpu_do_idle (); +} + +static inline void arch_reset (char mode,const char *cmd) +{ +/* yet to be implemented - TODO */ +} + +#endif
arch/arm/mach-ux500/include/mach/timex.h new file +6 -0
@@ -0,0 +1,6 @@ +#ifndef __ASM_ARCH_TIMEX_H +#define __ASM_ARCH_TIMEX_H + +#define CLOCK_TICK_RATE 110000000 + +#endif
arch/arm/mach-ux500/include/mach/uncompress.h new file +58 -0
58 lines not on this page · raw message
arch/arm/mach-ux500/include/mach/vmalloc.h new file +18 -0
@@ -0,0 +1,18 @@ +/* +* Copyright (C) 2009 ST-Ericsson +* +* 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. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ +#define VMALLOC_END 0xf0000000
arch/arm/mach-ux500/timer.c new file +163 -0
163 lines not on this page · raw message
Signature · 1 line
1.6.3.GIT