From 5205b43fb14e1dd7213793b856a988a12a3eddb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Wed, 4 Jan 2017 09:55:52 +0100 Subject: [PATCH] karo: tx6: use GP1 fuse for MIPI variant detection --- board/karo/tx6/tx6qdl.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/board/karo/tx6/tx6qdl.c b/board/karo/tx6/tx6qdl.c index 9a72321dd1..bb57a796e1 100644 --- a/board/karo/tx6/tx6qdl.c +++ b/board/karo/tx6/tx6qdl.c @@ -537,12 +537,11 @@ static int tx6_pmic_probe(void) static int tx6_mipi(void) { struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; - struct fuse_bank5_regs *fuse = (void *)ocotp->bank[5].fuse_regs; - u32 pad_settings = readl(&fuse->pad_settings); + struct fuse_bank4_regs *fuse = (void *)ocotp->bank[4].fuse_regs; + u32 gp1 = readl(&fuse->gp1); - debug("Fuse pad_settings @ %p = %02x\n", - &fuse->pad_settings, pad_settings); - return !(pad_settings & 1); + debug("Fuse gp1 @ %p = %08x\n", &fuse->gp1, gp1); + return gp1 & 1; } int board_init(void) -- 2.39.2