[PATCH 2/6 v3] spmi: msm: add arbiter version 5 support

Tom Rini trini at konsulko.com
Tue Oct 5 18:53:31 CEST 2021


On Thu, Sep 23, 2021 at 09:57:28PM +0300, dsankouski at gmail.com wrote:

> From: Dzmitry Sankouski <dsankouski at gmail.com>
> 
> Currently driver supports only version 1 and 2.
> Version 5 has slightly different registers structure
> 
> Signed-off-by: Dzmitry Sankouski <dsankouski at gmail.com>
> Cc: Ramon Fried <rfried.dev at gmail.com>
> Cc: Tom Rini <trini at konsulko.com>

When building for the new platform, we get warnings such as:
In file included from /home/trini/work/u-boot/u-boot/drivers/spmi/spmi-msm.c:16:
/home/trini/work/u-boot/u-boot/drivers/spmi/spmi-msm.c: In function 'msm_spmi_probe':
/home/trini/work/u-boot/u-boot/arch/arm/include/asm/io.h:45:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   45 | #define __arch_getl(a)                  (*(volatile unsigned int *)(a))
      |                                           ^
/home/trini/work/u-boot/u-boot/arch/arm/include/asm/io.h:127:38: note: in expansion of macro '__arch_getl'
  127 | #define readl(c)        ({ u32 __v = __arch_getl(c); __iormb(); __v; })
      |                                      ^~~~~~~~~~~
/home/trini/work/u-boot/u-boot/drivers/spmi/spmi-msm.c:202:18: note: in expansion of macro 'readl'
  202 |         hw_ver = readl(config_addr + PMIC_ARB_VERSION);
      |                  ^~~~~
/home/trini/work/u-boot/u-boot/drivers/serial/serial_msm_geni.c: In function 'qcom_geni_serial_poll_bit':
/home/trini/work/u-boot/u-boot/drivers/serial/serial_msm_geni.c:290:17: warning: implicit declaration of function 'udelay' [-Wimplicit-function-declaration]
  290 |                 udelay(10);
      |                 ^~~~~~

Please fix, thanks.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211005/9668b8ac/attachment.sig>


More information about the U-Boot mailing list