regs-power.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * stmp378x: POWER register definitions
  3. *
  4. * Copyright (c) 2008 Freescale Semiconductor
  5. * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #ifndef _MACH_REGS_POWER
  22. #define _MACH_REGS_POWER
  23. #define REGS_POWER_BASE (STMP3XXX_REGS_BASE + 0x44000)
  24. #define REGS_POWER_PHYS 0x80044000
  25. #define REGS_POWER_SIZE 0x2000
  26. #define HW_POWER_CTRL 0x0
  27. #define BM_POWER_CTRL_ENIRQ_VDD5V_GT_VDDIO 0x00000001
  28. #define BP_POWER_CTRL_ENIRQ_VDD5V_GT_VDDIO 0
  29. #define BM_POWER_CTRL_ENIRQ_PSWITCH 0x00020000
  30. #define BM_POWER_CTRL_PSWITCH_IRQ 0x00100000
  31. #define BM_POWER_CTRL_CLKGATE 0x40000000
  32. #define HW_POWER_5VCTRL 0x10
  33. #define BM_POWER_5VCTRL_ENABLE_LINREG_ILIMIT 0x00000040
  34. #define HW_POWER_MINPWR 0x20
  35. #define HW_POWER_CHARGE 0x30
  36. #define HW_POWER_VDDDCTRL 0x40
  37. #define HW_POWER_VDDACTRL 0x50
  38. #define HW_POWER_VDDIOCTRL 0x60
  39. #define BM_POWER_VDDIOCTRL_TRG 0x0000001F
  40. #define BP_POWER_VDDIOCTRL_TRG 0
  41. #define HW_POWER_STS 0xC0
  42. #define BM_POWER_STS_VBUSVALID 0x00000002
  43. #define BM_POWER_STS_BVALID 0x00000004
  44. #define BM_POWER_STS_AVALID 0x00000008
  45. #define BM_POWER_STS_DC_OK 0x00000200
  46. #define HW_POWER_RESET 0x100
  47. #define HW_POWER_DEBUG 0x110
  48. #define BM_POWER_DEBUG_BVALIDPIOLOCK 0x00000002
  49. #define BM_POWER_DEBUG_AVALIDPIOLOCK 0x00000004
  50. #define BM_POWER_DEBUG_VBUSVALIDPIOLOCK 0x00000008
  51. #endif