rbcfg: Implement CPU frequency control
authorThibaut VARENE <hacks@slashdirt.org>
Sat, 25 Feb 2017 16:34:50 +0000 (17:34 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 7 Oct 2017 13:00:26 +0000 (15:00 +0200)
commit2be307c99852dc859730b531e9b1cc2f9776234b
treec2fbee06ed0f16b80f6c74580836b24cd2c52948
parentb9c31c44d719c7749c058aaa13b9c1503e9968f0
rbcfg: Implement CPU frequency control

This patch implements CPU frequency control as found on several
routerboard devices.

Supported SoCs:
- QCA953X
- AR9344

Tested on hAP lite and mAP lite (QCA953x): steps of 50MHz
Tested on LHG 5 (AR9344): steps of 50MHz

On unsupported hardware, this patch is a NOP: it will not alter the
new field.
"rbcfg help" will display an empty "cpu_freq" help listing.
"rbcfg show" will not show the cpu_freq field.
"rbcfg set/get cpu_freq" will return an error code.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
[adjusted subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/boot/rbcfg/Makefile
package/boot/rbcfg/src/main.c
package/boot/rbcfg/src/rbcfg.h