[PATCH 0/8] Pin control support for RZ/G2[HN]

Biju Das biju.das.jz at bp.renesas.com
Wed Oct 28 11:34:20 CET 2020


This patch series adds pin control support for RZ/G2[HN] SoC's.

Also added pinctrl optimization for RZ/G2[HMN] SoC's.

This patches are based on u-boot-sh/next.

+ Geert

The last 3 patches in this series are RFC, which aims to optimize pinctrl
size for RCar SoC 's( The u-boot size is reduced from 1025221 to 964365 bytes)
The saving is around ~60K. Please share your comments.

Note:-
1) I haven't tested the RFC changes on r-car boards due to unavailability of the boards.
2) Optimization is based on the fact that some pins are not enabled in board dts(like DRIF,MSIOF etc..)

u-boot-sh\next
--------------
$ size drivers/pinctrl/renesas/*.o
   text	   data	    bss	    dec	    hex	filename
 151332	    288	      1	 151621	  25045	drivers/pinctrl/renesas/built-in.o
   3811	    288	      1	   4100	   1004	drivers/pinctrl/renesas/pfc.o
  48123	      0	      0	  48123	   bbfb	drivers/pinctrl/renesas/pfc-r8a7795.o
  47939	      0	      0	  47939	   bb43	drivers/pinctrl/renesas/pfc-r8a77965.o
  47751	      0	      0	  47751	   ba87	drivers/pinctrl/renesas/pfc-r8a7796.o
$ ls -al u-boot.bin 
-rw-r--r-- 1 biju biju 1025221 Oct 28 08:48 u-boot.bin
$ size u-boot
   text	   data	    bss	    dec	    hex	filename
 942336	  36208	  71632	1050176	 100640	u-boot

After Applying patch 1-5
----------------------
$ size drivers/pinctrl/renesas/*.o
   text	   data	    bss	    dec	    hex	filename
 151868	    288	      1	 152157	  2525d	drivers/pinctrl/renesas/built-in.o
   3811	    288	      1	   4100	   1004	drivers/pinctrl/renesas/pfc.o
  48375	      0	      0	  48375	   bcf7	drivers/pinctrl/renesas/pfc-r8a7795.o
  48191	      0	      0	  48191	   bc3f	drivers/pinctrl/renesas/pfc-r8a77965.o
  47751	      0	      0	  47751	   ba87	drivers/pinctrl/renesas/pfc-r8a7796.o
$ ls -al u-boot.bin 
-rw-r--r-- 1 biju biju 1026621 Oct 28 08:42 u-boot.bin
$ size u-boot
   text	   data	    bss	    dec	    hex	filename
 943732	  36208	  71632	1051572	 100bb4	u-boot

After applying RFC patches
--------------------------
$ size drivers/pinctrl/renesas/*.o
   text	   data	    bss	    dec	    hex	filename
 125310	    288	      1	 125599	  1ea9f	drivers/pinctrl/renesas/built-in.o
   3811	    288	      1	   4100	   1004	drivers/pinctrl/renesas/pfc.o
  40157	      0	      0	  40157	   9cdd	drivers/pinctrl/renesas/pfc-r8a7795.o
  39973	      0	      0	  39973	   9c25	drivers/pinctrl/renesas/pfc-r8a77965.o
  39533	      0	      0	  39533	   9a6d	drivers/pinctrl/renesas/pfc-r8a7796.o
$ ls -al u-boot.bin 
-rw-r--r-- 1 biju biju 964365 Oct 28 09:32 u-boot.bin
$ size u-boot
   text	   data	    bss	    dec	    hex	filename
 881478	  36208	  71632	 989318	  f1886	u-boot

Biju Das (8):
  pinctrl: renesas: r8a77965: Add R8A774B1 PFC support
  pinctrl: renesas: r8a77951: Add R8A774E1 PFC support
  pinctrl: renesas: r8a7796: Optimize pinctrl image size for R8A774A1
  pinctrl: renesas: r8a77965: Optimize pinctrl image size for R8A774B1
  pinctrl: renesas: r8a7795: Optimize pinctrl image size for R8A774E1
  pinctrl: renesas: r8a7796: Optimize pinctrl image size for R8A7796
  pinctrl: renesas: r8a77965: Optimize pinctrl image size for R8A77965
  pinctrl: renesas: r8a7795: Optimize pinctrl image size for R8A7795

 arch/arm/mach-rmobile/Kconfig.64       |   2 +
 drivers/pinctrl/renesas/Kconfig        |  26 +
 drivers/pinctrl/renesas/Makefile       |   2 +
 drivers/pinctrl/renesas/pfc-r8a7795.c  | 939 ++++++++++++++-----------
 drivers/pinctrl/renesas/pfc-r8a7796.c  |  36 +
 drivers/pinctrl/renesas/pfc-r8a77965.c | 931 +++++++++++++-----------
 drivers/pinctrl/renesas/pfc.c          |  22 +
 drivers/pinctrl/renesas/sh_pfc.h       |   2 +
 8 files changed, 1146 insertions(+), 814 deletions(-)

-- 
2.17.1



More information about the U-Boot mailing list