Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uboot-i9100
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
onny
uboot-i9100
Commits
9e7b5ce6
Commit
9e7b5ce6
authored
18 years ago
by
Markus Klotzbuecher
Committed by
Markus Klotzbcher
18 years ago
Browse files
Options
Downloads
Patches
Plain Diff
delta board: one more DA9030 fix.
parent
f2841d37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/delta/delta.c
+18
-11
18 additions, 11 deletions
board/delta/delta.c
include/configs/delta.h
+1
-0
1 addition, 0 deletions
include/configs/delta.h
with
19 additions
and
11 deletions
board/delta/delta.c
+
18
−
11
View file @
9e7b5ce6
...
@@ -79,27 +79,34 @@ int dram_init (void)
...
@@ -79,27 +79,34 @@ int dram_init (void)
return
0
;
return
0
;
}
}
/* initialize the DA9030 Power Controller */
void
i2c_init_board
()
static
void
init_DA9030
()
{
{
uchar
addr
=
(
uchar
)
DA9030_I2C_ADDR
,
val
=
0
;
CKENB
|=
(
CKENB_4_I2C
)
;
/* setup I2C GPIO's */
/* setup I2C GPIO's */
GPIO32
=
0x801
;
/* SCL = Alt. Fkt. 1 */
GPIO32
=
0x801
;
/* SCL = Alt. Fkt. 1 */
GPIO33
=
0x801
;
/* SDA = Alt. Fkt. 1 */
GPIO33
=
0x801
;
/* SDA = Alt. Fkt. 1 */
}
/* rising Edge on EXTON */
/* initialize the DA9030 Power Controller */
GPIO17
=
0xc800
;
/* enable pullup */
static
void
init_DA9030
()
{
uchar
addr
=
(
uchar
)
DA9030_I2C_ADDR
,
val
=
0
;
CKENB
|=
CKENB_7_GPIO
;
udelay
(
100
);
/* Rising Edge on EXTON to reset DA9030 */
GPIO17
=
0x8800
;
/* configure GPIO17, no pullup, -down */
GPDR0
|=
(
1
<<
17
);
/* GPIO17 is output */
GPDR0
|=
(
1
<<
17
);
/* GPIO17 is output */
GSDR0
=
(
1
<<
17
);
GSDR0
=
(
1
<<
17
);
GPCR0
=
(
1
<<
17
);
/* drive GPIO17 low */
GPCR0
=
(
1
<<
17
);
/* drive GPIO17 low */
udelay
(
5
);
GPSR0
=
(
1
<<
17
);
/* drive GPIO17 high */
GPSR0
=
(
1
<<
17
);
/* drive GPIO17 high */
#if CFG_DA9030_EXTON_DELAY
#if CFG_DA9030_EXTON_DELAY
udelay
((
unsigned
long
)
CFG_DA9030_EXTON_DELAY
);
/* wait for DA9030 */
udelay
((
unsigned
long
)
CFG_DA9030_EXTON_DELAY
);
/* wait for DA9030 */
#endif
#endif
GPCR0
=
(
1
<<
17
);
/* drive GPIO17 low */
GPCR0
=
(
1
<<
17
);
/* drive GPIO17 low */
GPIO17
=
0x8800
;
/* disable pullup */
/* reset the watchdog and go active (0xec) */
/* reset the watchdog and go active (0xec) */
val
=
(
SYS_CONTROL_A_HWRES_ENABLE
|
val
=
(
SYS_CONTROL_A_HWRES_ENABLE
|
...
@@ -114,14 +121,14 @@ static void init_DA9030()
...
@@ -114,14 +121,14 @@ static void init_DA9030()
i2c_reg_write
(
addr
,
REG_CONTROL_1_97
,
0xfd
);
/* disable LDO1, enable LDO6 */
i2c_reg_write
(
addr
,
REG_CONTROL_1_97
,
0xfd
);
/* disable LDO1, enable LDO6 */
i2c_reg_write
(
addr
,
LDO2_3
,
0xd1
);
/* LDO2 =1,9V, LDO3=3,1V */
i2c_reg_write
(
addr
,
LDO2_3
,
0xd1
);
/* LDO2 =1,9V, LDO3=3,1V */
i2c_reg_write
(
addr
,
LDO4_5
,
0xcc
);
/* LDO2 =1,9V, LDO3=3,1V */
i2c_reg_write
(
addr
,
LDO4_5
,
0xcc
);
/* LDO2 =1,9V, LDO3=3,1V */
i2c_reg_write
(
addr
,
LDO6_SIMCP
,
0x3e
);
/* LDO6=3,2V, SIMCP = 5V support */
i2c_reg_write
(
addr
,
LDO6_SIMCP
,
0x3e
);
/* LDO6=3,2V, SIMCP = 5V support */
i2c_reg_write
(
addr
,
LDO7_8
,
0xc9
);
/* LDO7=2,7V, LDO8=3,0V */
i2c_reg_write
(
addr
,
LDO7_8
,
0xc9
);
/* LDO7=2,7V, LDO8=3,0V */
i2c_reg_write
(
addr
,
LDO9_12
,
0xec
);
/* LDO9=3,0V, LDO12=3,2V */
i2c_reg_write
(
addr
,
LDO9_12
,
0xec
);
/* LDO9=3,0V, LDO12=3,2V */
i2c_reg_write
(
addr
,
BUCK
,
0x0c
);
/* Buck=1.2V */
i2c_reg_write
(
addr
,
BUCK
,
0x0c
);
/* Buck=1.2V */
i2c_reg_write
(
addr
,
REG_CONTROL_2_98
,
0x7f
);
/* All LDO'S on 8,9,10,11,12,14 */
i2c_reg_write
(
addr
,
REG_CONTROL_2_98
,
0x7f
);
/* All LDO'S on 8,9,10,11,12,14 */
i2c_reg_write
(
addr
,
LDO_10_11
,
0xcc
);
/* LDO10=3.0V LDO11=3.0V */
i2c_reg_write
(
addr
,
LDO_10_11
,
0xcc
);
/* LDO10=3.0V LDO11=3.0V */
i2c_reg_write
(
addr
,
LDO_15
,
0xae
);
/* LDO15=1.8V, dislock first 3bit */
i2c_reg_write
(
addr
,
LDO_15
,
0xae
);
/* LDO15=1.8V, dislock first 3bit */
i2c_reg_write
(
addr
,
LDO_14_16
,
0x05
);
/* LDO14=2.8V, LDO16=NB */
i2c_reg_write
(
addr
,
LDO_14_16
,
0x05
);
/* LDO14=2.8V, LDO16=NB */
i2c_reg_write
(
addr
,
LDO_18_19
,
0x9c
);
/* LDO18=3.0V, LDO19=2.7V */
i2c_reg_write
(
addr
,
LDO_18_19
,
0x9c
);
/* LDO18=3.0V, LDO19=2.7V */
i2c_reg_write
(
addr
,
LDO_17_SIMCP0
,
0x2c
);
/* LDO17=3.0V, SIMCP=3V support */
i2c_reg_write
(
addr
,
LDO_17_SIMCP0
,
0x2c
);
/* LDO17=3.0V, SIMCP=3V support */
i2c_reg_write
(
addr
,
BUCK2_DVC1
,
0x9a
);
/* Buck2=1.5V plus Update support of 520 MHz */
i2c_reg_write
(
addr
,
BUCK2_DVC1
,
0x9a
);
/* Buck2=1.5V plus Update support of 520 MHz */
...
...
This diff is collapsed.
Click to expand it.
include/configs/delta.h
+
1
−
0
View file @
9e7b5ce6
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
#define CFG_I2C_SLAVE 1
/* I2C controllers address */
#define CFG_I2C_SLAVE 1
/* I2C controllers address */
#define DA9030_I2C_ADDR 0x49
/* I2C address of DA9030 */
#define DA9030_I2C_ADDR 0x49
/* I2C address of DA9030 */
#define CFG_DA9030_EXTON_DELAY 100000
/* wait x us after DA9030 reset via EXTON */
#define CFG_DA9030_EXTON_DELAY 100000
/* wait x us after DA9030 reset via EXTON */
#define CFG_I2C_INIT_BOARD 1
/* #define CONFIG_HW_WATCHDOG 1 /\* Required for hitting the DA9030 WD *\/ */
/* #define CONFIG_HW_WATCHDOG 1 /\* Required for hitting the DA9030 WD *\/ */
/*
/*
...
...
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