pmc.h 775 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * drivers/clk/at91/pmc.h
  3. *
  4. * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. */
  11. #ifndef __PMC_H_
  12. #define __PMC_H_
  13. #include <linux/io.h>
  14. #include <linux/irqdomain.h>
  15. #include <linux/regmap.h>
  16. #include <linux/spinlock.h>
  17. extern spinlock_t pmc_pcr_lock;
  18. struct clk_range {
  19. unsigned long min;
  20. unsigned long max;
  21. };
  22. #define CLK_RANGE(MIN, MAX) {.min = MIN, .max = MAX,}
  23. int of_at91_get_clk_range(struct device_node *np, const char *propname,
  24. struct clk_range *range);
  25. #endif /* __PMC_H_ */