Commit feca6e676e99102d2044b4baea433b7e6784189f
1 parent
1ab6f61a1a
Exists in
v2017.01-smarct4x
and in
40 other branches
am43xx: Only read the MPU frequency bits of CTRL_DEV_ATTR
Signed-off-by: Tom Rini <trini@ti.com>
Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff
board/ti/am43xx/board.c
... | ... | @@ -302,7 +302,10 @@ |
302 | 302 | static int get_opp_offset(int max_off, int min_off) |
303 | 303 | { |
304 | 304 | struct ctrl_stat *ctrl = (struct ctrl_stat *)CTRL_BASE; |
305 | - int opp = readl(&ctrl->dev_attr), offset, i; | |
305 | + int opp, offset, i; | |
306 | + | |
307 | + /* Bits 0:11 are defined to be the MPU_MAX_FREQ */ | |
308 | + opp = readl(&ctrl->dev_attr) & ~0xFFFFF000; | |
306 | 309 | |
307 | 310 | for (i = max_off; i >= min_off; i--) { |
308 | 311 | offset = opp & (1 << i); |