Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+31 -91
-16
arch/arm/Kconfig
··· 956 956 help 957 957 Support for older TI OMAP1 (omap7xx, omap15xx or omap16xx) 958 958 959 - config 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 - 975 959 endchoice 976 960 977 961 menu "Multiple platform selection"
+8
arch/arm/Kconfig.debug
··· 419 419 of the tiles using the RS1 memory map, including all new A-class 420 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 429 config DEBUG_LL_UART_NONE 423 430 bool "No low-level debugging UART" 424 431 depends on !ARCH_MULTIPLATFORM ··· 569 562 default "debug/sunxi.S" if DEBUG_SUNXI_UART0 || DEBUG_SUNXI_UART1 570 563 default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \ 571 564 DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1 565 + default "debug/vt8500.S" if DEBUG_VT8500_UART0 572 566 default "debug/tegra.S" if DEBUG_TEGRA_UART 573 567 default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1 574 568 default "mach/debug-macro.S"
+8 -3
arch/arm/mach-vt8500/Kconfig
··· 1 1 config ARCH_VT8500 2 - bool "VIA/WonderMedia 85xx" if ARCH_MULTI_V5 3 - default ARCH_VT8500_SINGLE 2 + bool 4 3 select ARCH_HAS_CPUFREQ 5 4 select ARCH_REQUIRE_GPIOLIB 6 5 select CLKDEV_LOOKUP 7 - select CPU_ARM926T 8 6 select GENERIC_CLOCKEVENTS 9 7 select GENERIC_GPIO 10 8 select HAVE_CLK 11 9 help 12 10 Support for VIA/WonderMedia VT8500/WM85xx System-on-Chip. 11 + 12 + config 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
+15 -9
arch/arm/mach-vt8500/include/mach/debug-macro.S arch/arm/include/debug/vt8500.S
··· 1 - /* 2 - * arch/arm/mach-vt8500/include/mach/debug-macro.S 1 + /* 2 + * Debugging macro include header 3 3 * 4 4 * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com> 5 - * 6 - * Debugging macro include header 5 + * Moved from arch/arm/mach-vt8500/include/mach/debug-macro.S 6 + * Minor changes for readability. 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify 9 9 * it under the terms of the GNU General Public License version 2 as 10 10 * published by the Free Software Foundation. 11 - * 12 - */ 11 + */ 13 12 13 + #define DEBUG_LL_PHYS_BASE 0xD8000000 14 + #define DEBUG_LL_VIRT_BASE 0xF8000000 15 + #define DEBUG_LL_UART_OFFSET 0x00200000 16 + 17 + #if defined(CONFIG_DEBUG_VT8500_UART0) 14 18 .macro addruart, rp, rv, tmp 15 - mov \rp, #0x00200000 16 - orr \rv, \rp, #0xf8000000 17 - orr \rp, \rp, #0xd8000000 19 + mov \rp, #DEBUG_LL_UART_OFFSET 20 + orr \rv, \rp, #DEBUG_LL_VIRT_BASE 21 + orr \rp, \rp, #DEBUG_LL_PHYS_BASE 18 22 .endm 19 23 20 24 .macro senduart,rd,rx ··· 33 29 34 30 .macro waituart,rd,rx 35 31 .endm 32 + 33 + #endif
-26
arch/arm/mach-vt8500/include/mach/timex.h
··· 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 */
-37
arch/arm/mach-vt8500/include/mach/uncompress.h
··· 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 - 21 - static 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 - 29 - static void flush(void) 30 - { 31 - } 32 - 33 - /* 34 - * nothing to do 35 - */ 36 - #define arch_decomp_setup() 37 - #define arch_decomp_wdog()