Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
d78bae00
Commit
d78bae00
authored
Jul 04, 2006
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge source.mvista.com:/home/git/linux-omap-2.6
parents
de7e6976
23b266eb
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
373 additions
and
29 deletions
+373
-29
arch/arm/mach-omap2/devices.c
arch/arm/mach-omap2/devices.c
+20
-4
drivers/i2c/chips/menelaus.c
drivers/i2c/chips/menelaus.c
+5
-0
drivers/spi/omap2_mcspi.c
drivers/spi/omap2_mcspi.c
+347
-24
include/asm-arm/arch-omap/mcspi.h
include/asm-arm/arch-omap/mcspi.h
+0
-1
include/asm-arm/arch-omap/menelaus.h
include/asm-arm/arch-omap/menelaus.h
+1
-0
No files found.
arch/arm/mach-omap2/devices.c
View file @
d78bae00
...
...
@@ -112,29 +112,45 @@ static inline void omap_init_sti(void) {}
#define OMAP2_MCSPI1_BASE 0x48098000
#define OMAP2_MCSPI2_BASE 0x4809a000
/* FIXME: use resources instead */
static
struct
omap2_mcspi_platform_config
omap2_mcspi1_config
=
{
.
base
=
io_p2v
(
OMAP2_MCSPI1_BASE
),
.
num_cs
=
4
,
};
static
struct
resource
omap2_mcspi1_resources
[]
=
{
{
.
start
=
OMAP2_MCSPI1_BASE
,
.
end
=
OMAP2_MCSPI1_BASE
+
0xff
,
.
flags
=
IORESOURCE_MEM
,
},
};
struct
platform_device
omap2_mcspi1
=
{
.
name
=
"omap2_mcspi"
,
.
id
=
1
,
.
num_resources
=
ARRAY_SIZE
(
omap2_mcspi1_resources
),
.
resource
=
omap2_mcspi1_resources
,
.
dev
=
{
.
platform_data
=
&
omap2_mcspi1_config
,
},
};
static
struct
omap2_mcspi_platform_config
omap2_mcspi2_config
=
{
.
base
=
io_p2v
(
OMAP2_MCSPI2_BASE
),
.
num_cs
=
2
,
};
static
struct
resource
omap2_mcspi2_resources
[]
=
{
{
.
start
=
OMAP2_MCSPI2_BASE
,
.
end
=
OMAP2_MCSPI2_BASE
+
0xff
,
.
flags
=
IORESOURCE_MEM
,
},
};
struct
platform_device
omap2_mcspi2
=
{
.
name
=
"omap2_mcspi"
,
.
id
=
2
,
.
num_resources
=
ARRAY_SIZE
(
omap2_mcspi2_resources
),
.
resource
=
omap2_mcspi2_resources
,
.
dev
=
{
.
platform_data
=
&
omap2_mcspi2_config
,
},
...
...
drivers/i2c/chips/menelaus.c
View file @
d78bae00
...
...
@@ -594,6 +594,11 @@ int menelaus_set_vmmc(unsigned int mV)
}
EXPORT_SYMBOL
(
menelaus_set_vmmc
);
int
menelaus_get_slot_pin_states
(
void
)
{
return
menelaus_read_reg
(
MENELAUS_MCT_PIN_ST
);
}
EXPORT_SYMBOL
(
menelaus_get_slot_pin_states
);
/*-----------------------------------------------------------------------*/
...
...
drivers/spi/omap2_mcspi.c
View file @
d78bae00
This diff is collapsed.
Click to expand it.
include/asm-arm/arch-omap/mcspi.h
View file @
d78bae00
...
...
@@ -2,7 +2,6 @@
#define _OMAP2_MCSPI_H
struct
omap2_mcspi_platform_config
{
unsigned
long
base
;
unsigned
short
num_cs
;
};
...
...
include/asm-arm/arch-omap/menelaus.h
View file @
d78bae00
...
...
@@ -18,6 +18,7 @@ extern int menelaus_set_vio(unsigned int mV);
extern
int
menelaus_set_vmmc
(
unsigned
int
mV
);
extern
int
menelaus_set_vdcdc
(
int
dcdc
,
unsigned
int
mV
);
extern
int
menelaus_set_slot_sel
(
int
enable
);
extern
int
menelaus_get_slot_pin_states
(
void
);
#if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_MENELAUS)
#define omap_has_menelaus() 1
...
...
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