]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/mc13892.h
mmc: add function to get the number of available mmc interfaces
[karo-tx-uboot.git] / include / mc13892.h
index 791e3ec878455460ef44a36f8708b4bc4f4e396f..218f36f084dceaee83ef8aed63fc9c4b2238a33e 100644 (file)
@@ -4,23 +4,7 @@
  *
  * (C) Copyright 2009 Freescale Semiconductor, Inc.
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * 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., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 
 
 /* REG_CHARGE */
 
-#define VCHRG0         0
+#define VCHRG0         (1 << 0)
 #define VCHRG1         (1 << 1)
 #define VCHRG2         (1 << 2)
 #define ICHRG0         (1 << 3)
 #define ICHRG1         (1 << 4)
 #define ICHRG2         (1 << 5)
 #define ICHRG3         (1 << 6)
-#define ICHRGTR0       (1 << 7)
-#define ICHRGTR1       (1 << 8)
-#define ICHRGTR2       (1 << 9)
+#define TREN           (1 << 7)
+#define ACKLPB         (1 << 8)
+#define THCHKB         (1 << 9)
 #define FETOVRD                (1 << 10)
 #define FETCTRL                (1 << 11)
 #define RVRSMODE       (1 << 13)
-#define OVCTRL0                (1 << 15)
-#define OVCTRL1                (1 << 16)
-#define UCHEN          (1 << 17)
+#define PLIM0          (1 << 15)
+#define PLIM1          (1 << 16)
+#define PLIMDIS                (1 << 17)
 #define CHRGLEDEN      (1 << 18)
-#define CHRGRAWPDEN    (1 << 19)
+#define CHGTMRRST      (1 << 19)
 #define CHGRESTART     (1 << 20)
 #define CHGAUTOB       (1 << 21)
 #define CYCLB          (1 << 22)
 #define VCAM_3_0       (3 << 16)
 #define VCAM_MASK      (3 << 16)
 
+/* Reg Mode 0 */
+#define VGEN1EN                (1 << 0)
+#define VGEN1STBY      (1 << 1)
+#define VGEN1MODE      (1 << 2)
+#define VIOHIEN                (1 << 3)
+#define VIOHISTBY      (1 << 4)
+#define VDIGEN         (1 << 9)
+#define VDIGSTBY       (1 << 10)
+#define VGEN2EN                (1 << 12)
+#define VGEN2STBY      (1 << 13)
+#define VGEN2MODE      (1 << 14)
+#define VPLLEN         (1 << 15)
+#define VPLLSTBY       (1 << 16)
+#define VUSBEN         (1 << 18)
+#define VUSBSTBY       (1 << 19)
+
 /* Reg Mode 1 */
 #define VGEN3EN                (1 << 0)
 #define VGEN3STBY      (1 << 1)
 /* Reg Power Control 2*/
 #define WDIRESET       (1 << 12)
 
+/* SWx Output Volts */
+#define SWX_OUT_MASK   0x1F
+#define SWX_OUT_1_25   0x1A
+#define SWX_OUT_1_30    0X1C
+
+/* Buck Switchers (SW1,2,3,4) Output Voltage */
+/*
+ * NOTE: These values are for SWxHI = 0,
+ * SWxHI = 1 adds 0.5V to the desired voltage
+ */
+#define SWx_0_600V     0
+#define SWx_0_625V     1
+#define SWx_0_650V     2
+#define SWx_0_675V     3
+#define SWx_0_700V     4
+#define SWx_0_725V     5
+#define SWx_0_750V     6
+#define SWx_0_775V     7
+#define SWx_0_800V     8
+#define SWx_0_825V     9
+#define SWx_0_850V     10
+#define SWx_0_875V     11
+#define SWx_0_900V     12
+#define SWx_0_925V     13
+#define SWx_0_950V     14
+#define SWx_0_975V     15
+#define SWx_1_000V     16
+#define SWx_1_025V     17
+#define SWx_1_050V     18
+#define SWx_1_075V     19
+#define SWx_1_100V     20
+#define SWx_1_125V     21
+#define SWx_1_150V     22
+#define SWx_1_175V     23
+#define SWx_1_200V     24
+#define SWx_1_225V     25
+#define SWx_1_250V     26
+#define SWx_1_275V     27
+#define SWx_1_300V     28
+#define SWx_1_325V     29
+#define SWx_1_350V     30
+#define SWx_1_375V     31
+#define SWx_VOLT_MASK  0x1F
+
 #endif