]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/include/asm/arch-u8500/prcmu.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / arm / include / asm / arch-u8500 / prcmu.h
index 1fd4d2a5642b54e9eec690ac66443f014d77a52e..e7f045007989b63ef1e890310a6f8cc0d4f54e23 100644 (file)
@@ -4,19 +4,7 @@
  * Copied from the Linux version:
  * Author: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 #ifndef __MACH_PRCMU_FW_V1_H
 #define __MACH_PRCMU_FW_V1_H
@@ -28,6 +16,7 @@
 #define I2CWRITE       0
 
 #define PRCMU_BASE                     U8500_PRCMU_BASE
+#define PRCMU_BASE_TCDM                        U8500_PRCMU_TCDM_BASE
 #define PRCM_UARTCLK_MGT_REG           (PRCMU_BASE + 0x018)
 #define PRCM_MSPCLK_MGT_REG            (PRCMU_BASE + 0x01C)
 #define PRCM_I2CCLK_MGT_REG            (PRCMU_BASE + 0x020)
 #define PRCM_PER5CLK_MGT_REG           (PRCMU_BASE + 0x038)
 #define PRCM_PER6CLK_MGT_REG           (PRCMU_BASE + 0x03C)
 #define PRCM_PER7CLK_MGT_REG           (PRCMU_BASE + 0x040)
+#define PRCM_MBOX_CPU_VAL              (PRCMU_BASE + 0x0FC)
+#define PRCM_MBOX_CPU_SET              (PRCMU_BASE + 0x100)
 
 #define PRCM_ARM_IT1_CLEAR             (PRCMU_BASE + 0x48C)
+#define PRCM_ARM_IT1_VAL               (PRCMU_BASE + 0x494)
 #define PRCM_TCR                       (PRCMU_BASE + 0x1C8)
-#define PRCM_REQ_MB5                   (PRCMU_BASE + 0xE44)
-#define PRCM_ACK_MB5                   (PRCMU_BASE + 0xDF4)
-#define PRCM_XP70_CUR_PWR_STATE                (PRCMU_BASE + 0xFFC)
+#define PRCM_REQ_MB5                   (PRCMU_BASE_TCDM + 0xE44)
+#define PRCM_ACK_MB5                   (PRCMU_BASE_TCDM + 0xDF4)
+#define PRCM_XP70_CUR_PWR_STATE                (PRCMU_BASE_TCDM + 0xFFC)
 /* Mailbox 5 Requests */
 #define PRCM_REQ_MB5_I2COPTYPE_REG     (PRCM_REQ_MB5 + 0x0)
 #define PRCM_REQ_MB5_BIT_FIELDS                (PRCM_REQ_MB5 + 0x1)
 
 #define REQ_MB5                        5
 
-extern int prcmu_i2c_read(u8 reg, u16 slave);
-extern int prcmu_i2c_write(u8 reg, u16 slave, u8 reg_data);
+#define ab8500_read    prcmu_i2c_read
+#define ab8500_write   prcmu_i2c_write
+
+int prcmu_i2c_read(u8 reg, u16 slave);
+int prcmu_i2c_write(u8 reg, u16 slave, u8 reg_data);
 
 void u8500_prcmu_enable(u32 *reg);
 void db8500_prcmu_init(void);