projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DRA7: add ABB setup for MPU voltage domain
[oweals/u-boot.git]
/
arch
/
arm
/
cpu
/
armv7
/
omap5
/
abb.c
diff --git
a/arch/arm/cpu/armv7/omap5/abb.c
b/arch/arm/cpu/armv7/omap5/abb.c
index 31b679516ff2c93547f1b5f52ddec2a246882e6d..3bf88979e5d62bad3a5565e8cef19e77aada065e 100644
(file)
--- a/
arch/arm/cpu/armv7/omap5/abb.c
+++ b/
arch/arm/cpu/armv7/omap5/abb.c
@@
-28,18
+28,25
@@
s8 abb_setup_ldovbb(u32 fuse, u32 ldovbb)
{
u32 vset;
s8 abb_setup_ldovbb(u32 fuse, u32 ldovbb)
{
u32 vset;
+ u32 fuse_enable_mask = OMAP5_ABB_FUSE_ENABLE_MASK;
+ u32 fuse_vset_mask = OMAP5_ABB_FUSE_VSET_MASK;
+ if (!is_omap54xx()) {
+ /* DRA7 */
+ fuse_enable_mask = DRA7_ABB_FUSE_ENABLE_MASK;
+ fuse_vset_mask = DRA7_ABB_FUSE_VSET_MASK;
+ }
/*
* ABB parameters must be properly fused
* otherwise ABB should be disabled
*/
vset = readl(fuse);
/*
* ABB parameters must be properly fused
* otherwise ABB should be disabled
*/
vset = readl(fuse);
- if (!(vset &
OMAP5_ABB_FUSE_ENABLE_MASK
))
+ if (!(vset &
fuse_enable_mask
))
return -1;
/* prepare VSET value for LDOVBB mux register */
return -1;
/* prepare VSET value for LDOVBB mux register */
- vset &=
OMAP5_ABB_FUSE_VSET_MASK
;
- vset >>= ffs(
OMAP5_ABB_FUSE_VSET_MASK
) - 1;
+ vset &=
fuse_vset_mask
;
+ vset >>= ffs(
fuse_vset_mask
) - 1;
vset <<= ffs(OMAP5_ABB_LDOVBBMPU_VSET_OUT_MASK) - 1;
vset |= OMAP5_ABB_LDOVBBMPU_MUX_CTRL_MASK;
vset <<= ffs(OMAP5_ABB_LDOVBBMPU_VSET_OUT_MASK) - 1;
vset |= OMAP5_ABB_LDOVBBMPU_MUX_CTRL_MASK;