[NXP i.MX 應用處理器教室] 如何將全新量產的電源管理芯片"PCA9450A" 運用於"i.MX8M Mini"的應用處理器[軟體驅動篇]

關鍵字 :NXPi.MXPCA9450A
NXP開發出相對應的"電源管理芯片PCA9450A"來提供電源給i.MX8M Mini。在成本,電源,功耗上更有優勢。在硬體線路線,我們提供相對應的修改參考線路之外,另外也要搭配相對軟件驅動。

以下為軟件驅動的補丁:
I.  uboot‐imx
    1. In the “./drivers/power/pmic/” directory
             A. copy pca9450.c and pmic_pca9450.c of uboot-pca9450.zip.
             B. modify Kconfig to add pca9450

                 
              C. modify Makefile to add pca9450
                                  
     2. In the “./include/power/” directory
            A. copy pca9450.h of uboot-pca9450.zip.
     3. In the “./include/configs/” directory
           A. Modify imx8mm_evk.h to remove bd71837 and add pca9450

                        
    4. In the “./arch/arm/dts/” directory.
           A. Change to fsl-imx8mm-evk.dts of uboot-pca9450.zip.
    5. modify initial code of spl.c to replace bd71837 code with pca9450.

                
                 If use “imx8mm_evk” directory,
                 
                 Or if use “imx8mm_val” directory,

                

II.   linux‐imx
     1. In the “./drivers/regulator/” directory
           A. copy pca9450-regulator.c of linux-imx8mm-pca9450.zip.
           B. modify Kconfig to add pca9450

                
          C. modify Makefile to add pca9450
                 
   2. In the “./drivers/mfd/” directory
        A. copy pca9450.c of linux-imx8mm-pca9450.zip.
        B. modify Kconfig to add pca9450

               
       C. modify Makefile to add pca9450
             
   3. In the “./include/linux/mfd/” directory
        A. copy pca9450.h of limux-imx
   4. In the “./arch/arm64/configs/” directory
       A. Modify defconfig to remove bd71837 and add pca9450

             

   5. In the “./arch/arm64/boot/dts/freescale/” directory.
        A. Change to fsl-imx8mm-evk.dts of linux-imx8mm-pca9450.zip

技術文檔

類型標題檔案
軟件Patch

★博文內容均由個人提供,與平台無關,如有違法或侵權,請與網站管理員聯繫。

★文明上網,請理性發言。內容一周內被舉報5次,發文人進小黑屋喔~

評論

Julius

Julius

2020年4月14日
一定要做一次 bitbake -c menuconfig 問題就解決了~
Julius

Julius

2020年4月14日
最近嘗試在4.17.98-2.0.0_ga BSP作patch, 但是無法用bitbake 編譯linux-imx
不清楚問題是哪裡,是否有遺漏掉甚麼地方?