clock-pxa2xx.c 642 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * linux/arch/arm/mach-pxa/clock-pxa2xx.c
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #include <linux/module.h>
  9. #include <linux/kernel.h>
  10. #include <linux/init.h>
  11. #include <mach/pxa2xx-regs.h>
  12. #include "clock.h"
  13. void clk_pxa2xx_cken_enable(struct clk *clk)
  14. {
  15. CKEN |= 1 << clk->cken;
  16. }
  17. void clk_pxa2xx_cken_disable(struct clk *clk)
  18. {
  19. CKEN &= ~(1 << clk->cken);
  20. }
  21. const struct clkops clk_pxa2xx_cken_ops = {
  22. .enable = clk_pxa2xx_cken_enable,
  23. .disable = clk_pxa2xx_cken_disable,
  24. };