mbox series

[0/7] updates for km board series

Message ID 20221202172243.21046-1-holger.brunck@hitachienergy.com
Headers show
Series updates for km board series | expand

Message

Holger Brunck Dec. 2, 2022, 5:22 p.m. UTC
- migrate all boards to environment.txt files
- migrate PPC boards to DM_I2C
- some cleanup

Holger Brunck (7):
  board/km: move ls102xa boards to environment text files
  km/powerpc: migrate to env.txt file
  board/km/cent2: migrate to environment text file
  board/km/secu: migrate to use environment text files
  board/km: remove obsolete ARCH_KIRKWOOD
  km/ppc: migrate all mpc83xx to DM_I2C
  km/mpc8360: remove unused CONFIG_SYS_PAXE defines

 board/keymile/Kconfig                         |  18 +-
 board/keymile/km83xx/Makefile                 |   2 +-
 board/keymile/km83xx/km83xx.env               |  21 +++
 board/keymile/km83xx/km83xx_i2c.c             |  73 --------
 board/keymile/kmcent2/kmcent2.c               |   2 +-
 board/keymile/kmcent2/kmcent2.env             |  37 ++++
 .../keymile/pg-wcom-ls102xa/pg-wcom-expu1.env |   3 +
 .../keymile/pg-wcom-ls102xa/pg-wcom-seli8.env |   3 +
 board/keymile/secu1/socfpga_secu.env          |  50 +++++
 configs/kmcent2_defconfig                     |   2 +-
 configs/kmcoge5ne_defconfig                   |  11 +-
 configs/kmeter1_defconfig                     |  11 +-
 configs/kmopti2_defconfig                     |  10 +-
 configs/kmsupx5_defconfig                     |  10 +-
 configs/kmtepr2_defconfig                     |  10 +-
 configs/pg_wcom_expu1_defconfig               |   2 +-
 configs/pg_wcom_expu1_update_defconfig        |   2 +-
 configs/pg_wcom_seli8_defconfig               |   2 +-
 configs/pg_wcom_seli8_update_defconfig        |   2 +-
 configs/socfpga_secu1_defconfig               |   4 +-
 configs/tuge1_defconfig                       |  10 +-
 configs/tuxx1_defconfig                       |  10 +-
 include/configs/km/keymile-common.h           | 174 ------------------
 include/configs/km/km-mpc8360.h               |   7 -
 include/configs/km/km-mpc83xx.h               |  32 ----
 include/configs/km/km-powerpc.h               |  46 -----
 include/configs/km/pg-wcom-ls102xa.h          |  65 -------
 include/configs/kmcent2.h                     |  74 --------
 include/configs/kmcoge5ne.h                   |   6 -
 include/configs/kmeter1.h                     |   4 -
 include/configs/kmopti2.h                     |   7 -
 include/configs/kmsupx5.h                     |   7 -
 include/configs/kmtepr2.h                     |   7 -
 include/configs/pg-wcom-expu1.h               |   4 -
 include/configs/pg-wcom-seli8.h               |   5 -
 include/configs/socfpga_arria5_secu1.h        |  53 ------
 include/configs/tuge1.h                       |   7 -
 include/configs/tuxx1.h                       |   7 -
 include/environment/pg-wcom/common.env        |  68 +++++++
 include/environment/pg-wcom/ls102xa.env       |  29 +++
 include/environment/pg-wcom/powerpc.env       |  14 ++
 scripts/config_whitelist.txt                  |  18 --
 42 files changed, 264 insertions(+), 665 deletions(-)
 create mode 100644 board/keymile/km83xx/km83xx.env
 delete mode 100644 board/keymile/km83xx/km83xx_i2c.c
 create mode 100644 board/keymile/kmcent2/kmcent2.env
 create mode 100644 board/keymile/pg-wcom-ls102xa/pg-wcom-expu1.env
 create mode 100644 board/keymile/pg-wcom-ls102xa/pg-wcom-seli8.env
 create mode 100644 board/keymile/secu1/socfpga_secu.env
 delete mode 100644 include/configs/km/keymile-common.h
 delete mode 100644 include/configs/km/km-powerpc.h
 create mode 100644 include/environment/pg-wcom/common.env
 create mode 100644 include/environment/pg-wcom/ls102xa.env
 create mode 100644 include/environment/pg-wcom/powerpc.env

Comments

Tom Rini Dec. 6, 2022, 9:36 p.m. UTC | #1
On Fri, Dec 02, 2022 at 06:22:36PM +0100, Holger Brunck wrote:

> - migrate all boards to environment.txt files
> - migrate PPC boards to DM_I2C
> - some cleanup
> 
> Holger Brunck (7):
>   board/km: move ls102xa boards to environment text files
>   km/powerpc: migrate to env.txt file
>   board/km/cent2: migrate to environment text file
>   board/km/secu: migrate to use environment text files
>   board/km: remove obsolete ARCH_KIRKWOOD
>   km/ppc: migrate all mpc83xx to DM_I2C
>   km/mpc8360: remove unused CONFIG_SYS_PAXE defines

Thanks for doing this. As this is the first in my mind big environment
conversion, do you have any further feedback on the mechanism, things
that would make this easier / more useful, etc?
Holger Brunck Dec. 7, 2022, 2:27 p.m. UTC | #2
> > - migrate all boards to environment.txt files
> > - migrate PPC boards to DM_I2C
> > - some cleanup
> >
> > Holger Brunck (7):
> >   board/km: move ls102xa boards to environment text files
> >   km/powerpc: migrate to env.txt file
> >   board/km/cent2: migrate to environment text file
> >   board/km/secu: migrate to use environment text files
> >   board/km: remove obsolete ARCH_KIRKWOOD
> >   km/ppc: migrate all mpc83xx to DM_I2C
> >   km/mpc8360: remove unused CONFIG_SYS_PAXE defines
> 
> Thanks for doing this. As this is the first in my mind big environment conversion,
> do you have any further feedback on the mechanism, things that would make
> this easier / more useful, etc?
> 

it was quite straight forward and especially for board series which use a
hierarchical structure as we do it is easy to use and afterwards much easier to
read and to maintain.

I only struggled about the strings I had defined  in Kconfig as discussed in another
thread about double quoted strings. I removed them from there in the end.

What would maybe be helpful to have a small script which converts the
generated include/generated/environment.h into a textfile which then looks
like the environment in your u-boot if you dump it. Then you can quickly do
a diff between a dump from your old and your textfile to see if your
newly migrated environment is identical.

Best regards
Holger
Tom Rini Dec. 7, 2022, 4:02 p.m. UTC | #3
On Wed, Dec 07, 2022 at 02:27:37PM +0000, Holger Brunck wrote:
> > > - migrate all boards to environment.txt files
> > > - migrate PPC boards to DM_I2C
> > > - some cleanup
> > >
> > > Holger Brunck (7):
> > >   board/km: move ls102xa boards to environment text files
> > >   km/powerpc: migrate to env.txt file
> > >   board/km/cent2: migrate to environment text file
> > >   board/km/secu: migrate to use environment text files
> > >   board/km: remove obsolete ARCH_KIRKWOOD
> > >   km/ppc: migrate all mpc83xx to DM_I2C
> > >   km/mpc8360: remove unused CONFIG_SYS_PAXE defines
> > 
> > Thanks for doing this. As this is the first in my mind big environment conversion,
> > do you have any further feedback on the mechanism, things that would make
> > this easier / more useful, etc?
> > 
> 
> it was quite straight forward and especially for board series which use a
> hierarchical structure as we do it is easy to use and afterwards much easier to
> read and to maintain.
> 
> I only struggled about the strings I had defined  in Kconfig as discussed in another
> thread about double quoted strings. I removed them from there in the end.
> 
> What would maybe be helpful to have a small script which converts the
> generated include/generated/environment.h into a textfile which then looks
> like the environment in your u-boot if you dump it. Then you can quickly do
> a diff between a dump from your old and your textfile to see if your
> newly migrated environment is identical.

Ah good.  Perhaps
https://patchwork.ozlabs.org/project/uboot/patch/20221128084122.3456680-2-max.oss.09@gmail.com/
and some documentation / guide around that would help then?
Holger Brunck Dec. 7, 2022, 4:22 p.m. UTC | #4
> On Wed, Dec 07, 2022 at 02:27:37PM +0000, Holger Brunck wrote:
> > > > - migrate all boards to environment.txt files
> > > > - migrate PPC boards to DM_I2C
> > > > - some cleanup
> > > >
> > > > Holger Brunck (7):
> > > >   board/km: move ls102xa boards to environment text files
> > > >   km/powerpc: migrate to env.txt file
> > > >   board/km/cent2: migrate to environment text file
> > > >   board/km/secu: migrate to use environment text files
> > > >   board/km: remove obsolete ARCH_KIRKWOOD
> > > >   km/ppc: migrate all mpc83xx to DM_I2C
> > > >   km/mpc8360: remove unused CONFIG_SYS_PAXE defines
> > >
> > > Thanks for doing this. As this is the first in my mind big
> > > environment conversion, do you have any further feedback on the
> > > mechanism, things that would make this easier / more useful, etc?
> > >
> >
> > it was quite straight forward and especially for board series which
> > use a hierarchical structure as we do it is easy to use and afterwards
> > much easier to read and to maintain.
> >
> > I only struggled about the strings I had defined  in Kconfig as
> > discussed in another thread about double quoted strings. I removed them
> from there in the end.
> >
> > What would maybe be helpful to have a small script which converts the
> > generated include/generated/environment.h into a textfile which then
> > looks like the environment in your u-boot if you dump it. Then you can
> > quickly do a diff between a dump from your old and your textfile to
> > see if your newly migrated environment is identical.
> 
> Ah good.  Perhaps
> https://patchwork.ozlabs.org/project/uboot/patch/20221128084122.3456680
> -2-max.oss.09@gmail.com/
> and some documentation / guide around that would help then?
> 

yes this would have been helpful for me.

Best regards
Holger