bcma: implement setting core clock mode to dynamic
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 29 Apr 2012 00:18:49 +0000 (02:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 May 2012 16:45:22 +0000 (12:45 -0400)
This patch is based on code from _ai_clkctl_cc() in brcmsmac.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/core.c

index 893f6e0..98e243c 100644 (file)
@@ -77,7 +77,7 @@ void bcma_core_set_clockmode(struct bcma_device *core,
                        pr_err("HT force timeout\n");
                break;
        case BCMA_CLKMODE_DYNAMIC:
-               pr_warn("Dynamic clockmode not supported yet!\n");
+               bcma_set32(core, BCMA_CLKCTLST, ~BCMA_CLKCTLST_FORCEHT);
                break;
        }
 }