All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCHv2] ARM: vt8500: Convert arch-vt8500 to multiplatform
@ 2012-10-11  7:59 Tony Prisk
  2012-10-16 18:17 ` Olof Johansson
  0 siblings, 1 reply; 7+ messages in thread
From: Tony Prisk @ 2012-10-11  7:59 UTC (permalink / raw)
  To: linux-arm-kernel

This patch completes the conversion to ARCH_MULTI_V5 for arch-vt8500.
Removed /mach/include/ and remaining unneeded files.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
---
v2	Added the missing arch/arm/mach-vt8500/Kconfig

 arch/arm/Kconfig                                |   18 ++----------
 arch/arm/mach-vt8500/Kconfig                    |   11 +++++++
 arch/arm/mach-vt8500/include/mach/debug-macro.S |   31 -------------------
 arch/arm/mach-vt8500/include/mach/timex.h       |   26 ----------------
 arch/arm/mach-vt8500/include/mach/uncompress.h  |   36 -----------------------
 5 files changed, 13 insertions(+), 109 deletions(-)
 create mode 100644 arch/arm/mach-vt8500/Kconfig
 delete mode 100644 arch/arm/mach-vt8500/include/mach/debug-macro.S
 delete mode 100644 arch/arm/mach-vt8500/include/mach/timex.h
 delete mode 100644 arch/arm/mach-vt8500/include/mach/uncompress.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 32b62ac..e71ad2c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -938,22 +938,6 @@ config PLAT_SPEAR
 	help
 	  Support for ST's SPEAr platform (SPEAr3xx, SPEAr6xx and SPEAr13xx).
 
-config ARCH_VT8500
-	bool "VIA/WonderMedia 85xx"
-	select CPU_ARM926T
-	select GENERIC_GPIO
-	select ARCH_HAS_CPUFREQ
-	select GENERIC_CLOCKEVENTS
-	select ARCH_REQUIRE_GPIOLIB
-	select USE_OF
-	select COMMON_CLK
-	select HAVE_CLK
-	select CLKDEV_LOOKUP
-	select MULTI_IRQ_HANDLER
-	select SPARSE_IRQ
-	help
-	  Support for VIA/WonderMedia VT8500/WM85xx System-on-Chip.
-
 config ARCH_ZYNQ
 	bool "Xilinx Zynq ARM Cortex A9 Platform"
 	select CPU_V7
@@ -1125,6 +1109,8 @@ source "arch/arm/mach-versatile/Kconfig"
 source "arch/arm/mach-vexpress/Kconfig"
 source "arch/arm/plat-versatile/Kconfig"
 
+source "arch/arm/mach-vt8500/Kconfig"
+
 source "arch/arm/mach-w90x900/Kconfig"
 
 # Definitions to make life easier
diff --git a/arch/arm/mach-vt8500/Kconfig b/arch/arm/mach-vt8500/Kconfig
new file mode 100644
index 0000000..fa0c9fa
--- /dev/null
+++ b/arch/arm/mach-vt8500/Kconfig
@@ -0,0 +1,11 @@
+config ARCH_VT8500
+	bool "VIA/WonderMedia 85xx" if ARCH_MULTI_V5
+	select ARCH_HAS_CPUFREQ
+	select ARCH_REQUIRE_GPIOLIB
+	select CLKDEV_LOOKUP
+	select CPU_ARM926T
+	select GENERIC_CLOCKEVENTS
+	select GENERIC_GPIO
+	select HAVE_CLK
+	help
+	  Support for VIA/WonderMedia VT8500/WM85xx System-on-Chip.
diff --git a/arch/arm/mach-vt8500/include/mach/debug-macro.S b/arch/arm/mach-vt8500/include/mach/debug-macro.S
deleted file mode 100644
index ca292f2..0000000
--- a/arch/arm/mach-vt8500/include/mach/debug-macro.S
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * arch/arm/mach-vt8500/include/mach/debug-macro.S
- *
- *  Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
- *
- * Debugging macro include header
- *
- * 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.
- *
-*/
-
-	.macro	addruart, rp, rv, tmp
-	mov	\rp,      #0x00200000
-	orr	\rv, \rp, #0xf8000000
-	orr	\rp, \rp, #0xd8000000
-	.endm
-
-	.macro	senduart,rd,rx
-	strb	\rd, [\rx, #0]
-	.endm
-
-	.macro	busyuart,rd,rx
-1001:	ldr	\rd, [\rx, #0x1c]
-	ands	\rd, \rd, #0x2
-	bne	1001b
-	.endm
-
-	.macro	waituart,rd,rx
-	.endm
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 8487e4c..0000000
--- a/arch/arm/mach-vt8500/include/mach/timex.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- *  arch/arm/mach-vt8500/include/mach/timex.h
- *
- *  Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
- *
- * 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
- */
-
-#ifndef MACH_TIMEX_H
-#define MACH_TIMEX_H
-
-#define CLOCK_TICK_RATE		(3000000)
-
-#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 a9b6cae..0000000
--- a/arch/arm/mach-vt8500/include/mach/uncompress.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* arch/arm/mach-vt8500/include/mach/uncompress.h
- *
- * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
- *
- * Based on arch/arm/mach-dove/include/mach/uncompress.h
- *
- * This software is licensed under the terms of the GNU General Public
- * License version 2, as published by the Free Software Foundation, and
- * may be copied, distributed, and modified under those terms.
- *
- * 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.
- *
- */
-#define UART0_PHYS     0xd8200000
-#define UART0_ADDR(x)  *(volatile unsigned char *)(UART0_PHYS + x)
-
-static void putc(const char c)
-{
-	while (UART0_ADDR(0x1c) & 0x2)
-		/* Tx busy, wait and poll */;
-
-	UART0_ADDR(0) = c;
-}
-
-static void flush(void)
-{
-}
-
-/*
- * nothing to do
- */
-#define arch_decomp_setup()
-#define arch_decomp_wdog()
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [RFC PATCHv2] ARM: vt8500: Convert arch-vt8500 to multiplatform
  2012-10-11  7:59 [RFC PATCHv2] ARM: vt8500: Convert arch-vt8500 to multiplatform Tony Prisk
@ 2012-10-16 18:17 ` Olof Johansson
  2012-10-16 18:37   ` Arnd Bergmann
  2012-10-16 18:41   ` Tony Prisk
  0 siblings, 2 replies; 7+ messages in thread
From: Olof Johansson @ 2012-10-16 18:17 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Oct 11, 2012 at 08:59:13PM +1300, Tony Prisk wrote:
> This patch completes the conversion to ARCH_MULTI_V5 for arch-vt8500.
> Removed /mach/include/ and remaining unneeded files.
> 
> Signed-off-by: Tony Prisk <linux@prisktech.co.nz>

Acked-by: Olof Johansson <olof@lixom.net>

I think it's time to add a defconfig for vt8500 so we get build coverage. Can
you please do so for 3.8, maybe as a part of the branch this patch goes in?


Thanks!


-Olof

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [RFC PATCHv2] ARM: vt8500: Convert arch-vt8500 to multiplatform
  2012-10-16 18:17 ` Olof Johansson
@ 2012-10-16 18:37   ` Arnd Bergmann
  2012-10-16 18:38     ` Olof Johansson
  2012-10-16 18:41   ` Tony Prisk
  1 sibling, 1 reply; 7+ messages in thread
From: Arnd Bergmann @ 2012-10-16 18:37 UTC (permalink / raw)
  To: linux-arm-kernel

On Tuesday 16 October 2012, Olof Johansson wrote:
> On Thu, Oct 11, 2012 at 08:59:13PM +1300, Tony Prisk wrote:
> > This patch completes the conversion to ARCH_MULTI_V5 for arch-vt8500.
> > Removed /mach/include/ and remaining unneeded files.
> > 
> > Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
> 
> Acked-by: Olof Johansson <olof@lixom.net>
> 
> I think it's time to add a defconfig for vt8500 so we get build coverage. Can
> you please do so for 3.8, maybe as a part of the branch this patch goes in?

Wouldn't this just be part of a new multi_v5_defconfig?

I don't object to having a vt8500-only defconfig, but I think we should
also enable it in the normal one.

	Arnd

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [RFC PATCHv2] ARM: vt8500: Convert arch-vt8500 to multiplatform
  2012-10-16 18:37   ` Arnd Bergmann
@ 2012-10-16 18:38     ` Olof Johansson
  0 siblings, 0 replies; 7+ messages in thread
From: Olof Johansson @ 2012-10-16 18:38 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Oct 16, 2012 at 11:37 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Tuesday 16 October 2012, Olof Johansson wrote:
>> On Thu, Oct 11, 2012 at 08:59:13PM +1300, Tony Prisk wrote:
>> > This patch completes the conversion to ARCH_MULTI_V5 for arch-vt8500.
>> > Removed /mach/include/ and remaining unneeded files.
>> >
>> > Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
>>
>> Acked-by: Olof Johansson <olof@lixom.net>
>>
>> I think it's time to add a defconfig for vt8500 so we get build coverage. Can
>> you please do so for 3.8, maybe as a part of the branch this patch goes in?
>
> Wouldn't this just be part of a new multi_v5_defconfig?

Yeah, as long as it contains the needed drivers, etc.

> I don't object to having a vt8500-only defconfig, but I think we should
> also enable it in the normal one.

Agreed.


-Olof

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [RFC PATCHv2] ARM: vt8500: Convert arch-vt8500 to multiplatform
  2012-10-16 18:17 ` Olof Johansson
  2012-10-16 18:37   ` Arnd Bergmann
@ 2012-10-16 18:41   ` Tony Prisk
  2012-10-16 18:42     ` Olof Johansson
  1 sibling, 1 reply; 7+ messages in thread
From: Tony Prisk @ 2012-10-16 18:41 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, 2012-10-16 at 11:17 -0700, Olof Johansson wrote:
> On Thu, Oct 11, 2012 at 08:59:13PM +1300, Tony Prisk wrote:
> > This patch completes the conversion to ARCH_MULTI_V5 for arch-vt8500.
> > Removed /mach/include/ and remaining unneeded files.
> > 
> > Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
> 
> Acked-by: Olof Johansson <olof@lixom.net>
> 
> I think it's time to add a defconfig for vt8500 so we get build coverage. Can
> you please do so for 3.8, maybe as a part of the branch this patch goes in?
> 
> 
> Thanks!
> 
> 
> -Olof
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

I thought the ARCH_MULTI def_configs would cover it from 3.8?

Or would you like a vt8500_defconfig to help build the ARCH_MULTI
configs?

Either way, I will get it done and included in this branch.

Regards
Tony P

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [RFC PATCHv2] ARM: vt8500: Convert arch-vt8500 to multiplatform
  2012-10-16 18:41   ` Tony Prisk
@ 2012-10-16 18:42     ` Olof Johansson
  2012-10-16 18:45       ` Tony Prisk
  0 siblings, 1 reply; 7+ messages in thread
From: Olof Johansson @ 2012-10-16 18:42 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Oct 16, 2012 at 11:41 AM, Tony Prisk <linux@prisktech.co.nz> wrote:
> On Tue, 2012-10-16 at 11:17 -0700, Olof Johansson wrote:
>> On Thu, Oct 11, 2012 at 08:59:13PM +1300, Tony Prisk wrote:
>> > This patch completes the conversion to ARCH_MULTI_V5 for arch-vt8500.
>> > Removed /mach/include/ and remaining unneeded files.
>> >
>> > Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
>>
>> Acked-by: Olof Johansson <olof@lixom.net>
>>
>> I think it's time to add a defconfig for vt8500 so we get build coverage. Can
>> you please do so for 3.8, maybe as a part of the branch this patch goes in?
>>
>>
>> Thanks!
>>
>>
>> -Olof
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
> I thought the ARCH_MULTI def_configs would cover it from 3.8?
>
> Or would you like a vt8500_defconfig to help build the ARCH_MULTI
> configs?
>
> Either way, I will get it done and included in this branch.

Yeah, as mentioned in my reply to Arnd, the multiconfig would be
sufficient, just make sure it contains the drivers you need for your
platform(s) to work well.


-Olof

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [RFC PATCHv2] ARM: vt8500: Convert arch-vt8500 to multiplatform
  2012-10-16 18:42     ` Olof Johansson
@ 2012-10-16 18:45       ` Tony Prisk
  0 siblings, 0 replies; 7+ messages in thread
From: Tony Prisk @ 2012-10-16 18:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, 2012-10-16 at 11:42 -0700, Olof Johansson wrote:
> On Tue, Oct 16, 2012 at 11:41 AM, Tony Prisk <linux@prisktech.co.nz> wrote:
> > On Tue, 2012-10-16 at 11:17 -0700, Olof Johansson wrote:
> >> On Thu, Oct 11, 2012 at 08:59:13PM +1300, Tony Prisk wrote:
> >> > This patch completes the conversion to ARCH_MULTI_V5 for arch-vt8500.
> >> > Removed /mach/include/ and remaining unneeded files.
> >> >
> >> > Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
> >>
> >> Acked-by: Olof Johansson <olof@lixom.net>
> >>
> >> I think it's time to add a defconfig for vt8500 so we get build coverage. Can
> >> you please do so for 3.8, maybe as a part of the branch this patch goes in?
> >>
> >>
> >> Thanks!
> >>
> >>
> >> -Olof
> >>
> >> _______________________________________________
> >> linux-arm-kernel mailing list
> >> linux-arm-kernel at lists.infradead.org
> >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> >
> > I thought the ARCH_MULTI def_configs would cover it from 3.8?
> >
> > Or would you like a vt8500_defconfig to help build the ARCH_MULTI
> > configs?
> >
> > Either way, I will get it done and included in this branch.
> 
> Yeah, as mentioned in my reply to Arnd, the multiconfig would be
> sufficient, just make sure it contains the drivers you need for your
> platform(s) to work well.
> 
> 
> -Olof

Actually, now that I think about it - I have reverted some of the
multiplatform changes locally to allow us to keep earlyprintk, so I
guess a vt8500_single defconfig wouldn't hurt at the moment.

Regards
Tony P

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-16 18:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-11  7:59 [RFC PATCHv2] ARM: vt8500: Convert arch-vt8500 to multiplatform Tony Prisk
2012-10-16 18:17 ` Olof Johansson
2012-10-16 18:37   ` Arnd Bergmann
2012-10-16 18:38     ` Olof Johansson
2012-10-16 18:41   ` Tony Prisk
2012-10-16 18:42     ` Olof Johansson
2012-10-16 18:45       ` Tony Prisk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.