From patchwork Sun Sep 22 10:01:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 2924321 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 71359BFF05 for ; Sun, 22 Sep 2013 12:35:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A8A27204C7 for ; Sun, 22 Sep 2013 12:35:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 298EF204A3 for ; Sun, 22 Sep 2013 12:35:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752918Ab3IVMft (ORCPT ); Sun, 22 Sep 2013 08:35:49 -0400 Received: from smtp-out-094.synserver.de ([212.40.185.94]:1419 "EHLO smtp-out-090.synserver.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752387Ab3IVMft (ORCPT ); Sun, 22 Sep 2013 08:35:49 -0400 Received: (qmail 22076 invoked by uid 0); 22 Sep 2013 10:01:08 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@laprican.de X-SynServer-PPID: 22023 Received: from ppp-188-174-31-124.dynamic.mnet-online.de (HELO lars-laptop.fritz.box) [188.174.31.124] by 217.119.54.87 with SMTP; 22 Sep 2013 10:01:08 -0000 From: Lars-Peter Clausen To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: linux-fbdev@vger.kernel.org, Lars-Peter Clausen , Paul Cercueil Subject: [PATCH 1/2] video: jz4740-fb: Fix LCD_CMD bit definitions Date: Sun, 22 Sep 2013 12:01:48 +0200 Message-Id: <1379844109-10513-1-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.7.10.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the bit offsets for the LCD_CMD definitions. Signed-off-by: Paul Cercueil Signed-off-by: Lars-Peter Clausen --- drivers/video/jz4740_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c index 2c49112..23aa475 100644 --- a/drivers/video/jz4740_fb.c +++ b/drivers/video/jz4740_fb.c @@ -99,9 +99,9 @@ #define JZ_LCD_CTRL_BPP_15_16 0x4 #define JZ_LCD_CTRL_BPP_18_24 0x5 -#define JZ_LCD_CMD_SOF_IRQ BIT(15) -#define JZ_LCD_CMD_EOF_IRQ BIT(16) -#define JZ_LCD_CMD_ENABLE_PAL BIT(12) +#define JZ_LCD_CMD_SOF_IRQ BIT(31) +#define JZ_LCD_CMD_EOF_IRQ BIT(30) +#define JZ_LCD_CMD_ENABLE_PAL BIT(28) #define JZ_LCD_SYNC_MASK 0x3ff