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
d8d9de1a
Commit
d8d9de1a
authored
18 years ago
by
Markus Klotzbuecher
Committed by
Markus Klotzbuecher
18 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update the SPC1920 CMB PLD driver
parent
3f34f869
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/spc1920/pld.h
+1
-1
1 addition, 1 deletion
board/spc1920/pld.h
include/configs/spc1920.h
+7
-9
7 additions, 9 deletions
include/configs/spc1920.h
with
8 additions
and
10 deletions
board/spc1920/pld.h
+
1
−
1
View file @
d8d9de1a
...
...
@@ -5,8 +5,8 @@ typedef struct spc1920_pld {
uchar
com1_en
;
uchar
dsp_reset
;
uchar
dsp_hpi_on
;
uchar
superv_mode
;
uchar
codec_dsp_power_en
;
uchar
clk2_en
;
uchar
clk3_select
;
uchar
clk4_select
;
}
spc1920_pld_t
;
...
...
This diff is collapsed.
Click to expand it.
include/configs/spc1920.h
+
7
−
9
View file @
d8d9de1a
...
...
@@ -89,7 +89,7 @@
| CFG_CMD_PING \
| CFG_CMD_DHCP \
| CFG_CMD_IMMAP \
| CFG_CMD_I2C \
| CFG_CMD_I2C \
| CFG_CMD_MII)
/* & ~( CFG_CMD_NET)) */
...
...
@@ -217,9 +217,9 @@
#define I2C_TRISTATE (immr->im_cpm.cp_pbdir &= ~PB_SDA)
#define I2C_READ ((immr->im_cpm.cp_pbdat & PB_SDA) != 0)
#define I2C_SDA(bit) if(bit) immr->im_cpm.cp_pbdat |= PB_SDA; \
else immr->im_cpm.cp_pbdat &= ~PB_SDA
else immr->im_cpm.cp_pbdat &= ~PB_SDA
#define I2C_SCL(bit) if(bit) immr->im_cpm.cp_pbdat |= PB_SCL; \
else immr->im_cpm.cp_pbdat &= ~PB_SCL
else immr->im_cpm.cp_pbdat &= ~PB_SCL
#define I2C_DELAY udelay(2)
/* 1/4 I2C clock duration */
#endif
/* CONFIG_SOFT_I2C */
#endif
...
...
@@ -386,9 +386,11 @@
#define HPI_HPID_NOINC_2 HPI_REG(0x3000000 + 2)
#endif
/* CONFIG_SPC1920_HPI_TEST */
/* PLD CS5 */
/*
* PLD CS5
*/
#define CFG_SPC1920_PLD_BASE 0x80000000
#define CFG_PRELIM_OR5_AM 0xfff
f8
000
#define CFG_PRELIM_OR5_AM 0xfff
00
000
#define CFG_OR5_PRELIM (CFG_PRELIM_OR5_AM | \
OR_CSNT_SAM | \
...
...
@@ -399,10 +401,6 @@
#define CFG_BR5_PRELIM ((CFG_SPC1920_PLD_BASE & BR_BA_MSK) | BR_PS_8 | BR_V);
/* #define CFG_PLD_BASE 0x30000000 */
/* #define CFG_OR5_PRELIM 0xffff1110 */
/* #define CFG_BR5_PRELIM 0x30000401 */
/*
* Internal Definitions
*
...
...
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