mbox series

[0/6] Clean up eSDHC periperhal clock code

Message ID 20191219105930.34332-1-yangbo.lu@nxp.com
Headers show
Series Clean up eSDHC periperhal clock code | expand

Message

Yangbo Lu Dec. 19, 2019, 10:59 a.m. UTC
This patch-set is to clean up eSDHC peripheral clock code.
- Drop useless code in esdhc/esdhc_imx drivers and powerpc/.
- Add global variable sdhc_per_clk for peripehral clock.
- Drop CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK option and let
  driver decides which clock to use.
- Some fixes for peripehral clock calcualtion.

Yangbo Lu (6):
  mmc: fsl_esdhc_imx: drop QorIQ eSDHC specific peripheral clock code
  mmc: fsl_esdhc: drop useless fdt fixup
  powerpc/mpc85xx: drop eSDHC periperhal clock code
  Add global variable sdhc_per_clk for arm/powerpc
  configs: ls1028a: use default SDHC clock divider value
  Drop CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK usage

 .../arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c | 29 +++++--------
 .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 22 +++++-----
 arch/arm/include/asm/global_data.h                 |  4 ++
 arch/powerpc/cpu/mpc85xx/speed.c                   | 49 +---------------------
 arch/powerpc/include/asm/config_mpc85xx.h          |  8 ----
 arch/powerpc/include/asm/global_data.h             |  1 +
 configs/ls1028aqds_tfa_SECURE_BOOT_defconfig       |  1 -
 configs/ls1028aqds_tfa_defconfig                   |  1 -
 configs/ls1028ardb_tfa_SECURE_BOOT_defconfig       |  1 -
 configs/ls1028ardb_tfa_defconfig                   |  1 -
 drivers/mmc/Kconfig                                |  9 ----
 drivers/mmc/fsl_esdhc.c                            | 41 +++++++++---------
 drivers/mmc/fsl_esdhc_imx.c                        | 40 ------------------
 include/configs/T1040QDS.h                         |  1 -
 include/configs/T208xQDS.h                         |  1 -
 include/e500.h                                     |  1 -
 scripts/config_whitelist.txt                       |  2 -
 17 files changed, 48 insertions(+), 164 deletions(-)

Comments

Yangbo Lu Dec. 20, 2019, 3:55 a.m. UTC | #1
Here is CI build result.
https://travis-ci.org/yangbolu1991/u-boot-test/builds/627093385

Thanks.

> -----Original Message-----
> From: Yangbo Lu <yangbo.lu@nxp.com>
> Sent: Thursday, December 19, 2019 6:59 PM
> To: u-boot@lists.denx.de
> Cc: Peng Fan <peng.fan@nxp.com>; Priyanka Jain <priyanka.jain@nxp.com>;
> Wolfgang Denk <wd@denx.de>; Y.b. Lu <yangbo.lu@nxp.com>
> Subject: [PATCH 0/6] Clean up eSDHC periperhal clock code
> 
> This patch-set is to clean up eSDHC peripheral clock code.
> - Drop useless code in esdhc/esdhc_imx drivers and powerpc/.
> - Add global variable sdhc_per_clk for peripehral clock.
> - Drop CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK option and let
>   driver decides which clock to use.
> - Some fixes for peripehral clock calcualtion.
> 
> Yangbo Lu (6):
>   mmc: fsl_esdhc_imx: drop QorIQ eSDHC specific peripheral clock code
>   mmc: fsl_esdhc: drop useless fdt fixup
>   powerpc/mpc85xx: drop eSDHC periperhal clock code
>   Add global variable sdhc_per_clk for arm/powerpc
>   configs: ls1028a: use default SDHC clock divider value
>   Drop CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK usage
> 
>  .../arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c | 29 +++++--------
>  .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 22 +++++-----
>  arch/arm/include/asm/global_data.h                 |  4 ++
>  arch/powerpc/cpu/mpc85xx/speed.c                   | 49
> +---------------------
>  arch/powerpc/include/asm/config_mpc85xx.h          |  8 ----
>  arch/powerpc/include/asm/global_data.h             |  1 +
>  configs/ls1028aqds_tfa_SECURE_BOOT_defconfig       |  1 -
>  configs/ls1028aqds_tfa_defconfig                   |  1 -
>  configs/ls1028ardb_tfa_SECURE_BOOT_defconfig       |  1 -
>  configs/ls1028ardb_tfa_defconfig                   |  1 -
>  drivers/mmc/Kconfig                                |  9 ----
>  drivers/mmc/fsl_esdhc.c                            | 41
> +++++++++---------
>  drivers/mmc/fsl_esdhc_imx.c                        | 40 ------------------
>  include/configs/T1040QDS.h                         |  1 -
>  include/configs/T208xQDS.h                         |  1 -
>  include/e500.h                                     |  1 -
>  scripts/config_whitelist.txt                       |  2 -
>  17 files changed, 48 insertions(+), 164 deletions(-)
> 
> --
> 2.7.4
Yangbo Lu Jan. 8, 2020, 3:43 a.m. UTC | #2
Hi Peng and Priyanka,

Happy new year!
Could you help to review this patch-set? It's related to MMC and QorIQ PowerPC/ARM.

Thanks.

Best regards,
Yangbo Lu

> -----Original Message-----
> From: Y.b. Lu
> Sent: Friday, December 20, 2019 11:56 AM
> To: Yangbo Lu <yangbo.lu@nxp.com>; u-boot@lists.denx.de
> Cc: Peng Fan <peng.fan@nxp.com>; Priyanka Jain <priyanka.jain@nxp.com>;
> Wolfgang Denk <wd@denx.de>
> Subject: RE: [PATCH 0/6] Clean up eSDHC periperhal clock code
> 
> Here is CI build result.
> https://travis-ci.org/yangbolu1991/u-boot-test/builds/627093385
> 
> Thanks.
> 
> > -----Original Message-----
> > From: Yangbo Lu <yangbo.lu@nxp.com>
> > Sent: Thursday, December 19, 2019 6:59 PM
> > To: u-boot@lists.denx.de
> > Cc: Peng Fan <peng.fan@nxp.com>; Priyanka Jain <priyanka.jain@nxp.com>;
> > Wolfgang Denk <wd@denx.de>; Y.b. Lu <yangbo.lu@nxp.com>
> > Subject: [PATCH 0/6] Clean up eSDHC periperhal clock code
> >
> > This patch-set is to clean up eSDHC peripheral clock code.
> > - Drop useless code in esdhc/esdhc_imx drivers and powerpc/.
> > - Add global variable sdhc_per_clk for peripehral clock.
> > - Drop CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK option and let
> >   driver decides which clock to use.
> > - Some fixes for peripehral clock calcualtion.
> >
> > Yangbo Lu (6):
> >   mmc: fsl_esdhc_imx: drop QorIQ eSDHC specific peripheral clock code
> >   mmc: fsl_esdhc: drop useless fdt fixup
> >   powerpc/mpc85xx: drop eSDHC periperhal clock code
> >   Add global variable sdhc_per_clk for arm/powerpc
> >   configs: ls1028a: use default SDHC clock divider value
> >   Drop CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK usage
> >
> >  .../arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c | 29 +++++--------
> >  .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 22 +++++-----
> >  arch/arm/include/asm/global_data.h                 |  4 ++
> >  arch/powerpc/cpu/mpc85xx/speed.c                   | 49
> > +---------------------
> >  arch/powerpc/include/asm/config_mpc85xx.h          |  8 ----
> >  arch/powerpc/include/asm/global_data.h             |  1 +
> >  configs/ls1028aqds_tfa_SECURE_BOOT_defconfig       |  1 -
> >  configs/ls1028aqds_tfa_defconfig                   |  1 -
> >  configs/ls1028ardb_tfa_SECURE_BOOT_defconfig       |  1 -
> >  configs/ls1028ardb_tfa_defconfig                   |  1 -
> >  drivers/mmc/Kconfig                                |  9 ----
> >  drivers/mmc/fsl_esdhc.c                            | 41
> > +++++++++---------
> >  drivers/mmc/fsl_esdhc_imx.c                        | 40 ------------------
> >  include/configs/T1040QDS.h                         |  1 -
> >  include/configs/T208xQDS.h                         |  1 -
> >  include/e500.h                                     |  1 -
> >  scripts/config_whitelist.txt                       |  2 -
> >  17 files changed, 48 insertions(+), 164 deletions(-)
> >
> > --
> > 2.7.4