mx6: imx-regs: Remove unused 'omux' field from iomux struct
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/5 mx6: imx-regs: Remove unused 'omux' field from iomux struct
From: Fabio Estevam <[email protected]>
'omux' field is not used anywhere and such layout is not valid for mx6solox.
Instead of adding more ifdef's into the structure, let's simply remove this unused 'omux' field.
--- arch/arm/include/asm/arch-mx6/imx-regs.h | 2 -- 1 file changed, 2 deletions(-)
arch/arm/include/asm/arch-mx6/imx-regs.h +0 -2
@@ -404,8 +404,6 @@ struct iomuxc {u8 reserved[0x4000 ];#endif u32 gpr[14 ]; -u32 omux[5 ]; -/* mux and pad registers */ };#define IOMUXC_GPR2_COUNTER_RESET_VAL_OFFSET 20
Signature · 1 line
1.8.3.2
Fabio Estevam
reviewerPATCH 2/5 mx6: crm_regs: Fix CDCDR_SPDIF0_CLK_PODF mask and offset
From: Fabio Estevam <[email protected]>
According to the Reference Manual the 'spdif0_clk_podf' field of register CCM_CDCDR corresponds to bits 22, 23 and 24, so fix the mask and offset definitions accordingly.
--- arch/arm/include/asm/arch-mx6/crm_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-mx6/crm_regs.h +2 -2
@@ -335,8 +335,8 @@ struct mxc_ccm_reg {#endif #define MXC_CCM_CDCDR_SPDIF0_CLK_PRED_MASK (0x7 << 25)#define MXC_CCM_CDCDR_SPDIF0_CLK_PRED_OFFSET 25 -#define MXC_CCM_CDCDR_SPDIF0_CLK_PODF_MASK (0x7 << 19) -#define MXC_CCM_CDCDR_SPDIF0_CLK_PODF_OFFSET 19 +#define MXC_CCM_CDCDR_SPDIF0_CLK_PODF_MASK (0x7 << 22) +#define MXC_CCM_CDCDR_SPDIF0_CLK_PODF_OFFSET 22#define MXC_CCM_CDCDR_SPDIF0_CLK_SEL_MASK (0x3 << 20)#define MXC_CCM_CDCDR_SPDIF0_CLK_SEL_OFFSET 20#define MXC_CCM_CDCDR_SPDIF1_CLK_PRED_MASK (0x7 << 12)
Signature · 1 line
1.8.3.2
PATCH 2/5 mx6: crm_regs: Fix CDCDR_SPDIF0_CLK_PODF mask and offset
Quoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
According to the Reference Manual the '
spdif0_clk_podf' field of registerCCM_CDCDRcorresponds to bits 22, 23 and 24, so fix the mask and offset definitions accordingly.Signed-off-by Fabio Estevam <[email protected]>---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
Fabio Estevam
reviewerPATCH 3/5 mx6: crm_regs: Fix MXC_CCM_CLPCR_WB_PER_AT_LPM definition
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
According to the Reference Manual the 'wb_per_at_lpm' field of register CCM_CLPCR corresponds to bit 16 so fix its definition accordingly.
--- arch/arm/include/asm/arch-mx6/crm_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/arch-mx6/crm_regs.h +1 -1
@@ -432,7 +432,7 @@ struct mxc_ccm_reg {#define MXC_CCM_CLPCR_BYP_MMDC_CH0_LPM_HS (1 << 19)#define MXC_CCM_CLPCR_WB_CORE_AT_LPM (1 << 17)#endif -#define MXC_CCM_CLPCR_WB_PER_AT_LPM (1 << 17) +#define MXC_CCM_CLPCR_WB_PER_AT_LPM (1 << 16)#define MXC_CCM_CLPCR_COSC_PWRDOWN (1 << 11)#define MXC_CCM_CLPCR_STBY_COUNT_MASK (0x3 << 9)#define MXC_CCM_CLPCR_STBY_COUNT_OFFSET 9
Signature · 1 line
1.8.3.2
PATCH 3/5 mx6: crm_regs: Fix MXC_CCM_CLPCR_WB_PER_AT_LPM definition
Quoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
According to the Reference Manual the '
wb_per_at_lpm' field of registerCCM_CLPCRcorresponds to bit 16 so fix its definition accordingly.Signed-off-by Fabio Estevam <[email protected]>---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
Fabio Estevam
reviewerPATCH 4/5 mx6: crm_regs: Fix MXC_CCM_CIMR_MASK_PERIPH2_CLK_SEL_LOADED
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
According to the Reference Manual the 'mask_periph2_clk_sel_loaded' field of register CCM_CIMR corresponds to bit 19 so fix its definition accordingly.
--- arch/arm/include/asm/arch-mx6/crm_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/arch-mx6/crm_regs.h +1 -1
@@ -469,7 +469,7 @@ struct mxc_ccm_reg {#define MXC_CCM_CIMR_MASK_PERIPH_CLK_SEL_LOADED (1 << 22)#define MXC_CCM_CIMR_MASK_MMDC_CH1_PODF_LOADED (1 << 21)#define MXC_CCM_CIMR_MASK_AHB_PODF_LOADED (1 << 20) -#define MXC_CCM_CIMR_MASK_PERIPH2_CLK_SEL_LOADED (1 << 22) +#define MXC_CCM_CIMR_MASK_PERIPH2_CLK_SEL_LOADED (1 << 19)#define MXC_CCM_CIMR_MASK_AXI_PODF_LOADED (1 << 17)#define MXC_CCM_CIMR_MASK_COSC_READY (1 << 6)#define MXC_CCM_CIMR_MASK_LRF_PLL 1
Signature · 1 line
1.8.3.2
PATCH 4/5 mx6: crm_regs: Fix MXC_CCM_CIMR_MASK_PERIPH2_CLK_SEL_LOADED
Quoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
According to the Reference Manual the '
mask_periph2_clk_sel_loaded' field of registerCCM_CIMRcorresponds to bit 19 so fix its definition accordingly.Signed-off-by Fabio Estevam <[email protected]>---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
Fabio Estevam
reviewerPATCH 5/5 pmic: pmic_pfuze100: Use a shorter name for PMIC name
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
It is redundant to use 'PFUZE100_PMIC' as the PMIC name because we already know it is a PMIC.
Call it simply 'PFUZE100' instead.
--- board/freescale/mx6sabresd/mx6sabresd.c | 2 +- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 2 +- board/gateworks/gw_ventana/gw_ventana.c | 2 +- board/tqc/tqma6/tqma6.c | 4 ++-- drivers/power/pmic/pmic_pfuze100.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
board/freescale/mx6sabresd/mx6sabresd.c +1 -1
@@ -466,7 +466,7 @@ static int pfuze_init(void)if (ret)return ret; - p =pmic_get ("PFUZE100_PMIC" ); + p =pmic_get ("PFUZE100" ); ret =pmic_probe (p);if (ret)return ret;
board/freescale/mx6sxsabresd/mx6sxsabresd.c +1 -1
@@ -90,7 +90,7 @@ static int pfuze_init(void)if (ret)return ret; - p =pmic_get ("PFUZE100_PMIC" ); + p =pmic_get ("PFUZE100" ); ret =pmic_probe (p);if (ret)return ret;
board/gateworks/gw_ventana/gw_ventana.c +1 -1
@@ -903,7 +903,7 @@ int power_init_board(void)/* configure PFUZE100 PMIC */ if (board_type == GW54xx || board_type == GW54proto) {power_pfuze100_init (I2C_PMIC ); - p =pmic_get ("PFUZE100_PMIC" ); + p =pmic_get ("PFUZE100" );if (p && !pmic_probe (p)) {pmic_reg_read (p,PFUZE100_DEVICEID , ®);printf ("PMIC: PFUZE100 ID=0x%02x\n" , reg);
board/tqc/tqma6/tqma6.c +2 -2
@@ -229,10 +229,10 @@ int board_late_init(void)* fixed in generic power code */ power_pfuze100_init (TQMA6_PFUZE100_I2C_BUS ); - p =pmic_get ("PFUZE100_PMIC" ); + p =pmic_get ("PFUZE100" );if (p && !pmic_probe (p)) {pmic_reg_read (p,PFUZE100_DEVICEID , ®); -printf ("PMIC: PFUZE100_PMIC ID=0x%02x\n" , reg); +printf ("PMIC: PFUZE100 ID=0x%02x\n" , reg); }tqma6_bb_board_late_init ();
drivers/power/pmic/pmic_pfuze100.c +1 -1
@@ -13,7 +13,7 @@int power_pfuze100_init (unsigned char bus) { -static const char name[] ="PFUZE100_PMIC" ; +static const char name[] ="PFUZE100" ;struct pmic *p =pmic_alloc ();if (!p) {
Signature · 1 line
1.8.3.2
PATCH 5/5 pmic: pmic_pfuze100: Use a shorter name for PMIC name
Quoted 11 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
It is redundant to use '
PFUZE100_PMIC' as the PMIC name because we already know it is a PMIC.Call it simply 'PFUZE100' instead.
Cc Tim Harvey <[email protected]>Cc Markus Niebel <[email protected]>Signed-off-by Fabio Estevam <[email protected]>---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 1/5 mx6: imx-regs: Remove unused 'omux' field from iomux struct
In reply to Fabio EstevamHi Fabio,
Quoted 18 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
'omux' field is not used anywhere and such layout is not valid for mx6solox.
Instead of adding more ifdef's into the structure, let's simply remove this unused 'omux' field.
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/include/asm/arch-mx6/imx-regs.h | 2 -- 1 file changed, 2 deletions(-)arch/arm/include/asm/arch-mx6/imx-regs.h +0
-0
arch/arm/include/asm/arch-mx6/imx-regs.h struct iomuxc { · line 409
Quoted 8 lines
arch/arm/include/asm/arch-mx6/imx-regs.h +0
-2@@ -404,8 +404,6 @@ struct iomuxc {u8 reserved[0x4000 ];#endif u32 gpr[14 ]; -u32 omux[5 ]; -/* mux and pad registers */ };#define IOMUXC_GPR2_COUNTER_RESET_VAL_OFFSET 20
No issues with the whole series. I will apply it to u-boot-imx.
Regards,
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 1/5 mx6: imx-regs: Remove unused 'omux' field from iomux struct
In reply to Fabio EstevamQuoted 9 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
'omux' field is not used anywhere and such layout is not valid for mx6solox.
Instead of adding more ifdef's into the structure, let's simply remove this unused 'omux' field.
Signed-off-by Fabio Estevam <[email protected]>---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================