return -EINVAL;
}
+static int tx6_mipi(void)
+{
+ struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
+ struct fuse_bank4_regs *fuse = (void *)ocotp->bank[4].fuse_regs;
+ u32 gp1 = readl(&fuse->gp1);
+
+ debug("Fuse gp1 @ %p = %08x\n", &fuse->gp1, gp1);
+ return gp1 & 1;
+}
+
int board_init(void)
{
int ret;
printf("Board: Ka-Ro TX6%s-%d%d%d%c\n",
tx6_mod_suffix,
is_cpu_type(MXC_CPU_MX6Q) ? 1 : 8,
- is_lvds(), tx6_get_mod_rev(pmic_id),
+ tx6_mipi() ? 2 : is_lvds(), tx6_get_mod_rev(pmic_id),
tx6_mem_suffix());
get_hab_status();