processor-ns9360.h 871 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * arch/arm/mach-ns9xxx/include/mach/processor-ns9360.h
  3. *
  4. * Copyright (C) 2007 by Digi International Inc.
  5. * All rights reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License version 2 as published by
  9. * the Free Software Foundation.
  10. */
  11. #ifndef __ASM_ARCH_PROCESSORNS9360_H
  12. #define __ASM_ARCH_PROCESSORNS9360_H
  13. #include <linux/init.h>
  14. void ns9360_reset(char mode);
  15. unsigned long ns9360_systemclock(void) __attribute__((const));
  16. static inline unsigned long ns9360_cpuclock(void) __attribute__((const));
  17. static inline unsigned long ns9360_cpuclock(void)
  18. {
  19. return ns9360_systemclock() / 2;
  20. }
  21. void __init ns9360_map_io(void);
  22. extern struct sys_timer ns9360_timer;
  23. int ns9360_gpio_configure(unsigned gpio, int inv, int func);
  24. #endif /* ifndef __ASM_ARCH_PROCESSORNS9360_H */