forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ARM] pxa: Add multi-io support for e-series
This patchset provides support for the TMIO based IO controller used in the Toshiba e-series PDAs. Signed-off-by: Ian Molton <[email protected]> Acked-by: Samuel Ortiz <[email protected]> Acked-by: Eric Miao <[email protected]>
- Loading branch information
Ian Molton
committed
Dec 15, 2008
1 parent
f4ad9a9
commit b1ae1b7
Showing
9 changed files
with
320 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Hardware definitions for the Toshiba eseries PDAs | ||
* Hardware definitions for the Toshiba e330 PDAs | ||
* | ||
* Copyright (c) 2003 Ian Molton <[email protected]> | ||
* | ||
|
@@ -12,20 +12,54 @@ | |
|
||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/clk.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/mfd/tc6387xb.h> | ||
|
||
#include <asm/setup.h> | ||
#include <asm/mach/arch.h> | ||
#include <asm/mach-types.h> | ||
|
||
#include <mach/mfp-pxa25x.h> | ||
#include <mach/hardware.h> | ||
#include <mach/pxa-regs.h> | ||
#include <mach/eseries-gpio.h> | ||
#include <mach/udc.h> | ||
|
||
#include "generic.h" | ||
#include "eseries.h" | ||
#include "clock.h" | ||
|
||
/* -------------------- e330 tc6387xb parameters -------------------- */ | ||
|
||
static struct tc6387xb_platform_data e330_tc6387xb_info = { | ||
.enable = &eseries_tmio_enable, | ||
.disable = &eseries_tmio_disable, | ||
.suspend = &eseries_tmio_suspend, | ||
.resume = &eseries_tmio_resume, | ||
}; | ||
|
||
static struct platform_device e330_tc6387xb_device = { | ||
.name = "tc6387xb", | ||
.id = -1, | ||
.dev = { | ||
.platform_data = &e330_tc6387xb_info, | ||
}, | ||
.num_resources = 2, | ||
.resource = eseries_tmio_resources, | ||
}; | ||
|
||
/* --------------------------------------------------------------- */ | ||
|
||
static struct platform_device *devices[] __initdata = { | ||
&e330_tc6387xb_device, | ||
}; | ||
|
||
static void __init e330_init(void) | ||
{ | ||
eseries_register_clks(); | ||
eseries_get_tmio_gpios(); | ||
platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
pxa_set_udc_info(&e7xx_udc_mach_info); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Hardware definitions for the Toshiba eseries PDAs | ||
* Hardware definitions for the Toshiba e350 PDAs | ||
* | ||
* Copyright (c) 2003 Ian Molton <[email protected]> | ||
* | ||
|
@@ -12,20 +12,54 @@ | |
|
||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/clk.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/mfd/t7l66xb.h> | ||
|
||
#include <asm/setup.h> | ||
#include <asm/mach/arch.h> | ||
#include <asm/mach-types.h> | ||
|
||
#include <mach/mfp-pxa25x.h> | ||
#include <mach/pxa-regs.h> | ||
#include <mach/hardware.h> | ||
#include <mach/eseries-gpio.h> | ||
#include <mach/udc.h> | ||
|
||
#include "generic.h" | ||
#include "eseries.h" | ||
#include "clock.h" | ||
|
||
/* -------------------- e350 t7l66xb parameters -------------------- */ | ||
|
||
static struct t7l66xb_platform_data e350_t7l66xb_info = { | ||
.irq_base = IRQ_BOARD_START, | ||
.enable = &eseries_tmio_enable, | ||
.suspend = &eseries_tmio_suspend, | ||
.resume = &eseries_tmio_resume, | ||
}; | ||
|
||
static struct platform_device e350_t7l66xb_device = { | ||
.name = "t7l66xb", | ||
.id = -1, | ||
.dev = { | ||
.platform_data = &e350_t7l66xb_info, | ||
}, | ||
.num_resources = 2, | ||
.resource = eseries_tmio_resources, | ||
}; | ||
|
||
/* ---------------------------------------------------------- */ | ||
|
||
static struct platform_device *devices[] __initdata = { | ||
&e350_t7l66xb_device, | ||
}; | ||
|
||
static void __init e350_init(void) | ||
{ | ||
eseries_register_clks(); | ||
eseries_get_tmio_gpios(); | ||
platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
pxa_set_udc_info(&e7xx_udc_mach_info); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.