2
* stmp378x: POWER register definitions
4
* Copyright (c) 2008 Freescale Semiconductor
5
* Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
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.
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.
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
21
#ifndef _MACH_REGS_POWER
22
#define _MACH_REGS_POWER
24
#define REGS_POWER_BASE (STMP3XXX_REGS_BASE + 0x44000)
25
#define REGS_POWER_PHYS 0x80044000
26
#define REGS_POWER_SIZE 0x2000
28
#define HW_POWER_CTRL 0x0
29
#define BM_POWER_CTRL_ENIRQ_VDD5V_GT_VDDIO 0x00000001
30
#define BP_POWER_CTRL_ENIRQ_VDD5V_GT_VDDIO 0
31
#define BM_POWER_CTRL_ENIRQ_PSWITCH 0x00020000
32
#define BM_POWER_CTRL_PSWITCH_IRQ 0x00100000
33
#define BM_POWER_CTRL_CLKGATE 0x40000000
35
#define HW_POWER_5VCTRL 0x10
36
#define BM_POWER_5VCTRL_ENABLE_LINREG_ILIMIT 0x00000040
38
#define HW_POWER_MINPWR 0x20
40
#define HW_POWER_CHARGE 0x30
42
#define HW_POWER_VDDDCTRL 0x40
44
#define HW_POWER_VDDACTRL 0x50
46
#define HW_POWER_VDDIOCTRL 0x60
47
#define BM_POWER_VDDIOCTRL_TRG 0x0000001F
48
#define BP_POWER_VDDIOCTRL_TRG 0
50
#define HW_POWER_STS 0xC0
51
#define BM_POWER_STS_VBUSVALID 0x00000002
52
#define BM_POWER_STS_BVALID 0x00000004
53
#define BM_POWER_STS_AVALID 0x00000008
54
#define BM_POWER_STS_DC_OK 0x00000200
56
#define HW_POWER_RESET 0x100
58
#define HW_POWER_DEBUG 0x110
59
#define BM_POWER_DEBUG_BVALIDPIOLOCK 0x00000002
60
#define BM_POWER_DEBUG_AVALIDPIOLOCK 0x00000004
61
#define BM_POWER_DEBUG_VBUSVALIDPIOLOCK 0x00000008