mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 05:24:47 +08:00
81f280e22f
To allow multiple platforms to use the PXA27x OHCI driver, the platform code needs to be moved into the board specific files in arch/arm/mach-pxa. This patch does this for mainstone and adds preliminary hooks to allow other boards to use the driver. This has been compile tested for mainstone and successfully run on Spitz (Sharp Zaurus SL-C3000) with the addition of an appropriate board support file. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Nicolas Pitre <nico@cam.org> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 lines
360 B
C
19 lines
360 B
C
#ifndef ASMARM_ARCH_OHCI_H
|
|
#define ASMARM_ARCH_OHCI_H
|
|
|
|
struct device;
|
|
|
|
struct pxaohci_platform_data {
|
|
int (*init)(struct device *);
|
|
void (*exit)(struct device *);
|
|
|
|
int port_mode;
|
|
#define PMM_NPS_MODE 1
|
|
#define PMM_GLOBAL_MODE 2
|
|
#define PMM_PERPORT_MODE 3
|
|
};
|
|
|
|
extern void pxa_set_ohci_info(struct pxaohci_platform_data *info);
|
|
|
|
#endif
|