Module Name: src Committed By: jakllsch Date: Fri Aug 22 20:01:16 UTC 2014
Modified Files: src/sys/arch/arm/omap: tifb.c Log Message: Fix what is almost certianly an off-by-one error when configuring pads on AM335x for BPP greater than 16. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/omap/tifb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/omap/tifb.c diff -u src/sys/arch/arm/omap/tifb.c:1.2 src/sys/arch/arm/omap/tifb.c:1.3 --- src/sys/arch/arm/omap/tifb.c:1.2 Fri Aug 22 19:59:18 2014 +++ src/sys/arch/arm/omap/tifb.c Fri Aug 22 20:01:16 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: tifb.c,v 1.2 2014/08/22 19:59:18 jakllsch Exp $ */ +/* $NetBSD: tifb.c,v 1.3 2014/08/22 20:01:16 jakllsch Exp $ */ /* * Copyright (c) 2010 Michael Lorenz @@ -57,7 +57,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tifb.c,v 1.2 2014/08/22 19:59:18 jakllsch Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tifb.c,v 1.3 2014/08/22 20:01:16 jakllsch Exp $"); #include "opt_omap.h" @@ -443,7 +443,7 @@ tifb_attach(device_t parent, device_t se #ifdef TI_AM335X /* configure output pins */ - for (i = 0; i < ((sc->sc_panel->bpp == 16) ? 16 : 23); i++) { + for (i = 0; i < ((sc->sc_panel->bpp == 16) ? 16 : 24); i++) { if (sitara_cm_padconf_get(tifb_padconf_data[i].padname, &mode, &state) == 0) { aprint_debug(": %s mode %s state %d ",