Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
1e281be2
Commit
1e281be2
authored
Sep 30, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Mux additions and clean-up for omap2
Mux additions and clean-up for omap2
parent
8a3b36f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
8 deletions
+23
-8
arch/arm/mach-omap2/mux.c
arch/arm/mach-omap2/mux.c
+16
-7
arch/arm/plat-omap/mux.c
arch/arm/plat-omap/mux.c
+1
-1
include/asm-arm/arch-omap/mux.h
include/asm-arm/arch-omap/mux.h
+6
-0
No files found.
arch/arm/mach-omap2/mux.c
View file @
1e281be2
...
@@ -33,18 +33,27 @@
...
@@ -33,18 +33,27 @@
#ifdef CONFIG_OMAP_MUX
#ifdef CONFIG_OMAP_MUX
/* NOTE: See mux.h for the enumeration */
struct
pin_config
__initdata_or_module
omap24xx_pins
[]
=
{
struct
pin_config
__initdata_or_module
omap24xx_pins
[]
=
{
/*
/*
*
description mux mux pull pull
debug
*
description mux mux pull pull
debug
*
offset mode ena
type
*
offset mode ena
type
*/
*/
/* 24xx I2C */
/* 24xx I2C */
MUX_CFG_24XX
(
"M19_24XX_I2C1_SCL"
,
0x111
,
0
,
0
,
0
,
1
)
MUX_CFG_24XX
(
"M19_24XX_I2C1_SCL"
,
0x111
,
0
,
0
,
0
,
1
)
MUX_CFG_24XX
(
"L15_24XX_I2C1_SDA"
,
0x112
,
0
,
0
,
0
,
1
)
MUX_CFG_24XX
(
"L15_24XX_I2C1_SDA"
,
0x112
,
0
,
0
,
0
,
1
)
MUX_CFG_24XX
(
"J15_24XX_I2C2_SCL"
,
0x113
,
0
,
0
,
0
,
1
)
MUX_CFG_24XX
(
"J15_24XX_I2C2_SCL"
,
0x113
,
0
,
0
,
0
,
1
)
MUX_CFG_24XX
(
"H19_24XX_I2C2_SDA"
,
0x114
,
0
,
0
,
0
,
1
)
MUX_CFG_24XX
(
"H19_24XX_I2C2_SDA"
,
0x114
,
0
,
0
,
0
,
1
)
MUX_CFG_24XX
(
"W19_24XX_SYS_NIRQ"
,
0x12c
,
0
,
1
,
1
,
1
)
/* Menelaus interrupt */
MUX_CFG_24XX
(
"W19_24XX_SYS_NIRQ"
,
0x12c
,
0
,
1
,
1
,
1
)
/* 24xx GPIO */
MUX_CFG_24XX
(
"Y20_24XX_GPIO60"
,
0x12c
,
3
,
0
,
0
,
1
)
MUX_CFG_24XX
(
"M15_24XX_GPIO92"
,
0x10a
,
3
,
0
,
0
,
1
)
};
};
int
__init
omap2_mux_init
(
void
)
int
__init
omap2_mux_init
(
void
)
...
...
arch/arm/plat-omap/mux.c
View file @
1e281be2
...
@@ -83,7 +83,7 @@ int __init_or_module omap_cfg_reg(const unsigned long index)
...
@@ -83,7 +83,7 @@ int __init_or_module omap_cfg_reg(const unsigned long index)
if
(
cfg
->
pu_pd_val
)
if
(
cfg
->
pu_pd_val
)
reg
|=
OMAP24XX_PULL_UP
;
reg
|=
OMAP24XX_PULL_UP
;
#ifdef CONFIG_OMAP_MUX_DEBUG
#ifdef CONFIG_OMAP_MUX_DEBUG
printk
(
"Muxing %s
: (0x%08x)
0x%02x -> 0x%02x
\n
"
,
printk
(
"Muxing %s
(0x%08x):
0x%02x -> 0x%02x
\n
"
,
cfg
->
name
,
OMAP24XX_L4_BASE
+
cfg
->
mux_reg
,
cfg
->
name
,
OMAP24XX_L4_BASE
+
cfg
->
mux_reg
,
omap_readb
(
OMAP24XX_L4_BASE
+
cfg
->
mux_reg
),
reg
);
omap_readb
(
OMAP24XX_L4_BASE
+
cfg
->
mux_reg
),
reg
);
#endif
#endif
...
...
include/asm-arm/arch-omap/mux.h
View file @
1e281be2
...
@@ -399,7 +399,13 @@ enum omap24xx_index {
...
@@ -399,7 +399,13 @@ enum omap24xx_index {
L15_24XX_I2C1_SDA
,
L15_24XX_I2C1_SDA
,
J15_24XX_I2C2_SCL
,
J15_24XX_I2C2_SCL
,
H19_24XX_I2C2_SDA
,
H19_24XX_I2C2_SDA
,
/* 24xx Menelaus interrupt */
W19_24XX_SYS_NIRQ
,
W19_24XX_SYS_NIRQ
,
/* 24xx GPIO */
Y20_24XX_GPIO60
,
M15_24XX_GPIO92
,
};
};
#ifdef CONFIG_OMAP_MUX
#ifdef CONFIG_OMAP_MUX
...
...
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