mx25pdk: Adapt it for the new PMIC framework
Make the necessary adaptions for the new PMIC framework, so that mx25pdk can be built again. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
		
							parent
							
								
									05a860c228
								
							
						
					
					
						commit
						cabe240b59
					
				|  | @ -27,7 +27,7 @@ | ||||||
| #include <mmc.h> | #include <mmc.h> | ||||||
| #include <fsl_esdhc.h> | #include <fsl_esdhc.h> | ||||||
| #include <i2c.h> | #include <i2c.h> | ||||||
| #include <pmic.h> | #include <power/pmic.h> | ||||||
| #include <fsl_pmic.h> | #include <fsl_pmic.h> | ||||||
| #include <mc34704.h> | #include <mc34704.h> | ||||||
| 
 | 
 | ||||||
|  | @ -110,11 +110,18 @@ int board_init(void) | ||||||
| int board_late_init(void) | int board_late_init(void) | ||||||
| { | { | ||||||
| 	struct pmic *p; | 	struct pmic *p; | ||||||
|  | 	int ret; | ||||||
| 
 | 
 | ||||||
| 	mx25pdk_fec_init(); | 	mx25pdk_fec_init(); | ||||||
| 
 | 
 | ||||||
| 	pmic_init(); | 	ret = pmic_init(I2C_PMIC); | ||||||
| 	p = get_pmic(); | 	if (ret) | ||||||
|  | 		return ret; | ||||||
|  | 
 | ||||||
|  | 	p = pmic_get("FSL_PMIC"); | ||||||
|  | 	if (!p) | ||||||
|  | 		return -ENODEV; | ||||||
|  | 
 | ||||||
| 	/* Turn on Ethernet PHY supply */ | 	/* Turn on Ethernet PHY supply */ | ||||||
| 	pmic_reg_write(p, MC34704_GENERAL2_REG, ONOFFE); | 	pmic_reg_write(p, MC34704_GENERAL2_REG, ONOFFE); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -108,9 +108,9 @@ | ||||||
| #define CONFIG_SYS_FSL_ESDHC_NUM	1 | #define CONFIG_SYS_FSL_ESDHC_NUM	1 | ||||||
| 
 | 
 | ||||||
| /* PMIC Configs */ | /* PMIC Configs */ | ||||||
| #define CONFIG_PMIC | #define CONFIG_POWER | ||||||
| #define CONFIG_PMIC_I2C | #define CONFIG_POWER_I2C | ||||||
| #define CONFIG_PMIC_FSL | #define CONFIG_POWER_FSL | ||||||
| #define CONFIG_PMIC_FSL_MC34704 | #define CONFIG_PMIC_FSL_MC34704 | ||||||
| #define CONFIG_SYS_FSL_PMIC_I2C_ADDR	0x54 | #define CONFIG_SYS_FSL_PMIC_I2C_ADDR	0x54 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue