prm-regbits-24xx.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H
  2. #define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H
  3. /*
  4. * OMAP24XX Power/Reset Management register bits
  5. *
  6. * Copyright (C) 2007 Texas Instruments, Inc.
  7. * Copyright (C) 2007 Nokia Corporation
  8. *
  9. * Written by Paul Walmsley
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. #include "prm2xxx.h"
  16. #define OMAP24XX_EN_CORE_SHIFT 0
  17. #define OMAP24XX_FORCESTATE_MASK (1 << 18)
  18. #define OMAP24XX_AUTOIDLE_MASK (1 << 0)
  19. #define OMAP24XX_AUTO_EXTVOLT_MASK (1 << 15)
  20. #define OMAP24XX_SETOFF_LEVEL_SHIFT 12
  21. #define OMAP24XX_MEMRETCTRL_MASK (1 << 8)
  22. #define OMAP24XX_SETRET_LEVEL_SHIFT 6
  23. #define OMAP24XX_VOLT_LEVEL_SHIFT 0
  24. #define OMAP2420_CLKOUT2_EN_SHIFT 15
  25. #define OMAP2420_CLKOUT2_DIV_SHIFT 11
  26. #define OMAP2420_CLKOUT2_DIV_WIDTH 3
  27. #define OMAP2420_CLKOUT2_SOURCE_MASK (0x3 << 8)
  28. #define OMAP24XX_CLKOUT_EN_SHIFT 7
  29. #define OMAP24XX_CLKOUT_DIV_SHIFT 3
  30. #define OMAP24XX_CLKOUT_DIV_WIDTH 3
  31. #define OMAP24XX_CLKOUT_SOURCE_MASK (0x3 << 0)
  32. #define OMAP24XX_EMULATION_EN_SHIFT 0
  33. #define OMAP2430_PM_WKDEP_MPU_EN_MDM_SHIFT 5
  34. #define OMAP24XX_PM_WKDEP_MPU_EN_DSP_SHIFT 2
  35. #define OMAP24XX_EXTWMPU_RST_SHIFT 6
  36. #define OMAP24XX_SECU_WD_RST_SHIFT 5
  37. #define OMAP24XX_MPU_WD_RST_SHIFT 4
  38. #define OMAP24XX_SECU_VIOL_RST_SHIFT 3
  39. #endif