Skip to content
Snippets Groups Projects
Select Git revision
  • 6e15cda270a060cf87c6c643a1cc3da65ffb242d
  • ex400 default
  • airoha-for-upstream
  • airoha-for-upstream-en7523
  • iop-mediatek-20250604
  • ubi-fastmap
  • add-dtb-rescan
  • agnau-blorgoda
  • agnau-scratch
  • mediatek-20250604
  • iop-mediatek-20250304
  • iop-mediatek-20250304-loc
  • agnau-mtk-back
  • iop-mediatek-20250304-back
  • iop-mediatek-20220630
  • jani-multi-dtb
  • jani-multi-dtb-spl
  • mediatek-20220630
  • iop-mediatek-20220606
  • jani-env-update-mtk
  • jani-env-update-mtk-txt
  • jani-iop-20220606
  • v2025.10-rc4
  • v2025.10-rc3
  • v2025.10-rc2
  • v2025.10-rc1
  • v2025.07
  • v2025.07-rc5
  • v2025.07-rc4
  • v2025.07-rc3
  • v2025.07-rc2
  • v2025.07-rc1
  • v2025.04
  • v2025.04-rc5
  • v2025.04-rc4
  • v2025.04-rc3
  • v2025.04-rc2
  • v2025.04-rc1
  • v2025.01
  • v2025.01-rc6
  • v2025.01-rc5
  • v2025.01-rc4
42 results

axp_pmic.h

Blame
  • user avatar
    Samuel Holland authored and Andre Przywara committed
    A single DM-based driver should be able to support some feature for
    several PMIC variants where the interface is the same. For example,
    all PMIC variants use the same register bit to trigger poweroff.
    
    However, currently only definitions for a single PMIC are available at
    a time. This requires drivers to use #ifdefs and different indentifiers
    for each variant they support.
    
    Let's simplify this by making register definitions for all variants
    available from the header. Then no preprocessor conditions are needed;
    the driver can use the register definition from any variant that
    supports the relevant feature.
    
    An exception is the GPIO-related definitions, which do not use unique
    identifiers. So for now, keep them like before. They will be cleaned up
    along with the GPIO driver.
    
    Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
    Reviewed-by: default avatarAndre Przywara <andre.przywara@arm.com>
    Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
    344df3ca
    History
    axp_pmic.h 1.20 KiB