-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds usb ehci device definition for samsung s5p cpus. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Joonyoung Shim
authored and
Greg Kroah-Hartman
committed
Apr 13, 2011
1 parent
b750106
commit 3e11266
Showing
6 changed files
with
82 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright (C) 2011 Samsung Electronics Co.Ltd | ||
* Author: Joonyoung Shim <jy0922.shim@samsung.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. | ||
* | ||
*/ | ||
|
||
#include <linux/platform_device.h> | ||
#include <mach/irqs.h> | ||
#include <mach/map.h> | ||
#include <plat/devs.h> | ||
#include <plat/ehci.h> | ||
#include <plat/usb-phy.h> | ||
|
||
/* USB EHCI Host Controller registration */ | ||
static struct resource s5p_ehci_resource[] = { | ||
[0] = { | ||
.start = S5P_PA_EHCI, | ||
.end = S5P_PA_EHCI + SZ_256 - 1, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
[1] = { | ||
.start = IRQ_USB_HOST, | ||
.end = IRQ_USB_HOST, | ||
.flags = IORESOURCE_IRQ, | ||
} | ||
}; | ||
|
||
static u64 s5p_device_ehci_dmamask = 0xffffffffUL; | ||
|
||
struct platform_device s5p_device_ehci = { | ||
.name = "s5p-ehci", | ||
.id = -1, | ||
.num_resources = ARRAY_SIZE(s5p_ehci_resource), | ||
.resource = s5p_ehci_resource, | ||
.dev = { | ||
.dma_mask = &s5p_device_ehci_dmamask, | ||
.coherent_dma_mask = 0xffffffffUL | ||
} | ||
}; | ||
|
||
void __init s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd) | ||
{ | ||
s3c_set_platdata(pd, sizeof(struct s5p_ehci_platdata), | ||
&s5p_device_ehci); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright (C) 2011 Samsung Electronics Co.Ltd | ||
* Author: Joonyoung Shim <jy0922.shim@samsung.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. | ||
*/ | ||
|
||
#ifndef __PLAT_S5P_EHCI_H | ||
#define __PLAT_S5P_EHCI_H | ||
|
||
struct s5p_ehci_platdata { | ||
int (*phy_init)(struct platform_device *pdev, int type); | ||
int (*phy_exit)(struct platform_device *pdev, int type); | ||
}; | ||
|
||
extern void s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd); | ||
|
||
#endif /* __PLAT_S5P_EHCI_H */ |
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