Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3ec77ba6
Commit
3ec77ba6
authored
Sep 17, 2013
by
Ben Collins
Committed by
Tim Gardner
Feb 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UBUNTU: SAUCE: Fixup freescale usb phy driver to work on ppc64
Signed-off-by:
Ben Collins
<
ben.c@servergy.com
>
parent
b6f56aba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drivers/usb/phy/phy-fsl-usb.c
drivers/usb/phy/phy-fsl-usb.c
+4
-2
No files found.
drivers/usb/phy/phy-fsl-usb.c
View file @
3ec77ba6
...
...
@@ -75,7 +75,7 @@ static struct fsl_otg_config fsl_otg_initdata = {
.
otg_port
=
1
,
};
#ifdef CONFIG_PPC
32
#ifdef CONFIG_PPC
static
u32
_fsl_readl_be
(
const
unsigned
__iomem
*
p
)
{
return
in_be32
(
p
);
...
...
@@ -105,7 +105,7 @@ static void (*_fsl_writel)(u32 v, unsigned __iomem *p);
#else
#define fsl_readl(addr) readl(addr)
#define fsl_writel(val, addr) writel(val, addr)
#endif
/* CONFIG_PPC
32
*/
#endif
/* CONFIG_PPC */
int
write_ulpi
(
u8
addr
,
u8
data
)
{
...
...
@@ -879,6 +879,7 @@ int usb_otg_start(struct platform_device *pdev)
if
(
pdata
->
init
&&
pdata
->
init
(
pdev
)
!=
0
)
return
-
EINVAL
;
#ifdef CONFIG_PPC
if
(
pdata
->
big_endian_mmio
)
{
_fsl_readl
=
_fsl_readl_be
;
_fsl_writel
=
_fsl_writel_be
;
...
...
@@ -886,6 +887,7 @@ int usb_otg_start(struct platform_device *pdev)
_fsl_readl
=
_fsl_readl_le
;
_fsl_writel
=
_fsl_writel_le
;
}
#endif
/* request irq */
p_otg
->
irq
=
platform_get_irq
(
pdev
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment