From: ryan@bluewatersys.com (Ryan Mallon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ep93xx: add framebuffer support to edb93xx boards
Date: Thu, 27 Jan 2011 12:51:25 +1300 [thread overview]
Message-ID: <4D40B37D.7030608@bluewatersys.com> (raw)
In-Reply-To: <0D753D10438DA54287A00B027084269764C41240B9@AUSP01VMBX24.collaborationhost.net>
On 01/08/2011 11:38 AM, H Hartley Sweeten wrote:
> The ep9307, ep9312, and ep9315 variants of the ep93xx processor include the
> raster engine needed for framebuffer support.
>
> This allows the EDB93xx boards with those processors to use the framebuffer
> driver.
>
> Tested on an EDB9307A with the following kernel parameters:
> video=640x480-16 at 60
> video=1024x768-16 at 60
>
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
>
> ---
>
> diff --git a/arch/arm/mach-ep93xx/edb93xx.c b/arch/arm/mach-ep93xx/edb93xx.c
> index 4b04316..49e3b3d 100644
> --- a/arch/arm/mach-ep93xx/edb93xx.c
> +++ b/arch/arm/mach-ep93xx/edb93xx.c
> @@ -32,6 +32,7 @@
> #include <linux/i2c-gpio.h>
>
> #include <mach/hardware.h>
> +#include <mach/fb.h>
>
> #include <asm/mach-types.h>
> #include <asm/mach/arch.h>
> @@ -111,6 +112,41 @@ static void __init edb93xx_register_pwm(void)
> }
>
>
> +/*************************************************************************
> + * EDB93xx framebuffer
> + *************************************************************************/
> +static struct ep93xxfb_mach_info __initdata edb93xxfb_info = {
> + .num_modes = EP93XXFB_USE_MODEDB,
> + .bpp = 16,
> + .flags = 0,
> +};
> +
> +static int __init edb93xx_has_fb(void)
> +{
> + if (machine_is_edb9307() || machine_is_edb9307a() ||
> + machine_is_edb9312() || machine_is_edb9315() ||
> + machine_is_edb9315a()) {
return (machine_is_edb9307() || machine_is_edb9307a() ...
> + /* These all have an ep93xx with video capability */
> + return 1;
> + } else {
> + /* The ep9301 and ep9302 do not have a video peripheral */
> + return 0;
> + }
> +}
> +
> +static void __init edb93xx_register_fb(void)
> +{
> + if (!edb93xx_has_fb())
> + return;
> +
> + if (machine_is_edb9307a() || machine_is_edb9315a())
> + edb93xxfb_info.flags |= EP93XXFB_USE_SDCSN0;
> + else
> + edb93xxfb_info.flags |= EP93XXFB_USE_SDCSN3;
> +
> + ep93xx_register_fb(&edb93xxfb_info);
> +}
> +
> static void __init edb93xx_init_machine(void)
> {
> ep93xx_init_devices();
> @@ -118,6 +154,7 @@ static void __init edb93xx_init_machine(void)
> ep93xx_register_eth(&edb93xx_eth_data, 1);
> edb93xx_register_i2c();
> edb93xx_register_pwm();
> + edb93xx_register_fb();
> }
Otherwise looks fine.
Acked-by: Ryan Mallon <ryan@bluewatersys.com>
--
Bluewater Systems Ltd - ARM Technology Solution Centre
Ryan Mallon 5 Amuri Park, 404 Barbadoes St
ryan at bluewatersys.com PO Box 13 889, Christchurch 8013
http://www.bluewatersys.com New Zealand
Phone: +64 3 3779127 Freecall: Australia 1800 148 751
Fax: +64 3 3779135 USA 1800 261 2934
next prev parent reply other threads:[~2011-01-26 23:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Acuuu5ny+zlvst9wTH+OPBMrDizm+g==>
2011-01-07 22:38 ` [PATCH] ep93xx: add framebuffer support to edb93xx boards H Hartley Sweeten
2011-01-08 19:52 ` Martin Guy
2011-01-10 16:59 ` H Hartley Sweeten
2011-01-26 23:51 ` Ryan Mallon [this message]
2011-01-27 0:04 ` H Hartley Sweeten
2011-01-27 0:10 ` Ryan Mallon
2011-01-27 5:28 ` Martin Guy
2011-01-27 16:43 ` H Hartley Sweeten
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=4D40B37D.7030608@bluewatersys.com \
--to=ryan@bluewatersys.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).