npcm8xx-bootloader: Support I3C clock errata Fix Set arguments of I3C master clock to fix I3C clock errata. Refer to NPCM8mnx_Errata_Rev1.43 Section 1.13 If need this change, need to add I3C_ENABLED to True in machine.conf for not affecting other platforms. Tested: With hardware team measurement, the clock can fix on 8MHz instead of 7.1MHz Google-Bug-Id: 514191484 Fusion-Link: platform5: https://fusion2.corp.google.com/ad779ea8-f6e7-3acd-af94-ce248f35594b platform15: https://fusion2.corp.google.com/3da11f91-a08b-3814-8632-d1b104dad4f4 platform18: https://fusion2.corp.google.com/26cd18a4-664d-3d74-bc9b-4f6f6a4ea4d7 platform17: https://fusion2.corp.google.com/68a5b985-5d9c-34a6-9bad-b94fb23ea3dd platform11+ext: https://fusion2.corp.google.com/0ade3131-2035-3d55-aabb-299344ec360f platform11: https://fusion2.corp.google.com/bd51a7a6-c36c-33b9-96be-189302724989 Change-Id: I76e5da4d07226c749b206ce42f1bed03e60ffb45 Signed-off-by: Steven Cho <cho.steven@inventec.corp-partner.google.com>
diff --git a/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm8xx-bootloader_%.bbappend b/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm8xx-bootloader_%.bbappend index 9f1d0a6..6f003d7 100644 --- a/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm8xx-bootloader_%.bbappend +++ b/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm8xx-bootloader_%.bbappend
@@ -45,6 +45,8 @@ 'FIU1_CLK_DIVIDER': FIU1_CLK_DIVIDER, 'FIU3_CLK_DIVIDER': FIU3_CLK_DIVIDER, 'MC_FREQ_IN_MHZ': '1000', + 'PLL0_OVERRIDE': '625' if d.getVar('I3C_ENABLED') == 'True' else '0', + 'I3C_CLK_DIVIDER': '13' if d.getVar('I3C_ENABLED') == 'True' else '0xFF', }, }