projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28fe4d5
)
rockchip: rk3288: use grf structure to access soc_con2
author
Kever Yang
<
[email protected]
>
Fri, 29 Mar 2019 01:09:03 +0000
(09:09 +0800)
committer
Philipp Tomsich
<
[email protected]
>
Wed, 1 May 2019 07:40:58 +0000
(09:40 +0200)
Prefer to use structure to access register if we can.
Signed-off-by: Kever Yang <
[email protected]
>
Reviewed-by: Philipp Tomsich <
[email protected]
>
arch/arm/mach-rockchip/rk3288/rk3288.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/rk3288/rk3288.c
b/arch/arm/mach-rockchip/rk3288/rk3288.c
index af3a465cc32a49eba1d73c3fc814241ebdf1d6ed..987fae544ccf7a8684aae6603966e92eda7a007e 100644
(file)
--- a/
arch/arm/mach-rockchip/rk3288/rk3288.c
+++ b/
arch/arm/mach-rockchip/rk3288/rk3288.c
@@
-4,15
+4,17
@@
*/
#include <asm/io.h>
#include <asm/arch-rockchip/hardware.h>
+#include <asm/arch-rockchip/grf_rk3288.h>
-#define GRF_
SOC_CON2 0xff77024c
+#define GRF_
BASE 0xff770000
int arch_cpu_init(void)
{
/* We do some SoC one time setting here. */
+ struct rk3288_grf * const grf = (void *)GRF_BASE;
/* Use rkpwm by default */
- rk_setreg(
GRF_SOC_CON
2, 1 << 0);
+ rk_setreg(
&grf->soc_con
2, 1 << 0);
return 0;
}