Re: [PATCH v3 1/2] pxa168: added framebuffer support code.

From: Eric Miao
Date: Thu Aug 26 2010 - 05:34:41 EST


On Thu, Aug 26, 2010 at 11:51 AM, Mark F. Brown <mark.brown314@xxxxxxxxx> wrote:
> Signed-off-by: Mark F. Brown <mark.brown314@xxxxxxxxx>

Applied to 'devel'.

> ---
> Âarch/arm/mach-mmp/include/mach/pxa168.h | Â Â8 ++++++++
> Âarch/arm/mach-mmp/pxa168.c       Â|  Â3 +++
> Â2 files changed, 11 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-mmp/include/mach/pxa168.h b/arch/arm/mach-mmp/include/mach/pxa168.h
> index 27e1bc7..220738f 100644
> --- a/arch/arm/mach-mmp/include/mach/pxa168.h
> +++ b/arch/arm/mach-mmp/include/mach/pxa168.h
> @@ -10,6 +10,7 @@ extern void __init pxa168_init_irq(void);
> Â#include <mach/devices.h>
> Â#include <plat/i2c.h>
> Â#include <plat/pxa3xx_nand.h>
> +#include <video/pxa168fb.h>
>
> Âextern struct pxa_device_desc pxa168_device_uart1;
> Âextern struct pxa_device_desc pxa168_device_uart2;
> @@ -25,6 +26,7 @@ extern struct pxa_device_desc pxa168_device_ssp3;
> Âextern struct pxa_device_desc pxa168_device_ssp4;
> Âextern struct pxa_device_desc pxa168_device_ssp5;
> Âextern struct pxa_device_desc pxa168_device_nand;
> +extern struct pxa_device_desc pxa168_device_fb;
>
> Âstatic inline int pxa168_add_uart(int id)
> Â{
> @@ -97,4 +99,10 @@ static inline int pxa168_add_nand(struct pxa3xx_nand_platform_data *info)
> Â{
> Â Â Â Âreturn pxa_register_device(&pxa168_device_nand, info, sizeof(*info));
> Â}
> +
> +static inline int pxa168_add_fb(struct pxa168fb_mach_info *mi)
> +{
> + Â Â Â return pxa_register_device(&pxa168_device_fb, mi, sizeof(*mi));
> +}
> +
> Â#endif /* __ASM_MACH_PXA168_H */
> diff --git a/arch/arm/mach-mmp/pxa168.c b/arch/arm/mach-mmp/pxa168.c
> index 652ae66..eaebf66 100644
> --- a/arch/arm/mach-mmp/pxa168.c
> +++ b/arch/arm/mach-mmp/pxa168.c
> @@ -79,6 +79,7 @@ static APBC_CLK(ssp4, PXA168_SSP4, 4, 0);
> Âstatic APBC_CLK(ssp5, PXA168_SSP5, 4, 0);
>
> Âstatic APMU_CLK(nand, NAND, 0x01db, 208000000);
> +static APMU_CLK(lcd, LCD, 0x7f, 312000000);
>
> Â/* device and clock bindings */
> Âstatic struct clk_lookup pxa168_clkregs[] = {
> @@ -96,6 +97,7 @@ static struct clk_lookup pxa168_clkregs[] = {
> Â Â Â ÂINIT_CLKREG(&clk_ssp4, "pxa168-ssp.3", NULL),
> Â Â Â ÂINIT_CLKREG(&clk_ssp5, "pxa168-ssp.4", NULL),
> Â Â Â ÂINIT_CLKREG(&clk_nand, "pxa3xx-nand", NULL),
> + Â Â Â INIT_CLKREG(&clk_lcd, "pxa168-fb", NULL),
> Â};
>
> Âstatic int __init pxa168_init(void)
> @@ -147,3 +149,4 @@ PXA168_DEVICE(ssp2, "pxa168-ssp", 1, SSP2, 0xd401c000, 0x40, 54, 55);
> ÂPXA168_DEVICE(ssp3, "pxa168-ssp", 2, SSP3, 0xd401f000, 0x40, 56, 57);
> ÂPXA168_DEVICE(ssp4, "pxa168-ssp", 3, SSP4, 0xd4020000, 0x40, 58, 59);
> ÂPXA168_DEVICE(ssp5, "pxa168-ssp", 4, SSP5, 0xd4021000, 0x40, 60, 61);
> +PXA168_DEVICE(fb, "pxa168-fb", -1, LCD, 0xd420b000, 0x1c8);
> --
> 1.7.0.4
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/