clk.c 499 B

123456789101112131415161718192021
  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. #include <asm/clk.h>
  9. unsigned long core_freq = 80000000;
  10. /*
  11. * As of now we default to device-tree provided clock
  12. * In future we can determine this in early boot
  13. */
  14. int arc_set_core_freq(unsigned long freq)
  15. {
  16. core_freq = freq;
  17. return 0;
  18. }