[U-Boot] [PATCH 10/10] RFC: Test code for glacier PCI video support
Bin Meng
bmeng.cn at gmail.com
Thu Jan 8 07:18:38 CET 2015
Hi Simon,
On Tue, Dec 30, 2014 at 10:32 AM, Simon Glass <sjg at chromium.org> wrote:
> NOT TO APPLY
>
> This shows how to enable video for the glacier board, as an example of the
> emulator working on a VESA-compliant graphics card.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> include/configs/canyonlands.h | 31 +++++++++++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
>
> diff --git a/include/configs/canyonlands.h b/include/configs/canyonlands.h
> index 7a1499d..c55e076 100644
> --- a/include/configs/canyonlands.h
> +++ b/include/configs/canyonlands.h
> @@ -133,6 +133,9 @@
> #define CONFIG_SYS_NOR_CS 0 /* NOR chip connected to CSx */
> #define CONFIG_SYS_NAND_CS 3 /* NAND chip connected to CSx */
>
> +#define CONFIG_CONSOLE_MUX
> +#define CONFIG_SYS_CONSOLE_IS_IN_ENV
> +
> /*-----------------------------------------------------------------------
> * FLASH related
> *----------------------------------------------------------------------*/
> @@ -359,6 +362,15 @@
> "ramdisk_addr=fc200000\0" \
> "pciconfighost=1\0" \
> "pcie_mode=RP:RP\0" \
> + "eth1addr=00:01:ec:00:f4:9d\0" \
> + "eth2addr=00:01:ec:00:f4:9e\0" \
> + "eth3addr=00:01:ec:00:f4:9f\0" \
> + "ethact=ppc_4xx_eth0\0" \
> + "ethaddr=00:01:ec:00:f4:9c\0" \
> + "stderr=serial\0" \
> + "stdin=serial\0" \
> + "stdout=serial,vga\0" \
> + "autoload=n\0" \
> ""
> #else /* defined(CONFIG_ARCHES) */
> #define CONFIG_EXTRA_ENV_SETTINGS \
> @@ -675,4 +687,23 @@
> }
> #endif
>
> +#define CONFIG_VIDEO
> +
> +#ifdef CONFIG_VIDEO
> +#define CONFIG_BIOSEMU /* x86 bios emulator for vga bios */
> +#define CONFIG_VIDEO_VESA
> +#define VIDEO_IO_OFFSET 0xd8000000
> +#define CONFIG_SYS_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET
> +#define CONFIG_VIDEO_SW_CURSOR
> +#define CONFIG_VIDEO_LOGO
> +#define CONFIG_CFB_CONSOLE
> +#define CONFIG_SPLASH_SCREEN
> +#define CONFIG_VGA_AS_SINGLE_DEVICE
> +#define CONFIG_CMD_BMP
> +#endif
> +
> +#define CONFIG_FRAMEBUFFER_SET_VESA_MODE
> +#define CONFIG_FRAMEBUFFER_VESA_MODE 0x114
> +#define CONFIG_CMD_TFTPPUT
> +
> #endif /* __CONFIG_H */
> --
Could you also post the codes that actually run the vga bios on ppc
target? I may find another non-x86 board to test.
Regards,
Bin
More information about the U-Boot
mailing list