Commit 237ee312 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm

* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm:
  [ARM] Remove OP_MAX_COUNTER
  [ARM] Remove PM_LEGACY=y from selected ARM defconfigs
  [ARM] 3857/2: pnx4008: add devices' registration
parents d0cac32f aa8d1873
...@@ -217,7 +217,7 @@ CONFIG_BINFMT_ELF=y ...@@ -217,7 +217,7 @@ CONFIG_BINFMT_ELF=y
# Power management options # Power management options
# #
CONFIG_PM=y CONFIG_PM=y
CONFIG_PM_LEGACY=y # CONFIG_PM_LEGACY is not set
# CONFIG_PM_DEBUG is not set # CONFIG_PM_DEBUG is not set
# CONFIG_APM is not set # CONFIG_APM is not set
......
...@@ -219,7 +219,7 @@ CONFIG_BINFMT_ELF=y ...@@ -219,7 +219,7 @@ CONFIG_BINFMT_ELF=y
# Power management options # Power management options
# #
CONFIG_PM=y CONFIG_PM=y
CONFIG_PM_LEGACY=y # CONFIG_PM_LEGACY is not set
# CONFIG_PM_DEBUG is not set # CONFIG_PM_DEBUG is not set
CONFIG_APM=y CONFIG_APM=y
......
...@@ -206,10 +206,8 @@ CONFIG_BINFMT_ELF=y ...@@ -206,10 +206,8 @@ CONFIG_BINFMT_ELF=y
# #
# Power management options # Power management options
# #
CONFIG_PM=y # CONFIG_PM is not set
CONFIG_PM_LEGACY=y # CONFIG_APM is not set
# CONFIG_PM_DEBUG is not set
CONFIG_APM=y
# #
# Networking # Networking
......
...@@ -257,7 +257,7 @@ CONFIG_BINFMT_AOUT=y ...@@ -257,7 +257,7 @@ CONFIG_BINFMT_AOUT=y
# Power management options # Power management options
# #
CONFIG_PM=y CONFIG_PM=y
CONFIG_PM_LEGACY=y # CONFIG_PM_LEGACY is not set
# CONFIG_PM_DEBUG is not set # CONFIG_PM_DEBUG is not set
# CONFIG_APM is not set # CONFIG_APM is not set
......
...@@ -258,7 +258,7 @@ CONFIG_BINFMT_AOUT=y ...@@ -258,7 +258,7 @@ CONFIG_BINFMT_AOUT=y
# Power management options # Power management options
# #
CONFIG_PM=y CONFIG_PM=y
CONFIG_PM_LEGACY=y # CONFIG_PM_LEGACY is not set
# CONFIG_PM_DEBUG is not set # CONFIG_PM_DEBUG is not set
# CONFIG_PM_SYSFS_DEPRECATED is not set # CONFIG_PM_SYSFS_DEPRECATED is not set
CONFIG_APM=y CONFIG_APM=y
......
...@@ -200,7 +200,7 @@ CONFIG_BINFMT_ELF=y ...@@ -200,7 +200,7 @@ CONFIG_BINFMT_ELF=y
# Power management options # Power management options
# #
CONFIG_PM=y CONFIG_PM=y
CONFIG_PM_LEGACY=y # CONFIG_PM_LEGACY is not set
# CONFIG_PM_DEBUG is not set # CONFIG_PM_DEBUG is not set
# CONFIG_APM is not set # CONFIG_APM is not set
......
...@@ -133,10 +133,79 @@ static struct platform_device serial_device = { ...@@ -133,10 +133,79 @@ static struct platform_device serial_device = {
}, },
}; };
static struct platform_device nand_flash_device = {
.name = "pnx4008-flash",
.id = -1,
.dev = {
.coherent_dma_mask = 0xFFFFFFFF,
},
};
/* The dmamask must be set for OHCI to work */
static u64 ohci_dmamask = ~(u32) 0;
static struct resource ohci_resources[] = {
{
.start = IO_ADDRESS(PNX4008_USB_CONFIG_BASE),
.end = IO_ADDRESS(PNX4008_USB_CONFIG_BASE + 0x100),
.flags = IORESOURCE_MEM,
}, {
.start = USB_HOST_INT,
.flags = IORESOURCE_IRQ,
},
};
static struct platform_device ohci_device = {
.name = "pnx4008-usb-ohci",
.id = -1,
.dev = {
.dma_mask = &ohci_dmamask,
.coherent_dma_mask = 0xffffffff,
},
.num_resources = ARRAY_SIZE(ohci_resources),
.resource = ohci_resources,
};
static struct platform_device sdum_device = {
.name = "pnx4008-sdum",
.id = 0,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
};
static struct platform_device rgbfb_device = {
.name = "pnx4008-rgbfb",
.id = 0,
.dev = {
.coherent_dma_mask = 0xffffffff,
}
};
struct resource watchdog_resources[] = {
{
.start = PNX4008_WDOG_BASE,
.end = PNX4008_WDOG_BASE + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
};
static struct platform_device watchdog_device = {
.name = "pnx4008-watchdog",
.id = -1,
.num_resources = ARRAY_SIZE(watchdog_resources),
.resource = watchdog_resources,
};
static struct platform_device *devices[] __initdata = { static struct platform_device *devices[] __initdata = {
&spipnx_1, &spipnx_1,
&spipnx_2, &spipnx_2,
&serial_device, &serial_device,
&ohci_device,
&nand_flash_device,
&sdum_device,
&rgbfb_device,
&watchdog_device,
}; };
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#ifndef OP_COUNTER_H #ifndef OP_COUNTER_H
#define OP_COUNTER_H #define OP_COUNTER_H
#define OP_MAX_COUNTER 5
/* Per performance monitor configuration as set via /* Per performance monitor configuration as set via
* oprofilefs. * oprofilefs.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment