-
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.
Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
- Loading branch information
Jingoo Han
authored and
Kukjin Kim
committed
Dec 23, 2011
1 parent
384703b
commit 6e7eb17
Showing
7 changed files
with
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* linux/arch/arm/mach-exynos/dev-ohci.c | ||
* | ||
* Copyright (c) 2011 Samsung Electronics Co., Ltd. | ||
* http://www.samsung.com | ||
* | ||
* EXYNOS - OHCI support | ||
* | ||
* 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/dma-mapping.h> | ||
#include <linux/platform_device.h> | ||
|
||
#include <mach/irqs.h> | ||
#include <mach/map.h> | ||
#include <mach/ohci.h> | ||
|
||
#include <plat/devs.h> | ||
#include <plat/usb-phy.h> | ||
|
||
static struct resource exynos4_ohci_resource[] = { | ||
[0] = DEFINE_RES_MEM(EXYNOS4_PA_OHCI, SZ_256), | ||
[1] = DEFINE_RES_IRQ(IRQ_USB_HOST), | ||
}; | ||
|
||
static u64 exynos4_ohci_dma_mask = DMA_BIT_MASK(32); | ||
|
||
struct platform_device exynos4_device_ohci = { | ||
.name = "exynos-ohci", | ||
.id = -1, | ||
.num_resources = ARRAY_SIZE(exynos4_ohci_resource), | ||
.resource = exynos4_ohci_resource, | ||
.dev = { | ||
.dma_mask = &exynos4_ohci_dma_mask, | ||
.coherent_dma_mask = DMA_BIT_MASK(32), | ||
} | ||
}; | ||
|
||
void __init exynos4_ohci_set_platdata(struct exynos4_ohci_platdata *pd) | ||
{ | ||
struct exynos4_ohci_platdata *npd; | ||
|
||
npd = s3c_set_platdata(pd, sizeof(struct exynos4_ohci_platdata), | ||
&exynos4_device_ohci); | ||
|
||
if (!npd->phy_init) | ||
npd->phy_init = s5p_usb_phy_init; | ||
if (!npd->phy_exit) | ||
npd->phy_exit = s5p_usb_phy_exit; | ||
} |
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,21 @@ | ||
/* | ||
* Copyright (C) 2011 Samsung Electronics Co.Ltd | ||
* http://www.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 __MACH_EXYNOS_OHCI_H | ||
#define __MACH_EXYNOS_OHCI_H | ||
|
||
struct exynos4_ohci_platdata { | ||
int (*phy_init)(struct platform_device *pdev, int type); | ||
int (*phy_exit)(struct platform_device *pdev, int type); | ||
}; | ||
|
||
extern void exynos4_ohci_set_platdata(struct exynos4_ohci_platdata *pd); | ||
|
||
#endif /* __MACH_EXYNOS_OHCI_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
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