]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(plat/xilinx/zynqmp): optimization on pinctrl_functions
authorRonak Jain <ronak.jain@xilinx.com>
Fri, 6 May 2022 11:45:59 +0000 (04:45 -0700)
committerRonak Jain <ronak.jain@xilinx.com>
Mon, 23 May 2022 08:03:53 +0000 (01:03 -0700)
commit314f9f7957fbab12dc8d073cf054b99520372e0e
treea7fef63889f6fcda6f3abbf30e937b8aea2cc071
parent453abc80b2eacbf2816c838e47e40f063227d934
feat(plat/xilinx/zynqmp): optimization on pinctrl_functions

Optimizing the pinctrl_functions structure. Remove the pointer to
array of u16 type which consumes a lot of memory (64bits pointer to
array + 16B for END_OF_GROUPS + almost useless 8bits on every entry
which is the same for every group) and add two new members of type
u16 and u8 with the name called group_base and group_size
respectively.

The group_base member contains the base value of pinctrl group whereas
the group_size member contains the total number of groups requested
from the pinctrl function.

Overall, it saves around ~2KB of RAM and ~0.7KB of code memory.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Change-Id: I79b761b45df350d390fa344d411b340d9b2f13ac
plat/xilinx/zynqmp/pm_service/pm_api_pinctrl.c
plat/xilinx/zynqmp/pm_service/pm_api_pinctrl.h