pxa: move pmu device back into mach-pxa/
Subsystems (3)
PATCH 1/3 pxa: move pmu device back into mach-pxa/
Not tested and enabled on MMP at this moment, and since the IRQ is different from mach-pxa, I'd prefer to move the PMU device back into mach-pxa/. Will introduce the PMU device to MMP once it's enabled and tested.
--- arch/arm/mach-pxa/devices.c | 14 ++++++++++++++ arch/arm/mach-pxa/devices.h | 1 + arch/arm/mach-pxa/pxa25x.c | 1 + arch/arm/mach-pxa/pxa27x.c | 1 + arch/arm/mach-pxa/pxa3xx.c | 1 + arch/arm/plat-pxa/Makefile | 1 - arch/arm/plat-pxa/pmu.c | 33 --------------------------------- 7 files changed, 18 insertions(+), 34 deletions(-) delete mode 100644 arch/arm/plat-pxa/pmu.c
arch/arm/mach-pxa/devices.c +14 -0
@@ -4,6 +4,7 @@#include <linux/platform_device.h> #include <linux/dma-mapping.h> +#include <asm/pmu.h> #include <mach/udc.h> #include <mach/pxafb.h> #include <mach/mmc.h>
@@ -31,6 +32,19 @@ void __init pxa_register_device(struct platform_device *dev, void *data)dev_err (&dev->dev,"unable to register device: %d\n" , ret); } +static struct resource pxa_resource_pmu = { + .start =IRQ_PMU , + .end =IRQ_PMU , + .flags =IORESOURCE_IRQ , +}; + +struct platform_device pxa_device_pmu = { + .name ="arm-pmu" , + .id =ARM_PMU_DEVICE_CPU , + .resource = &pxa_resource_pmu, + .num_resources =1 , +}; +static struct resource pxamci_resources[] = { [0 ] = { .start =0x41100000 ,
arch/arm/mach-pxa/devices.h +1 -0
@@ -1,3 +1,4 @@ +extern struct platform_device pxa_device_pmu;extern struct platform_device pxa_device_mci;extern struct platform_device pxa3xx_device_mci2;extern struct platform_device pxa3xx_device_mci3;
arch/arm/mach-pxa/pxa25x.c +1 -0
@@ -322,6 +322,7 @@ void __init pxa26x_init_irq(void)static struct platform_device *pxa25x_devices[]__initdata = { &pxa25x_device_udc, + &pxa_device_pmu, &pxa_device_i2s, &sa1100_device_rtc, &pxa25x_device_ssp,
arch/arm/mach-pxa/pxa27x.c +1 -0
@@ -383,6 +383,7 @@ void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info)static struct platform_device *devices[]__initdata = { &pxa27x_device_udc, + &pxa_device_pmu, &pxa_device_i2s, &sa1100_device_rtc, &pxa_device_rtc,
arch/arm/mach-pxa/pxa3xx.c +1 -0
@@ -608,6 +608,7 @@ void __init pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info)static struct platform_device *devices[]__initdata = { &pxa27x_device_udc, + &pxa_device_pmu, &pxa_device_i2s, &sa1100_device_rtc, &pxa_device_rtc,
arch/arm/plat-pxa/Makefile +0 -1
@@ -4,7 +4,6 @@ obj-y := dma.o -obj-$(CONFIG_ARCH_PXA) += pmu.o obj-$(CONFIG_GENERIC_GPIO) += gpio.o obj-$(CONFIG_PXA3xx) += mfp.o obj-$(CONFIG_ARCH_MMP) += mfp.o
arch/arm/plat-pxa/pmu.c deleted +0 -33
@@ -1,33 +0,0 @@ -/* -* PMU IRQ registration for the PXA xscale PMU families. -* Copyright (C) 2010 Will Deacon, ARM Ltd. -* -* 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/platform_device.h> -#include <asm/pmu.h> -#include <mach/irqs.h> - -static struct resource pmu_resource = { - .start =IRQ_PMU , - .end =IRQ_PMU , - .flags =IORESOURCE_IRQ , -}; - -static struct platform_device pmu_device = { - .name ="arm-pmu" , - .id =ARM_PMU_DEVICE_CPU , - .resource = &pmu_resource, - .num_resources =1 , -}; - -static int __init pxa_pmu_init (void ) -{ -platform_device_register (&pmu_device); -return 0 ; -} -arch_initcall (pxa_pmu_init);
Signature · 1 line
1.7.1
PATCH 2/3 pxa: remove useless NODE_MEM_SIZE_BITS
As DISCONTIGMEM is not enabled on PXA, remove this useless bit.
--- arch/arm/mach-pxa/include/mach/memory.h | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-)
arch/arm/mach-pxa/include/mach/memory.h +0 -12
@@ -17,18 +17,6 @@*/ #define PHYS_OFFSET UL(0xa0000000) -/* -* The nodes are matched with the physical SDRAM banks as follows: -* -* node 0: 0xa0000000-0xa3ffffff --> 0xc0000000-0xc3ffffff -* node 1: 0xa4000000-0xa7ffffff --> 0xc4000000-0xc7ffffff -* node 2: 0xa8000000-0xabffffff --> 0xc8000000-0xcbffffff -* node 3: 0xac000000-0xafffffff --> 0xcc000000-0xcfffffff -* -* This needs a node mem size of 26 bits. -*/ -#define NODE_MEM_SIZE_BITS 26 -#if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE ) && defined(CONFIG_PCI )void cmx2xx_pci_adjust_zones (int node,unsigned long *size,unsigned long *holes);
Signature · 1 line
1.7.1
PATCH 2/3 pxa: remove useless NODE_MEM_SIZE_BITS
Quoted 1 line · Eric Miao
As DISCONTIGMEM is not enabled on PXA, remove this useless bit.
You need to look at my LMB or devel branch. This is gone already there.
PATCH 2/3 pxa: remove useless NODE_MEM_SIZE_BITS
Quoted 5 lines · Russell King - ARM Linux
Quoted 1 line · Eric Miao
As DISCONTIGMEM is not enabled on PXA, remove this useless bit.
You need to look at my LMB or devel branch. ?This is gone already there.
Excellent, wanting this removed for a long time. I'll keep eyes more on those bits now.
PATCH 3/3 pxa: merge all eseries board code into eseries.c
In reply to Eric Miao--- arch/arm/mach-pxa/Makefile | 6 - arch/arm/mach-pxa/e330.c | 78 ----- arch/arm/mach-pxa/e350.c | 79 ----- arch/arm/mach-pxa/e400.c | 155 --------- arch/arm/mach-pxa/e740.c | 225 ------------ arch/arm/mach-pxa/e750.c | 226 ------------ arch/arm/mach-pxa/e800.c | 229 ------------ arch/arm/mach-pxa/eseries.c | 809 +++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 809 insertions(+), 998 deletions(-) delete mode 100644 arch/arm/mach-pxa/e330.c delete mode 100644 arch/arm/mach-pxa/e350.c delete mode 100644 arch/arm/mach-pxa/e400.c delete mode 100644 arch/arm/mach-pxa/e740.c delete mode 100644 arch/arm/mach-pxa/e750.c delete mode 100644 arch/arm/mach-pxa/e800.c
arch/arm/mach-pxa/Makefile +0 -6
@@ -86,12 +86,6 @@ obj-$(CONFIG_MACH_POODLE) += poodle.o obj-$(CONFIG_MACH_TOSA) += tosa.o obj-$(CONFIG_MACH_ICONTROL) += icontrol.o mxm8x10.o obj-$(CONFIG_ARCH_PXA_ESERIES) += eseries.o -obj-$(CONFIG_MACH_E330) += e330.o -obj-$(CONFIG_MACH_E350) += e350.o -obj-$(CONFIG_MACH_E740) += e740.o -obj-$(CONFIG_MACH_E750) += e750.o -obj-$(CONFIG_MACH_E400) += e400.o -obj-$(CONFIG_MACH_E800) += e800.o obj-$(CONFIG_MACH_RAUMFELD_RC) += raumfeld.o obj-$(CONFIG_MACH_RAUMFELD_CONNECTOR) += raumfeld.o obj-$(CONFIG_MACH_RAUMFELD_SPEAKER) += raumfeld.o
arch/arm/mach-pxa/e330.c deleted +0 -78
78 lines not on this page · raw message
arch/arm/mach-pxa/e350.c deleted +0 -79
79 lines not on this page · raw message
arch/arm/mach-pxa/e400.c deleted +0 -155
155 lines not on this page · raw message
arch/arm/mach-pxa/e740.c deleted +0 -225
225 lines not on this page · raw message
arch/arm/mach-pxa/e750.c deleted +0 -226
226 lines not on this page · raw message
arch/arm/mach-pxa/e800.c deleted +0 -229
229 lines not on this page · raw message
arch/arm/mach-pxa/eseries.c +809 -0
827 lines not on this page · raw message
Signature · 1 line
1.7.1