Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rk3576 Downstream U-Boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Frattaroli
Rk3576 Downstream U-Boot
Commits
4c0620bf
Commit
4c0620bf
authored
12 years ago
by
Tom Rini
Committed by
Albert ARIBAUD
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
am33xx: Add support, update omap3 McSPI driver
Signed-off-by:
Tom Rini
<
trini@ti.com
>
parent
6bfca503
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arch/arm/cpu/armv7/am33xx/clock.c
+5
-0
5 additions, 0 deletions
arch/arm/cpu/armv7/am33xx/clock.c
drivers/spi/omap3_spi.c
+6
-0
6 additions, 0 deletions
drivers/spi/omap3_spi.c
drivers/spi/omap3_spi.h
+5
-0
5 additions, 0 deletions
drivers/spi/omap3_spi.h
with
16 additions
and
0 deletions
arch/arm/cpu/armv7/am33xx/clock.c
+
5
−
0
View file @
4c0620bf
...
...
@@ -148,6 +148,11 @@ static void enable_per_clocks(void)
writel
(
PRCM_MOD_EN
,
&
cmper
->
cpgmac0clkctrl
);
while
((
readl
(
&
cmper
->
cpgmac0clkctrl
)
&
CPGMAC0_IDLE
)
!=
PRCM_FUNCTL
)
;
/* spi0 */
writel
(
PRCM_MOD_EN
,
&
cmper
->
spi0clkctrl
);
while
(
readl
(
&
cmper
->
spi0clkctrl
)
!=
PRCM_MOD_EN
)
;
}
static
void
mpu_pll_config
(
void
)
...
...
This diff is collapsed.
Click to expand it.
drivers/spi/omap3_spi.c
+
6
−
0
View file @
4c0620bf
...
...
@@ -86,15 +86,21 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
case
0
:
ds
->
regs
=
(
struct
mcspi
*
)
OMAP3_MCSPI1_BASE
;
break
;
#ifdef OMAP3_MCSPI2_BASE
case
1
:
ds
->
regs
=
(
struct
mcspi
*
)
OMAP3_MCSPI2_BASE
;
break
;
#endif
#ifdef OMAP3_MCSPI3_BASE
case
2
:
ds
->
regs
=
(
struct
mcspi
*
)
OMAP3_MCSPI3_BASE
;
break
;
#endif
#ifdef OMAP3_MCSPI4_BASE
case
3
:
ds
->
regs
=
(
struct
mcspi
*
)
OMAP3_MCSPI4_BASE
;
break
;
#endif
default:
printf
(
"SPI error: unsupported bus %i. \
Supported busses 0 - 3
\n
"
,
bus
);
...
...
This diff is collapsed.
Click to expand it.
drivers/spi/omap3_spi.h
+
5
−
0
View file @
4c0620bf
...
...
@@ -30,10 +30,15 @@
#ifndef _OMAP3_SPI_H_
#define _OMAP3_SPI_H_
#ifdef CONFIG_AM33XX
#define OMAP3_MCSPI1_BASE 0x48030100
#define OMAP3_MCSPI2_BASE 0x481A0100
#else
#define OMAP3_MCSPI1_BASE 0x48098000
#define OMAP3_MCSPI2_BASE 0x4809A000
#define OMAP3_MCSPI3_BASE 0x480B8000
#define OMAP3_MCSPI4_BASE 0x480BA000
#endif
#define OMAP3_MCSPI_MAX_FREQ 48000000
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment