From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 1.mo5.mail-out.ovh.net ([188.165.57.91] helo=mo5.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TF2o5-0004n5-2D for barebox@lists.infradead.org; Fri, 21 Sep 2012 12:58:17 +0000 Received: from mail404.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo5.mail-out.ovh.net (Postfix) with SMTP id EFD77FF8D3E for ; Fri, 21 Sep 2012 15:03:59 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 21 Sep 2012 14:55:33 +0200 Message-Id: <1348232133-18969-5-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1348232133-18969-1-git-send-email-plagnioj@jcrosoft.com> References: <20120921125151.GM26553@game.jcrosoft.org> <1348232133-18969-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 5/5] at91sam9m10g45ek: add lcdc support To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: Nicolas Ferre --- .../arm/boards/at91sam9m10g45ek/env/bin/boot_board | 7 ++++ arch/arm/boards/at91sam9m10g45ek/env/splash.png | Bin 0 -> 22747 bytes arch/arm/boards/at91sam9m10g45ek/init.c | 35 ++++++++++++++++++++ arch/arm/configs/at91sam9m10g45ek_defconfig | 11 ++++-- 4 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boards/at91sam9m10g45ek/env/splash.png diff --git a/arch/arm/boards/at91sam9m10g45ek/env/bin/boot_board b/arch/arm/boards/at91sam9m10g45ek/env/bin/boot_board index 3d7426f..eeb7a76 100644 --- a/arch/arm/boards/at91sam9m10g45ek/env/bin/boot_board +++ b/arch/arm/boards/at91sam9m10g45ek/env/bin/boot_board @@ -5,6 +5,13 @@ export PATH . /env/config +splash=/env/splash.png + +if [ -f ${splash} ]; then + splash ${splash} + fb0.enable=1 +fi + menu -r -m boot menu -a -m boot -d "\e[1;36mWelcome on Barebox Boot Sequence\e[0m" menu -e -a -m boot -c 'menu_boot' -d "boot (default) " diff --git a/arch/arm/boards/at91sam9m10g45ek/env/splash.png b/arch/arm/boards/at91sam9m10g45ek/env/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..08f2ac4fc106e6e38e503338b0fb047d20ac1f99 GIT binary patch literal 22747 zcmbTdbx>T^@Ge z@7Mr#?JX8%~e+)4V9hcM;bjo6;2gbX)9Yhc|SKREk9Ll3qJ=7 zAxj!@F)C3X;dcT~RvsWKA16m=cVVB8H2+0c_JY zv!dc-=VY_sbm*_vT@DakJsz5)u;n4-IZ^ws#0NcVA}@kPn-)`-lIb zAY;eU|dZTJ7p=s$q((g>@$*}ZQH z$Wg|{!qdsh*+W6*BhC9a?3Q+x!g2xva$H;jyqp5uocw}ZTteKOfb5Q(F7CE2u2j-myi_V63p?lk%>T1J|4UmL zD>pkYD@!>y7bmL!vahh+|B=5S=l@G@J~>%gPB}ptZUG@~DFIHJ|Hifa|6?BVVKXLo<68Pk*nit=YIo zXJ%$qR#r~!-*t3!Kp_34rKOFHjc90S?qQI^!lK;V+?c`<z`((=T?2=VFA)Px!+Qp{kv<6}9pi_xI$mAV zr*j)e&0U)+<^iv-uZ>e@lk11Y&GQ3mSFPhmZb7Xzy&L_r=h&EdkP)b|eNbV|A~6~5 z*W~uDk?rEHEhlg>0s?}6M30=NV}9#~icv^*`HqCLb#mS`ISq%dTdb*f5=<=0sSf{#?PkFuOHzfU}cxQo)+@_vYE%%evla|Cl-*9o^}z zTPrJT$B=G*KK|aw!3?5u2ASvepO7#@s#wVzWv=^gqb zAZFY<91;{5qH2+6Y;3Y}bl=; z5%A~FpRutqpRnnlKYw0dUs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=_AYITb2If#MvZI4+uyXH95Wrev+e> zHnEd0wng}Gd%9*BWv<@0fyXqPz5E{~O#)VW%G=1|arRZcE$>a7`W&#)yKuZ;!T-Lq z;axyBZETtH5wc_Du3bQZeUa)l@56*?!4N4$4?4#(@WZQ?ENzx(cw&pq|ViYDT$#Zy)wZ$Z9mzM5K%%v}rbX>{rPo{Q~P-cx&kjXTEyn%IoY zJ>$8^ZVec*ys~ur(&M8pZ5Zd+_X@YuIkvNUOm+1ZC*L}1%G{l)b4NnHYra~(7#TCs zvlzIW0|pWB*6rJu{$>jtw^Y`p*wau!yU71 z&zUFYzEb_=^3|J02JMaAOrPF?qj=h_ZBz;M@`xj(O7xqQL)iA$F*Jp*Ow z(kCYR&YiY(?%It{E?B;LSJ23bV=hfxx7t(I7?glvUi{W4z8hD<%_w0H?aI~5H~tJ{ z;xAk0E&zCUz41OW=8dUOdSd563m7kRRIhq->oi|q-+jJ7dp}t*X7Q-4+cyOT?OO0j zEb``)Qzv?M{vO6Ypp?|m|N;%Ydu zG;+ZiIHgzjk;`TQdtY1BHBo24=_GznN-&VucCl|cw*~M;< z1Fk;v1{_G5I(6#EkyBSMe`D#^S4fw;WBYbF*mc=OFS-+Se)YKKw4 zw|xKN39g1>kY#nsi#?>=6%O4`7dY0DHs(*drdm9`OM7 rhzGDoJb*obJ>miEkwGT^Uw{DsC5pN`zv8Z{00000NkvXXu0mjfB3br1 literal 0 HcmV?d00001 diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/arch/arm/boards/at91sam9m10g45ek/init.c index f1c43cc..d77c998 100644 --- a/arch/arm/boards/at91sam9m10g45ek/init.c +++ b/arch/arm/boards/at91sam9m10g45ek/init.c @@ -218,6 +218,40 @@ static int at91sam9m10g45ek_mem_init(void) } mem_initcall(at91sam9m10g45ek_mem_init); +static struct fb_videomode at91_tft_vga_modes[] = { + { + .name = "LG", + .refresh = 60, + .xres = 480, .yres = 272, + .pixclock = KHZ2PICOS(9000), + + .left_margin = 1, .right_margin = 1, + .upper_margin = 40, .lower_margin = 1, + .hsync_len = 45, .vsync_len = 1, + + .sync = 0, + .vmode = FB_VMODE_NONINTERLACED, + }, +}; + +#define AT91SAM9G45_DEFAULT_LCDCON2 (ATMEL_LCDC_MEMOR_LITTLE \ + | ATMEL_LCDC_DISTYPE_TFT \ + | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE) + +/* Driver datas */ +static struct atmel_lcdfb_info __initdata ek_lcdc_data = { + .lcdcon_is_backlight = true, + .default_bpp = 32, + .default_dmacon = ATMEL_LCDC_DMAEN, + .default_lcdcon2 = AT91SAM9G45_DEFAULT_LCDCON2, + .guard_time = 9, + .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB, + .info = { + .mode_list = at91_tft_vga_modes, + .num_modes = ARRAY_SIZE(at91_tft_vga_modes), + }, +}; + static int at91sam9m10g45ek_devices_init(void) { ek_add_device_nand(); @@ -225,6 +259,7 @@ static int at91sam9m10g45ek_devices_init(void) ek_add_device_mci(); ek_device_add_leds(); ek_device_add_keyboard(); + at91_add_device_lcdc(&ek_lcdc_data); devfs_add_partition("nand0", 0x00000, SZ_128K, DEVFS_PARTITION_FIXED, "at91bootstrap_raw"); dev_add_bb_dev("at91bootstrap_raw", "at91bootstrap"); diff --git a/arch/arm/configs/at91sam9m10g45ek_defconfig b/arch/arm/configs/at91sam9m10g45ek_defconfig index 1fa37d6..7e555b1 100644 --- a/arch/arm/configs/at91sam9m10g45ek_defconfig +++ b/arch/arm/configs/at91sam9m10g45ek_defconfig @@ -5,6 +5,7 @@ CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y CONFIG_PBL_IMAGE=y CONFIG_MMU=y CONFIG_BAREBOX_MAX_IMAGE_SIZE=0x40000 +CONFIG_MALLOC_SIZE=0x800000 CONFIG_MALLOC_TLSF=y CONFIG_PROMPT="9M10G45-EK:" CONFIG_LONGHELP=y @@ -29,8 +30,6 @@ CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y CONFIG_CMD_MEMINFO=y -CONFIG_CMD_MTEST=y -CONFIG_CMD_MTEST_ALTERNATIVE=y CONFIG_CMD_FLASH=y CONFIG_CMD_BOOTM_SHOW_TYPE=y CONFIG_CMD_BOOTM_VERBOSE=y @@ -38,13 +37,17 @@ CONFIG_CMD_BOOTM_INITRD=y CONFIG_CMD_BOOTM_OFTREE=y CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y CONFIG_CMD_UIMAGE=y +# CONFIG_CMD_BOOTU is not set CONFIG_CMD_RESET=y CONFIG_CMD_GO=y CONFIG_CMD_OFTREE=y +CONFIG_CMD_MTEST=y +CONFIG_CMD_MTEST_ALTERNATIVE=y CONFIG_CMD_TIMEOUT=y CONFIG_CMD_PARTITION=y CONFIG_CMD_MAGICVAR=y CONFIG_CMD_MAGICVAR_HELP=y +CONFIG_CMD_SPLASH=y CONFIG_CMD_GPIO=y CONFIG_CMD_UNCOMPRESS=y CONFIG_CMD_LED=y @@ -66,6 +69,8 @@ CONFIG_NAND=y # CONFIG_NAND_ECC_HW_NONE is not set CONFIG_NAND_ATMEL=y CONFIG_UBI=y +CONFIG_VIDEO=y +CONFIG_DRIVER_VIDEO_ATMEL=y CONFIG_MCI=y CONFIG_MCI_STARTUP=y CONFIG_MCI_ATMEL=y @@ -75,4 +80,4 @@ CONFIG_LED_TRIGGERS=y CONFIG_FS_FAT=y CONFIG_FS_FAT_WRITE=y CONFIG_FS_FAT_LFN=y -CONFIG_LZO_DECOMPRESS=y +CONFIG_PNG=y -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox