Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sami Nurmenniemi
u-boot-stm32
Commits
8f9b80ff
Commit
8f9b80ff
authored
Oct 20, 2011
by
Sergei Poselenov
Browse files
RT #72064. Renamed register name: wtr -> bwtr. Ditto in defines
(BWR - > BWTR).
parent
58eb57ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
board/stm/stm3220g-eval/board.c
View file @
8f9b80ff
...
...
@@ -170,8 +170,8 @@ int misc_init_r(void)
STM32_FSMC
->
cs
[
i
].
bcr
=
CONFIG_SYS_FSMC_FLASH_BCR
;
STM32_FSMC
->
cs
[
i
].
btr
=
CONFIG_SYS_FSMC_FLASH_BTR
;
# if defined(CONFIG_SYS_FSMC_FLASH_BWR)
STM32_FSMC
->
wt
[
i
].
wtr
=
CONFIG_SYS_FSMC_FLASH_BWR
;
# if defined(CONFIG_SYS_FSMC_FLASH_BW
T
R)
STM32_FSMC
->
wt
[
i
].
b
wtr
=
CONFIG_SYS_FSMC_FLASH_BW
T
R
;
# endif
#endif
/* CONFIG_SYS_NO_FLASH */
...
...
@@ -204,8 +204,8 @@ int dram_init(void)
/* Step.1 */
STM32_FSMC
->
cs
[
i
].
bcr
=
CONFIG_SYS_FSMC_PSRAM_BCR
;
STM32_FSMC
->
cs
[
i
].
btr
=
CONFIG_SYS_FSMC_PSRAM_BTR
;
# if defined(CONFIG_SYS_FSMC_PSRAM_BWR)
STM32_FSMC
->
wt
[
i
].
wtr
=
CONFIG_SYS_FSMC_PSRAM_BWR
;
# if defined(CONFIG_SYS_FSMC_PSRAM_BW
T
R)
STM32_FSMC
->
wt
[
i
].
b
wtr
=
CONFIG_SYS_FSMC_PSRAM_BW
T
R
;
# endif
rv
=
stm32f2_gpio_config
(
&
ctrl_gpio
,
STM32F2_GPIO_ROLE_GPOUT
);
...
...
@@ -236,7 +236,7 @@ int dram_init(void)
/* Step.8 */
STM32_FSMC
->
cs
[
i
].
bcr
=
0x00005059
;
STM32_FSMC
->
cs
[
i
].
btr
=
0x100106F2
;
STM32_FSMC
->
wt
[
i
].
wtr
=
0x100107F2
;
STM32_FSMC
->
wt
[
i
].
b
wtr
=
0x100107F2
;
/* Step.9 */
stm32f2_gpout_set
(
&
ctrl_gpio
,
1
);
...
...
include/asm-arm/arch-stm32/stm32.h
View file @
8f9b80ff
...
...
@@ -107,7 +107,7 @@ struct stm32_fsmc_regs {
}
cs
[
4
];
u32
rsv0
[
57
];
struct
{
u32
wtr
;
/* Write timing */
u32
b
wtr
;
/* Write timing */
u32
rsv1
;
}
wt
[
4
];
};
...
...
include/configs/stm3220g-eval.h
View file @
8f9b80ff
...
...
@@ -120,7 +120,7 @@
#undef CONFIG_SYS_RAM_BURST
#define CONFIG_SYS_FSMC_PSRAM_BCR 0x00005059
#define CONFIG_SYS_FSMC_PSRAM_BTR 0x10000702
#define CONFIG_SYS_FSMC_PSRAM_BWR 0x10000602
#define CONFIG_SYS_FSMC_PSRAM_BW
T
R 0x10000602
#define CONFIG_SYS_RAM_BASE (0x60000000 + \
((CONFIG_SYS_RAM_CS - 1) * 0x4000000))
...
...
@@ -132,7 +132,7 @@
#define CONFIG_SYS_FSMC_FLASH_BCR 0x00005015
#define CONFIG_SYS_FSMC_FLASH_BTR 0x00010903
#define CONFIG_SYS_FSMC_FLASH_BWR 0x00010803
#define CONFIG_SYS_FSMC_FLASH_BW
T
R 0x00010803
#define CONFIG_SYS_FLASH_BANK1_BASE (0x60000000 + \
((CONFIG_SYS_FLASH_CS - 1) * \
...
...
Write
Preview
Supports
Markdown
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