From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] Add support for Olimex SAM9-L9261 SBC
Date: Fri, 12 Mar 2010 16:00:40 +0100 [thread overview]
Message-ID: <4B9A5718.2040500@atmel.com> (raw)
In-Reply-To: <20100312110032.2e57fdce@rechenknecht2k7>
Hi,
First and foremost, thank you for doing this job. It is indeed always a
good idea to submit work to the community.
Le 12/03/2010 11:00, Benjamin Valentin :
[..]
> diff -ru linux-2.6.34-rc1/drivers/video/atmel_lcdfb.c linux-2.6.34-rc1-olimex/drivers/video/atmel_lcdfb.c
> --- linux-2.6.34-rc1/drivers/video/atmel_lcdfb.c 2010-02-24 19:52:17.000000000 +0100
> +++ linux-2.6.34-rc1-olimex/drivers/video/atmel_lcdfb.c 2010-02-25 16:11:58.665578876 +0100
In a separate patch please. You will also have to sent it to
linux-fbdev-devel mailing list.
> @@ -21,6 +21,7 @@
> #include <mach/board.h>
> #include <mach/cpu.h>
> #include <mach/gpio.h>
> +#include <asm/mach-types.h>
>
> #include <video/atmel_lcdc.h>
>
> @@ -548,6 +549,10 @@
> if (!(info->var.sync & FB_SYNC_VERT_HIGH_ACT))
> value |= ATMEL_LCDC_INVFRAME_INVERTED;
>
> + if (machine_is_sam9_l9261()) {
> + value |= ATMEL_LCDC_INVCLK_INVERTED;
> + }
> +
Anyway, I think the driver is not the place to add this configuration.
You will have to configure it in the board file:
default_lcdcon2 field of the atmel_lcdfb_info structure.
Check the arch/avr32/boards/atngw100/mrmr.c file as an example.
> switch (info->var.bits_per_pixel) {
> case 1: value |= ATMEL_LCDC_PIXELSIZE_1; break;
> case 2: value |= ATMEL_LCDC_PIXELSIZE_2; break;
>
Bye,
--
Nicolas Ferre
WARNING: multiple messages have this Message-ID (diff)
From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Benjamin Valentin <benpicco@zedat.fu-berlin.de>,
linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, dinuxbg@gmail.com
Subject: Re: [PATCH 1/2] Add support for Olimex SAM9-L9261 SBC
Date: Fri, 12 Mar 2010 16:00:40 +0100 [thread overview]
Message-ID: <4B9A5718.2040500@atmel.com> (raw)
In-Reply-To: <20100312110032.2e57fdce@rechenknecht2k7>
Hi,
First and foremost, thank you for doing this job. It is indeed always a
good idea to submit work to the community.
Le 12/03/2010 11:00, Benjamin Valentin :
[..]
> diff -ru linux-2.6.34-rc1/drivers/video/atmel_lcdfb.c linux-2.6.34-rc1-olimex/drivers/video/atmel_lcdfb.c
> --- linux-2.6.34-rc1/drivers/video/atmel_lcdfb.c 2010-02-24 19:52:17.000000000 +0100
> +++ linux-2.6.34-rc1-olimex/drivers/video/atmel_lcdfb.c 2010-02-25 16:11:58.665578876 +0100
In a separate patch please. You will also have to sent it to
linux-fbdev-devel mailing list.
> @@ -21,6 +21,7 @@
> #include <mach/board.h>
> #include <mach/cpu.h>
> #include <mach/gpio.h>
> +#include <asm/mach-types.h>
>
> #include <video/atmel_lcdc.h>
>
> @@ -548,6 +549,10 @@
> if (!(info->var.sync & FB_SYNC_VERT_HIGH_ACT))
> value |= ATMEL_LCDC_INVFRAME_INVERTED;
>
> + if (machine_is_sam9_l9261()) {
> + value |= ATMEL_LCDC_INVCLK_INVERTED;
> + }
> +
Anyway, I think the driver is not the place to add this configuration.
You will have to configure it in the board file:
default_lcdcon2 field of the atmel_lcdfb_info structure.
Check the arch/avr32/boards/atngw100/mrmr.c file as an example.
> switch (info->var.bits_per_pixel) {
> case 1: value |= ATMEL_LCDC_PIXELSIZE_1; break;
> case 2: value |= ATMEL_LCDC_PIXELSIZE_2; break;
>
Bye,
--
Nicolas Ferre
next prev parent reply other threads:[~2010-03-12 15:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-12 9:58 [PATCH 0/2] Add support for Olimex SAM9-L9261 Development board Benjamin Valentin
2010-03-12 9:58 ` Benjamin Valentin
2010-03-12 10:00 ` [PATCH 1/2] Add support for Olimex SAM9-L9261 SBC Benjamin Valentin
2010-03-12 10:00 ` Benjamin Valentin
2010-03-12 10:02 ` [PATCH 2/2] Quick fix for the audio clocks on SAM9-L9261 Benjamin Valentin
2010-03-12 10:02 ` Benjamin Valentin
2010-03-12 10:02 ` Benjamin Valentin
2010-03-12 10:18 ` Russell King - ARM Linux
2010-03-12 10:18 ` Russell King - ARM Linux
2010-03-15 10:32 ` Alan Horstmann
2010-03-12 10:04 ` [PATCH 1/2] Add support for Olimex SAM9-L9261 SBC Russell King - ARM Linux
2010-03-12 10:04 ` Russell King - ARM Linux
2010-03-12 10:18 ` Russell King - ARM Linux
2010-03-12 10:18 ` Russell King - ARM Linux
2010-03-12 15:00 ` Nicolas Ferre [this message]
2010-03-12 15:00 ` Nicolas Ferre
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=4B9A5718.2040500@atmel.com \
--to=nicolas.ferre@atmel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.