From: Yi Zhou Date: Thu, 8 Feb 2018 14:14:28 +0000 (+0800) Subject: hdmitx: bringup for g12a X-Git-Tag: khadas-vims-v0.9.6-release~2431 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28b654eb40e384780ca7ee64e01c6edb4e8141b1;p=platform%2Fkernel%2Flinux-amlogic.git hdmitx: bringup for g12a PD#156734: bringup for g12a update some registers address Change-Id: I7a4660e3811d7f193ac8212fd7fb5fd80767c89e Signed-off-by: Yi Zhou --- diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/reg_ops.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/reg_ops.c index cc26522..67a9ad1 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/reg_ops.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/reg_ops.c @@ -164,7 +164,7 @@ void init_reg_map(unsigned int type) switch (type) { case MESON_CPU_ID_G12A: map = reg_maps_g12a; - for (i = 0; i <= REG_IDX_END; i++) { + for (i = 0; i < REG_IDX_END; i++) { map[i].p = ioremap(map[i].phy_addr, map[i].size); if (!map[i].p) { pr_info("hdmitx20: failed Mapped PHY: 0x%x\n", diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/txlx_reg.h b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/txlx_reg.h index c1107c3..fb40e47 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/txlx_reg.h +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/txlx_reg.h @@ -24,7 +24,7 @@ #define RESET2_REGISTER 0x1003 #define P_RESET2_REGISTER RESET_CBUS_REG_ADDR(RESET2_REGISTER) -#define ISA_DEBUG_REG0 0x3c00 +#define ISA_DEBUG_REG0 0x00 #define P_ISA_DEBUG_REG0 CBUS_REG_ADDR(ISA_DEBUG_REG0) #endif