Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
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
vesta
u-boot-2015.04
Commits
35269d3f
Commit
35269d3f
authored
14 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-coldfire
parents
6e85d07a
adf55679
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/m68k/cpu/mcf5445x/cpu_init.c
+29
-2
29 additions, 2 deletions
arch/m68k/cpu/mcf5445x/cpu_init.c
arch/m68k/include/asm/m5445x.h
+1
-0
1 addition, 0 deletions
arch/m68k/include/asm/m5445x.h
with
30 additions
and
2 deletions
arch/m68k/cpu/mcf5445x/cpu_init.c
+
29
−
2
View file @
35269d3f
...
...
@@ -185,8 +185,19 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
struct
fec_info_s
*
info
=
(
struct
fec_info_s
*
)
dev
->
priv
;
if
(
setclear
)
{
#ifdef CONFIG_SYS_FEC_NO_SHARED_PHY
if
(
info
->
iobase
==
CONFIG_SYS_FEC0_IOBASE
)
gpio
->
par_feci2c
|=
(
GPIO_PAR_FECI2C_MDC0_MDC0
|
GPIO_PAR_FECI2C_MDIO0_MDIO0
);
else
gpio
->
par_feci2c
|=
(
GPIO_PAR_FECI2C_MDC1_MDC1
|
GPIO_PAR_FECI2C_MDIO1_MDIO1
);
#else
gpio
->
par_feci2c
|=
(
GPIO_PAR_FECI2C_MDC0_MDC0
|
GPIO_PAR_FECI2C_MDIO0_MDIO0
);
#endif
if
(
info
->
iobase
==
CONFIG_SYS_FEC0_IOBASE
)
gpio
->
par_fec
|=
GPIO_PAR_FEC_FEC0_RMII_GPIO
;
...
...
@@ -196,10 +207,19 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
gpio
->
par_feci2c
&=
~
(
GPIO_PAR_FECI2C_MDC0_MDC0
|
GPIO_PAR_FECI2C_MDIO0_MDIO0
);
if
(
info
->
iobase
==
CONFIG_SYS_FEC0_IOBASE
)
if
(
info
->
iobase
==
CONFIG_SYS_FEC0_IOBASE
)
{
#ifdef CONFIG_SYS_FEC_FULL_MII
gpio
->
par_fec
|=
GPIO_PAR_FEC_FEC0_MII
;
#else
gpio
->
par_fec
&=
GPIO_PAR_FEC_FEC0_UNMASK
;
else
#endif
}
else
{
#ifdef CONFIG_SYS_FEC_FULL_MII
gpio
->
par_fec
|=
GPIO_PAR_FEC_FEC1_MII
;
#else
gpio
->
par_fec
&=
GPIO_PAR_FEC_FEC1_UNMASK
;
#endif
}
}
return
0
;
}
...
...
@@ -238,6 +258,10 @@ int cfspi_claim_bus(uint bus, uint cs)
gpio
->
par_dspi
&=
~
GPIO_PAR_DSPI_PCS2_PCS2
;
gpio
->
par_dspi
|=
GPIO_PAR_DSPI_PCS2_PCS2
;
break
;
case
3
:
gpio
->
par_dma
&=
GPIO_PAR_DMA_DACK0_UNMASK
;
gpio
->
par_dma
|=
GPIO_PAR_DMA_DACK0_PCS3
;
break
;
case
5
:
gpio
->
par_dspi
&=
~
GPIO_PAR_DSPI_PCS5_PCS5
;
gpio
->
par_dspi
|=
GPIO_PAR_DSPI_PCS5_PCS5
;
...
...
@@ -264,6 +288,9 @@ void cfspi_release_bus(uint bus, uint cs)
case
2
:
gpio
->
par_dspi
&=
~
GPIO_PAR_DSPI_PCS2_PCS2
;
break
;
case
3
:
gpio
->
par_dma
&=
GPIO_PAR_DMA_DACK0_UNMASK
;
break
;
case
5
:
gpio
->
par_dspi
&=
~
GPIO_PAR_DSPI_PCS5_PCS5
;
break
;
...
...
This diff is collapsed.
Click to expand it.
arch/m68k/include/asm/m5445x.h
+
1
−
0
View file @
35269d3f
...
...
@@ -314,6 +314,7 @@
#define GPIO_PAR_DMA_DREQ1_GPIO (0x00)
#define GPIO_PAR_DMA_DACK0_UNMASK (0xF3)
#define GPIO_PAR_DMA_DACK0_DACK1 (0x0C)
#define GPIO_PAR_DMA_DACK0_PCS3 (0x08)
#define GPIO_PAR_DMA_DACK0_ULPI_DIR (0x04)
#define GPIO_PAR_DMA_DACK0_GPIO (0x00)
#define GPIO_PAR_DMA_DREQ0_DREQ0 (0x01)
...
...
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