2 * Copyright (C) 2009 ST-Ericsson SA
4 * Copied from the Linux version:
5 * Author: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
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., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __MACH_PRCMU_FW_V1_H
22 #define __MACH_PRCMU_FW_V1_H
30 #define _PRCMU_TCDM_BASE U8500_PRCMU_TCDM_BASE
31 #define PRCM_XP70_CUR_PWR_STATE (_PRCMU_TCDM_BASE + 0xFFC) /* 4 BYTES */
33 #define PRCM_REQ_MB5 (_PRCMU_TCDM_BASE + 0xE44) /* 4 bytes */
34 #define PRCM_ACK_MB5 (_PRCMU_TCDM_BASE + 0xDF4) /* 4 bytes */
36 /* Mailbox 5 Requests */
37 #define PRCM_REQ_MB5_I2COPTYPE_REG (PRCM_REQ_MB5 + 0x0)
38 #define PRCM_REQ_MB5_BIT_FIELDS (PRCM_REQ_MB5 + 0x1)
39 #define PRCM_REQ_MB5_I2CSLAVE (PRCM_REQ_MB5 + 0x2)
40 #define PRCM_REQ_MB5_I2CVAL (PRCM_REQ_MB5 + 0x3)
43 #define PRCM_ACK_MB5_STATUS (PRCM_ACK_MB5 + 0x1)
44 #define PRCM_ACK_MB5_SLAVE (PRCM_ACK_MB5 + 0x2)
45 #define PRCM_ACK_MB5_VAL (PRCM_ACK_MB5 + 0x3)
47 #define LOW_POWER_WAKEUP 1
52 extern int prcmu_i2c_read(u8 reg, u16 slave);
53 extern int prcmu_i2c_write(u8 reg, u16 slave, u8 reg_data);
55 #endif /* __MACH_PRCMU_FW_V1_H */