Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    A133芯片uboot运行时,SDK的uboot源码电源芯片有一个2s的超时机制,是否可将这个超时时间减少

    Linux
    2
    2
    875
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      li32134134 LV 2 last edited by

      在logan平台中uboot的版本为2018版本,电源管理芯片为AXP803,在uboot运行的过程会调用两次bmu_axp81X_get_battery_probe接口,会拖慢启动速度,这个pmic_bus_read(AXP81X_RUNTIME_ADDR, AXP81X_MODE_CHGSTATUS, &reg_value)只是去调用iic读寄存器的值,查看datasheet也没有表示需要去包含这个超时机制,想知道这个代码设计是出于什么目的,能否进行精简。该驱动目录位于longan/brandy/brandy-2.0/u-boot-2018/drivers/sunxi_power/bmu_axp81X.c

      622cfc71-fc9d-4b4a-8b1b-2479e1cb590a-image.png
      0ebec00e-017a-4027-8ad9-1f8b9d9898aa-image.png

      KunYi 1 Reply Last reply Reply Quote Share 1
      • KunYi
        KunYi LV 8 @li32134134 last edited by

        @li32134134

        沒試過不過看起來這段代碼有bugs
        應該 if() else break; 讀到後就離開 while()

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策