diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2009-08-07 02:47:54 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-08-11 11:29:08 -0400 |
commit | 5fc564eda7cc99a37fa485b452fdcc1260ee2d4f (patch) | |
tree | f512cd78c677807673fa5ebdd789a2e80d3e151d /arch | |
parent | 69a2a4d9a5884a6f2d04a551308980d452b9b349 (diff) | |
download | u-boot-imx-5fc564eda7cc99a37fa485b452fdcc1260ee2d4f.zip u-boot-imx-5fc564eda7cc99a37fa485b452fdcc1260ee2d4f.tar.gz u-boot-imx-5fc564eda7cc99a37fa485b452fdcc1260ee2d4f.tar.bz2 |
Blackfin: shutdown video DMA when booting Linux
In case there is no frame buffer driver present in Linux to hand over the
PPI LCD DMA upon boot, the DMA initiated by u-boot to display the splash
screen runs unattended. Therefore always stop the video driver in u-boot
before starting Linux. If people don't want this behavior, then they can
simply stub out the video_stop() function in their board video driver.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/lib/boot.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/blackfin/lib/boot.c b/arch/blackfin/lib/boot.c index 37aa82a..768a882 100644 --- a/arch/blackfin/lib/boot.c +++ b/arch/blackfin/lib/boot.c @@ -18,6 +18,10 @@ extern void swap_to(int device_id); #endif +#ifdef CONFIG_VIDEO +extern void video_stop(void); +#endif + static char *make_command_line(void) { char *dest = (char *)CONFIG_LINUX_CMDLINE_ADDR; @@ -45,6 +49,11 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima swap_to(FLASH); #endif +#ifdef CONFIG_VIDEO + /* maybe this should be standardized and moved to bootm ... */ + video_stop(); +#endif + appl = (int (*)(char *))images->ep; printf("Starting Kernel at = %p\n", appl); |