Commit 43dd8f9af36de4c50e5969652ba9f97176d088a3
1 parent
ee8c4fb6c1
Exists in
v3.2_SMARCT335xPSP_04.06.00.11
and in
2 other branches
Add support (0001-am335x-Re-enable-Turbo-and-Nitro-modes-for-Beaglebon.patch) for Beaglebone Black
Showing 1 changed file with 14 additions and 0 deletions Side-by-side Diff
arch/arm/mach-omap2/board-am335xevm.c
... | ... | @@ -2535,6 +2535,20 @@ |
2535 | 2535 | |
2536 | 2536 | am335x_opp_update(); |
2537 | 2537 | |
2538 | + /* | |
2539 | + * For now, Beaglebone Black uses PG 2.0 that are speed binned and operate | |
2540 | + * up to 1GHz. So re-enable Turbo and Nitro modes, | |
2541 | + */ | |
2542 | + if (!strncmp("A335BNLT", config.name, 8)) { | |
2543 | + struct device *mpu_dev; | |
2544 | + | |
2545 | + mpu_dev = omap_device_get_by_hwmod_name("mpu"); | |
2546 | + opp_enable(mpu_dev, | |
2547 | + AM33XX_ES2_0_OPPTURBO_FREQ); | |
2548 | + opp_enable(mpu_dev, | |
2549 | + AM33XX_ES2_0_OPPNITRO_FREQ); | |
2550 | + } | |
2551 | + | |
2538 | 2552 | /* SmartReflex also requires board information. */ |
2539 | 2553 | am33xx_sr_init(); |
2540 | 2554 |