regs-power.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * stmp37xx: 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 HW_POWER_CTRL 0x0
  25. #define BM_POWER_CTRL_CLKGATE 0x40000000
  26. #define HW_POWER_5VCTRL 0x10
  27. #define HW_POWER_MINPWR 0x20
  28. #define HW_POWER_CHARGE 0x30
  29. #define HW_POWER_VDDDCTRL 0x40
  30. #define HW_POWER_VDDACTRL 0x50
  31. #define HW_POWER_VDDIOCTRL 0x60
  32. #define BM_POWER_VDDIOCTRL_TRG 0x0000001F
  33. #define BP_POWER_VDDIOCTRL_TRG 0
  34. #define HW_POWER_STS 0xB0
  35. #define BM_POWER_STS_VBUSVALID 0x00000002
  36. #define BM_POWER_STS_BVALID 0x00000004
  37. #define BM_POWER_STS_AVALID 0x00000008
  38. #define BM_POWER_STS_DC_OK 0x00000100
  39. #define HW_POWER_RESET 0xE0
  40. #define HW_POWER_DEBUG 0xF0
  41. #define BM_POWER_DEBUG_BVALIDPIOLOCK 0x00000002
  42. #define BM_POWER_DEBUG_AVALIDPIOLOCK 0x00000004
  43. #define BM_POWER_DEBUG_VBUSVALIDPIOLOCK 0x00000008
  44. #endif