linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: marek.vasut@gmail.com (Marek Vasut)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/19] arm pxafb: add Pixel Clock Divisor (LCCR4_PCDDIV) bit support.
Date: Mon, 12 Jul 2010 15:26:00 +0200	[thread overview]
Message-ID: <201007121526.00937.marek.vasut@gmail.com> (raw)
In-Reply-To: <1270121891-3193-1-git-send-email-giometti@linux.it>

Dne ?t 1. dubna 2010 13:38:11 Rodolfo Giometti napsal(a):
> Signed-off-by: Rodolfo Giometti <giometti@linux.it>
> Acked-by: Raffaele Recalcati <raffaele.recalcati@bticino.it>
> Acked-by: Enrico Valtolina <enrico.valtolina@bticino.it>

Any updates?
> ---
>  arch/arm/mach-pxa/include/mach/pxafb.h    |    1 +
>  arch/arm/mach-pxa/include/mach/regs-lcd.h |    1 +
>  drivers/video/pxafb.c                     |    4 +++-
>  3 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h
> b/arch/arm/mach-pxa/include/mach/pxafb.h index 160ec83..b2530c5 100644
> --- a/arch/arm/mach-pxa/include/mach/pxafb.h
> +++ b/arch/arm/mach-pxa/include/mach/pxafb.h
> @@ -61,6 +61,7 @@
>  #define LCD_PCLK_EDGE_RISE	(0 << 19)
>  #define LCD_PCLK_EDGE_FALL	(1 << 19)
>  #define LCD_ALTERNATE_MAPPING	(1 << 20)
> +#define LCD_PCDDIV_1		(1 << 21)
> 
>  /*
>   * This structure describes the machine which we are running on.
> diff --git a/arch/arm/mach-pxa/include/mach/regs-lcd.h
> b/arch/arm/mach-pxa/include/mach/regs-lcd.h index f82dcea..65b711a 100644
> --- a/arch/arm/mach-pxa/include/mach/regs-lcd.h
> +++ b/arch/arm/mach-pxa/include/mach/regs-lcd.h
> @@ -46,6 +46,7 @@
>  #define LCCR4_PAL_FOR_2	(2 << 15)
>  #define LCCR4_PAL_FOR_3	(3 << 15)
>  #define LCCR4_PAL_FOR_MASK	(3 << 15)
> +#define LCCR4_PCDDIV	(1 << 31)
> 
>  #define FDADR0		(0x200)	/* DMA Channel 0 Frame Descriptor 
Address Register
> */ #define FDADR1		(0x210)	/* DMA Channel 1 Frame Descriptor 
Address
> Register */ diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
> index 825b665..8cba420 100644
> --- a/drivers/video/pxafb.c
> +++ b/drivers/video/pxafb.c
> @@ -1355,7 +1355,7 @@ static int pxafb_activate_var(struct
> fb_var_screeninfo *var, fbi->reg_lccr3 |= pxafb_var_to_lccr3(var);
> 
>  	fbi->reg_lccr4 = lcd_readl(fbi, LCCR4) & ~LCCR4_PAL_FOR_MASK;
> -	fbi->reg_lccr4 |= (fbi->lccr4 & LCCR4_PAL_FOR_MASK);
> +	fbi->reg_lccr4 |= (fbi->lccr4 & (LCCR4_PAL_FOR_MASK | LCCR4_PCDDIV));
>  	local_irq_restore(flags);
> 
>  	/*
> @@ -1738,6 +1738,8 @@ static void pxafb_decode_mach_info(struct pxafb_info
> *fbi, fbi->lccr3 |= (lcd_conn & LCD_BIAS_ACTIVE_LOW) ? LCCR3_OEP : 0;
>  	fbi->lccr3 |= (lcd_conn & LCD_PCLK_EDGE_FALL)  ? LCCR3_PCP : 0;
> 
> +	fbi->lccr4 |= (lcd_conn & LCD_PCDDIV_1) ? LCCR4_PCDDIV : 0;
> +
>  decode_mode:
>  	pxafb_setmode(&fbi->fb.var, &inf->modes[0]);

  reply	other threads:[~2010-07-12 13:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-01 11:38 [PATCH 02/19] arm pxafb: add Pixel Clock Divisor (LCCR4_PCDDIV) bit support Rodolfo Giometti
2010-07-12 13:26 ` Marek Vasut [this message]
2010-07-12 13:34   ` Rodolfo Giometti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201007121526.00937.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).