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
nexedi
linux
Commits
e33a316a
Commit
e33a316a
authored
Jan 24, 2017
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'omap-for-v4.11/omap1' into omap-for-v4.11/soc
parents
8dd6666f
57b6bfcf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
32 deletions
+40
-32
MAINTAINERS
MAINTAINERS
+16
-3
arch/arm/mach-omap1/include/mach/usb.h
arch/arm/mach-omap1/include/mach/usb.h
+0
-2
arch/arm/mach-omap1/usb.c
arch/arm/mach-omap1/usb.c
+24
-27
No files found.
MAINTAINERS
View file @
e33a316a
...
...
@@ -8909,7 +8909,20 @@ M: Josh Poimboeuf <jpoimboe@redhat.com>
S: Supported
F: tools/objtool/
OMAP SUPPORT
OMAP1 SUPPORT
M: Aaro Koskinen <aaro.koskinen@iki.fi>
M: Tony Lindgren <tony@atomide.com>
L: linux-omap@vger.kernel.org
Q: http://patchwork.kernel.org/project/linux-omap/list/
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
S: Maintained
F: arch/arm/mach-omap1/
F: arch/arm/plat-omap/
F: arch/arm/configs/omap1_defconfig
F: drivers/i2c/busses/i2c-omap.c
F: include/linux/i2c-omap.h
OMAP2+ SUPPORT
M: Tony Lindgren <tony@atomide.com>
L: linux-omap@vger.kernel.org
W: http://www.muru.com/linux/omap/
...
...
@@ -8917,8 +8930,8 @@ W: http://linux.omap.com/
Q: http://patchwork.kernel.org/project/linux-omap/list/
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
S: Maintained
F: arch/arm/
*omap*
/
F: arch/arm/
configs/omap1_defconfig
F: arch/arm/
mach-omap2
/
F: arch/arm/
plat-omap/
F: arch/arm/configs/omap2plus_defconfig
F: drivers/i2c/busses/i2c-omap.c
F: drivers/irqchip/irq-omap-intc.c
...
...
arch/arm/mach-omap1/include/mach/usb.h
View file @
e33a316a
...
...
@@ -10,8 +10,6 @@
#include <linux/platform_data/usb-omap1.h>
void
omap_otg_init
(
struct
omap_usb_config
*
config
);
#if IS_ENABLED(CONFIG_USB)
void
omap1_usb_init
(
struct
omap_usb_config
*
pdata
);
#else
...
...
arch/arm/mach-omap1/usb.c
View file @
e33a316a
/*
* Platform level USB initialization for FS USB OTG controller on omap1
and 24xx
* Platform level USB initialization for FS USB OTG controller on omap1
*
* Copyright (C) 2004 Texas Instruments, Inc.
*
...
...
@@ -58,11 +58,12 @@
#ifdef CONFIG_ARCH_OMAP_OTG
void
__init
static
void
__init
omap_otg_init
(
struct
omap_usb_config
*
config
)
{
u32
syscon
;
int
alt_pingroup
=
0
;
u16
w
;
/* NOTE: no bus or clock setup (yet?) */
...
...
@@ -87,39 +88,35 @@ omap_otg_init(struct omap_usb_config *config)
if
(
config
->
otg
)
syscon
|=
OTG_EN
;
#endif
if
(
cpu_class_is_omap1
())
pr_debug
(
"USB_TRANSCEIVER_CTRL = %03x
\n
"
,
omap_readl
(
USB_TRANSCEIVER_CTRL
));
pr_debug
(
"USB_TRANSCEIVER_CTRL = %03x
\n
"
,
omap_readl
(
USB_TRANSCEIVER_CTRL
));
pr_debug
(
"OTG_SYSCON_2 = %08x
\n
"
,
omap_readl
(
OTG_SYSCON_2
));
omap_writel
(
syscon
,
OTG_SYSCON_2
);
printk
(
"USB: hmc %d"
,
config
->
hmc_mode
);
if
(
!
alt_pingroup
)
pr
intk
(
", usb2 alt %d wires"
,
config
->
pins
[
2
]);
pr
_cont
(
", usb2 alt %d wires"
,
config
->
pins
[
2
]);
else
if
(
config
->
pins
[
0
])
pr
intk
(
", usb0 %d wires%s"
,
config
->
pins
[
0
],
pr
_cont
(
", usb0 %d wires%s"
,
config
->
pins
[
0
],
is_usb0_device
(
config
)
?
" (dev)"
:
""
);
if
(
config
->
pins
[
1
])
pr
intk
(
", usb1 %d wires"
,
config
->
pins
[
1
]);
pr
_cont
(
", usb1 %d wires"
,
config
->
pins
[
1
]);
if
(
!
alt_pingroup
&&
config
->
pins
[
2
])
pr
intk
(
", usb2 %d wires"
,
config
->
pins
[
2
]);
pr
_cont
(
", usb2 %d wires"
,
config
->
pins
[
2
]);
if
(
config
->
otg
)
pr
intk
(
", Mini-AB on usb%d"
,
config
->
otg
-
1
);
pr
intk
(
"
\n
"
);
pr
_cont
(
", Mini-AB on usb%d"
,
config
->
otg
-
1
);
pr
_cont
(
"
\n
"
);
if
(
cpu_class_is_omap1
())
{
u16
w
;
/* leave USB clocks/controllers off until needed */
w
=
omap_readw
(
ULPD_SOFT_REQ
);
w
&=
~
SOFT_USB_CLK_REQ
;
omap_writew
(
w
,
ULPD_SOFT_REQ
);
/* leave USB clocks/controllers off until needed */
w
=
omap_readw
(
ULPD_SOFT_REQ
)
;
w
&=
~
SOFT_USB_CLK_REQ
;
omap_writew
(
w
,
ULPD_SOFT_REQ
);
w
=
omap_readw
(
ULPD_CLOCK_CTRL
);
w
&=
~
USB_MCLK_EN
;
w
|=
DIS_USB_PVCI_CLK
;
omap_writew
(
w
,
ULPD_CLOCK_CTRL
);
w
=
omap_readw
(
ULPD_CLOCK_CTRL
);
w
&=
~
USB_MCLK_EN
;
w
|=
DIS_USB_PVCI_CLK
;
omap_writew
(
w
,
ULPD_CLOCK_CTRL
);
}
syscon
=
omap_readl
(
OTG_SYSCON_1
);
syscon
|=
HST_IDLE_EN
|
DEV_IDLE_EN
|
OTG_IDLE_EN
;
...
...
@@ -166,7 +163,7 @@ omap_otg_init(struct omap_usb_config *config)
}
#else
void
omap_otg_init
(
struct
omap_usb_config
*
config
)
{}
static
void
omap_otg_init
(
struct
omap_usb_config
*
config
)
{}
#endif
#if IS_ENABLED(CONFIG_USB_OMAP)
...
...
@@ -573,13 +570,13 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config)
printk
(
"USB: hmc %d"
,
config
->
hmc_mode
);
if
(
config
->
pins
[
0
])
pr
intk
(
", usb0 %d wires%s"
,
config
->
pins
[
0
],
pr
_cont
(
", usb0 %d wires%s"
,
config
->
pins
[
0
],
is_usb0_device
(
config
)
?
" (dev)"
:
""
);
if
(
config
->
pins
[
1
])
pr
intk
(
", usb1 %d wires"
,
config
->
pins
[
1
]);
pr
_cont
(
", usb1 %d wires"
,
config
->
pins
[
1
]);
if
(
config
->
pins
[
2
])
pr
intk
(
", usb2 %d wires"
,
config
->
pins
[
2
]);
pr
intk
(
"
\n
"
);
pr
_cont
(
", usb2 %d wires"
,
config
->
pins
[
2
]);
pr
_cont
(
"
\n
"
);
/* use DPLL for 48 MHz function clock */
pr_debug
(
"APLL %04x DPLL %04x REQ %04x
\n
"
,
omap_readw
(
ULPD_APLL_CTRL
),
...
...
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