clk.h 543 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
  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. #ifndef _ASM_ARC_CLK_H
  9. #define _ASM_ARC_CLK_H
  10. /* Although we can't really hide core_freq, the accessor is still better way */
  11. extern unsigned long core_freq;
  12. static inline unsigned long arc_get_core_freq(void)
  13. {
  14. return core_freq;
  15. }
  16. extern int arc_set_core_freq(unsigned long);
  17. #endif