uboot下init_sequence_f函数之reserve_video
2017-03-22 08:23
211 查看
reserve_video:
#ifdef CONFIG_DM_VIDEO static int reserve_video(void) { ulong addr; int ret; addr = gd->relocaddr; ret = video_reserve(&addr); if (ret) return ret; gd->relocaddr = addr; return 0; } #else # ifdef CONFIG_LCD static int reserve_lcd(void) { # ifdef CONFIG_FB_ADDR gd->fb_base = CONFIG_FB_ADDR; # else /* reserve memory for LCD display (always full pages) */ gd->relocaddr = lcd_setmem(gd->relocaddr); gd->fb_base = gd->relocaddr; # endif /* CONFIG_FB_ADDR */ return 0; } # endif /* CONFIG_LCD */ # if defined(CONFIG_VIDEO) && (!defined(CONFIG_PPC) || defined(CONFIG_8xx)) && \ !defined(CONFIG_ARM) && !defined(CONFIG_X86) && \ !defined(CONFIG_BLACKFIN) && !defined(CONFIG_M68K) static int reserve_legacy_video(void) { /* reserve memory for video display (always full pages) */ gd->relocaddr = video_setmem(gd->relocaddr); gd->fb_base = gd->relocaddr; return 0; } # endif #endif /* !CONFIG_DM_VIDEO */
相关文章推荐
- uboot下init_sequence_f函数之reserve_legacy_video
- uboot下init_sequence_f函数之reserve_mmu
- uboot下init_sequence_f函数之reserve_arch
- uboot下init_sequence_f函数之reserve_round_4k
- uboot下init_sequence_f函数之reserve_pram
- uboot下init_sequence_f函数之reserve_fdt
- uboot下init_sequence_f函数之reserve_global_data
- uboot下init_sequence_f函数之reserve_trace
- uboot下init_sequence_f函数之reserve_logbuffer
- uboot下init_sequence_f函数之reserve_lcd
- uboot下init_sequence_f函数之reserve_malloc
- uboot下init_sequence_f函数之reserve_stacks
- uboot下init_sequence_f函数之init_func_ram
- uboot下init_sequence_f函数之testdram
- uboot下init_sequence_f函数之init_func_spi
- uboot下init_sequence_f函数之announce_dram_init
- uboot下init_sequence_f函数之setup_dest_addr
- uboot下init_sequence_f函数之setup_reloc
- uboot下init_sequence_f函数之post_init_f
- uboot下init_sequence_f函数之setup_machine