Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tokyovigilante/72421ccc3e46ca147fdeb76be67565b1 to your computer and use it in GitHub Desktop.
Save tokyovigilante/72421ccc3e46ca147fdeb76be67565b1 to your computer and use it in GitHub Desktop.
TF-A hack to disable RSB for I2C PMIC
diff --git a/plat/allwinner/sun50i_h616/sunxi_power.c b/plat/allwinner/sun50i_h616/sunxi_power.c
index dd6ebba9a..361cf07fe 100644
--- a/plat/allwinner/sun50i_h616/sunxi_power.c
+++ b/plat/allwinner/sun50i_h616/sunxi_power.c
@@ -75,7 +75,8 @@ int sunxi_pmic_setup(uint16_t socid, const void *fdt)
INFO("Could not init platform bus: %d\n", ret);
return ret;
}
-
+ INFO("PMIC: Exiting early...\n");
+ return 0;
ret = rsb_init();
if (ret) {
INFO("Could not init RSB: %d\n", ret);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment