From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Tue, 17 Aug 2010 00:31:49 +0100 Subject: amba clcd clock/timing check mismatch In-Reply-To: References: Message-ID: <20100816233149.GC10119@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Aug 16, 2010 at 03:54:47PM -0700, Kevin Wells wrote: > >From the include/linux/amba/clcd.h file, in the clcdfb_check() function... > > #define CHECK(e,l,h) (var->e < l || var->e > h) > if (CHECK(right_margin, (5+1), 256) || /* back porch */ > CHECK(left_margin, (5+1), 256) || /* front porch */ > CHECK(hsync_len, (5+1), 256) || > var->xres > 4096 || > > These 4 checks don't match the actual values that can be > generated by the CLCD controller. The minimum values for left > and right horizontal porch and HSYNC width can go down to > 1 clock. Not quite - these restrictions deal with the restrictions for DMA timing for STN panels as specified in the CLCD documentation - clcdfb_check doesn't deal with the differences between STN and active panels. So it's not as simple as just reducing these down to allowing 1 clock - that'd break STN panels. > The maximum x resolution for the pl11x devices is 1024 pixels. Yes, you seem to be right here.