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 24#define REGS_POWER_BASE (STMP3XXX_REGS_BASE + 0x44000) 25 26#define HW_POWER_CTRL 0x0 27#define BM_POWER_CTRL_CLKGATE 0x40000000 28 29#define HW_POWER_5VCTRL 0x10 30 31#define HW_POWER_MINPWR 0x20 32 33#define HW_POWER_CHARGE 0x30 34 35#define HW_POWER_VDDDCTRL 0x40 36 37#define HW_POWER_VDDACTRL 0x50 38 39#define HW_POWER_VDDIOCTRL 0x60 40#define BM_POWER_VDDIOCTRL_TRG 0x0000001F 41#define BP_POWER_VDDIOCTRL_TRG 0 42 43#define HW_POWER_STS 0xB0 44#define BM_POWER_STS_VBUSVALID 0x00000002 45#define BM_POWER_STS_BVALID 0x00000004 46#define BM_POWER_STS_AVALID 0x00000008 47#define BM_POWER_STS_DC_OK 0x00000100 48 49#define HW_POWER_RESET 0xE0 50 51#define HW_POWER_DEBUG 0xF0 52#define BM_POWER_DEBUG_BVALIDPIOLOCK 0x00000002 53#define BM_POWER_DEBUG_AVALIDPIOLOCK 0x00000004 54#define BM_POWER_DEBUG_VBUSVALIDPIOLOCK 0x00000008 55 56#endif 57