aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-01-12 12:06:31 -0500
committerOlof Johansson <olof@lixom.net>2013-01-12 12:09:34 -0500
commit2fd73eb62bcf28ee1f1afa47b9e7cf88494d0da1 (patch)
tree92aff19ea90cf4e95f4e9748c2a6db98ab0149af
parent61301332484966cb4e92041221bb185b6cd4d4ed (diff)
parentce3f386fdf10d79eaf6ebd63bb7adbd95f08f9f0 (diff)
Merge tag 'vt8500-multiplatform-3.9' of git://server.prisktech.co.nz/git/linuxwmt into next/multiplatform
From Tony Prisk: Convert arch-vt8500 to multiplatform only. * tag 'vt8500-multiplatform-3.9' of git://server.prisktech.co.nz/git/linuxwmt: arm: vt8500: Remove remaining mach includes arm: vt8500: Convert debug-macro.S to be multiplatform friendly arm: vt8500: Remove single platform Kconfig options Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm/Kconfig16
-rw-r--r--arch/arm/Kconfig.debug8
-rw-r--r--arch/arm/include/debug/vt8500.S (renamed from arch/arm/mach-vt8500/include/mach/debug-macro.S)24
-rw-r--r--arch/arm/mach-vt8500/Kconfig11
-rw-r--r--arch/arm/mach-vt8500/include/mach/timex.h26
-rw-r--r--arch/arm/mach-vt8500/include/mach/uncompress.h37
6 files changed, 31 insertions, 91 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a1f8868becc6..7a0c31a6669e 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -956,22 +956,6 @@ config ARCH_OMAP1
956 help 956 help
957 Support for older TI OMAP1 (omap7xx, omap15xx or omap16xx) 957 Support for older TI OMAP1 (omap7xx, omap15xx or omap16xx)
958 958
959config ARCH_VT8500_SINGLE
960 bool "VIA/WonderMedia 85xx"
961 select ARCH_HAS_CPUFREQ
962 select ARCH_REQUIRE_GPIOLIB
963 select CLKDEV_LOOKUP
964 select COMMON_CLK
965 select CPU_ARM926T
966 select GENERIC_CLOCKEVENTS
967 select GENERIC_GPIO
968 select HAVE_CLK
969 select MULTI_IRQ_HANDLER
970 select SPARSE_IRQ
971 select USE_OF
972 help
973 Support for VIA/WonderMedia VT8500/WM85xx System-on-Chip.
974
975endchoice 959endchoice
976 960
977menu "Multiple platform selection" 961menu "Multiple platform selection"
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 8cccce36b067..6472a5737427 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -419,6 +419,13 @@ choice
419 of the tiles using the RS1 memory map, including all new A-class 419 of the tiles using the RS1 memory map, including all new A-class
420 core tiles, FPGA-based SMMs and software models. 420 core tiles, FPGA-based SMMs and software models.
421 421
422 config DEBUG_VT8500_UART0
423 bool "Use UART0 on VIA/Wondermedia SoCs"
424 depends on ARCH_VT8500
425 help
426 This option selects UART0 on VIA/Wondermedia System-on-a-chip
427 devices, including VT8500, WM8505, WM8650 and WM8850.
428
422 config DEBUG_LL_UART_NONE 429 config DEBUG_LL_UART_NONE
423 bool "No low-level debugging UART" 430 bool "No low-level debugging UART"
424 depends on !ARCH_MULTIPLATFORM 431 depends on !ARCH_MULTIPLATFORM
@@ -562,6 +569,7 @@ config DEBUG_LL_INCLUDE
562 default "debug/sunxi.S" if DEBUG_SUNXI_UART0 || DEBUG_SUNXI_UART1 569 default "debug/sunxi.S" if DEBUG_SUNXI_UART0 || DEBUG_SUNXI_UART1
563 default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \ 570 default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \
564 DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1 571 DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1
572 default "debug/vt8500.S" if DEBUG_VT8500_UART0
565 default "debug/tegra.S" if DEBUG_TEGRA_UART 573 default "debug/tegra.S" if DEBUG_TEGRA_UART
566 default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1 574 default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
567 default "mach/debug-macro.S" 575 default "mach/debug-macro.S"
diff --git a/arch/arm/mach-vt8500/include/mach/debug-macro.S b/arch/arm/include/debug/vt8500.S
index ca292f29d4a3..0e0ca0869da7 100644
--- a/arch/arm/mach-vt8500/include/mach/debug-macro.S
+++ b/arch/arm/include/debug/vt8500.S
@@ -1,20 +1,24 @@
1/* 1/*
2 * arch/arm/mach-vt8500/include/mach/debug-macro.S 2 * Debugging macro include header
3 * 3 *
4 * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com> 4 * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
5 * 5 * Moved from arch/arm/mach-vt8500/include/mach/debug-macro.S
6 * Debugging macro include header 6 * Minor changes for readability.
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as 9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation. 10 * published by the Free Software Foundation.
11 * 11 */
12*/ 12
13#define DEBUG_LL_PHYS_BASE 0xD8000000
14#define DEBUG_LL_VIRT_BASE 0xF8000000
15#define DEBUG_LL_UART_OFFSET 0x00200000
13 16
17#if defined(CONFIG_DEBUG_VT8500_UART0)
14 .macro addruart, rp, rv, tmp 18 .macro addruart, rp, rv, tmp
15 mov \rp, #0x00200000 19 mov \rp, #DEBUG_LL_UART_OFFSET
16 orr \rv, \rp, #0xf8000000 20 orr \rv, \rp, #DEBUG_LL_VIRT_BASE
17 orr \rp, \rp, #0xd8000000 21 orr \rp, \rp, #DEBUG_LL_PHYS_BASE
18 .endm 22 .endm
19 23
20 .macro senduart,rd,rx 24 .macro senduart,rd,rx
@@ -29,3 +33,5 @@
29 33
30 .macro waituart,rd,rx 34 .macro waituart,rd,rx
31 .endm 35 .endm
36
37#endif
diff --git a/arch/arm/mach-vt8500/Kconfig b/arch/arm/mach-vt8500/Kconfig
index 2ed0b7d95db6..cdcc4329b4a8 100644
--- a/arch/arm/mach-vt8500/Kconfig
+++ b/arch/arm/mach-vt8500/Kconfig
@@ -1,12 +1,17 @@
1config ARCH_VT8500 1config ARCH_VT8500
2 bool "VIA/WonderMedia 85xx" if ARCH_MULTI_V5 2 bool
3 default ARCH_VT8500_SINGLE
4 select ARCH_HAS_CPUFREQ 3 select ARCH_HAS_CPUFREQ
5 select ARCH_REQUIRE_GPIOLIB 4 select ARCH_REQUIRE_GPIOLIB
6 select CLKDEV_LOOKUP 5 select CLKDEV_LOOKUP
7 select CPU_ARM926T
8 select GENERIC_CLOCKEVENTS 6 select GENERIC_CLOCKEVENTS
9 select GENERIC_GPIO 7 select GENERIC_GPIO
10 select HAVE_CLK 8 select HAVE_CLK
11 help 9 help
12 Support for VIA/WonderMedia VT8500/WM85xx System-on-Chip. 10 Support for VIA/WonderMedia VT8500/WM85xx System-on-Chip.
11
12config ARCH_WM8505
13 bool "VIA/Wondermedia 85xx and WM8650"
14 depends on ARCH_MULTI_V5
15 select ARCH_VT8500
16 select CPU_ARM926T
17 help
diff --git a/arch/arm/mach-vt8500/include/mach/timex.h b/arch/arm/mach-vt8500/include/mach/timex.h
deleted file mode 100644
index 8487e4c690b7..000000000000
--- a/arch/arm/mach-vt8500/include/mach/timex.h
+++ /dev/null
@@ -1,26 +0,0 @@
1/*
2 * arch/arm/mach-vt8500/include/mach/timex.h
3 *
4 * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21#ifndef MACH_TIMEX_H
22#define MACH_TIMEX_H
23
24#define CLOCK_TICK_RATE (3000000)
25
26#endif /* MACH_TIMEX_H */
diff --git a/arch/arm/mach-vt8500/include/mach/uncompress.h b/arch/arm/mach-vt8500/include/mach/uncompress.h
deleted file mode 100644
index e6e81fdaf109..000000000000
--- a/arch/arm/mach-vt8500/include/mach/uncompress.h
+++ /dev/null
@@ -1,37 +0,0 @@
1/* arch/arm/mach-vt8500/include/mach/uncompress.h
2 *
3 * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
4 *
5 * Based on arch/arm/mach-dove/include/mach/uncompress.h
6 *
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 */
17
18#define UART0_PHYS 0xd8200000
19#define UART0_ADDR(x) *(volatile unsigned char *)(UART0_PHYS + x)
20
21static void putc(const char c)
22{
23 while (UART0_ADDR(0x1c) & 0x2)
24 /* Tx busy, wait and poll */;
25
26 UART0_ADDR(0) = c;
27}
28
29static void flush(void)
30{
31}
32
33/*
34 * nothing to do
35 */
36#define arch_decomp_setup()
37#define arch_decomp_wdog()