regs-apbc.h 721 B

123456789101112131415161718192021222324
  1. /*
  2. * linux/arch/arm/mach-mmp/include/mach/regs-apbc.h
  3. *
  4. * Application Peripheral Bus Clock Unit
  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 version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_MACH_REGS_APBC_H
  11. #define __ASM_MACH_REGS_APBC_H
  12. #include <mach/addr-map.h>
  13. /* Common APB clock register bit definitions */
  14. #define APBC_APBCLK (1 << 0) /* APB Bus Clock Enable */
  15. #define APBC_FNCLK (1 << 1) /* Functional Clock Enable */
  16. #define APBC_RST (1 << 2) /* Reset Generation */
  17. /* Functional Clock Selection Mask */
  18. #define APBC_FNCLKSEL(x) (((x) & 0xf) << 4)
  19. #endif /* __ASM_MACH_REGS_APBC_H */