cpuidle-imx6q.c 627 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2012 Freescale Semiconductor, Inc.
  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/cpuidle.h>
  9. #include <linux/module.h>
  10. #include <asm/cpuidle.h>
  11. #include "cpuidle.h"
  12. static struct cpuidle_driver imx6q_cpuidle_driver = {
  13. .name = "imx6q_cpuidle",
  14. .owner = THIS_MODULE,
  15. .en_core_tk_irqen = 1,
  16. .states[0] = ARM_CPUIDLE_WFI_STATE,
  17. .state_count = 1,
  18. };
  19. int __init imx6q_cpuidle_init(void)
  20. {
  21. return imx_cpuidle_init(&imx6q_cpuidle_driver);
  22. }