mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-15 19:51:37 +00:00
board:riscv:jh7110: modify config for starfive JH7110 board
add board_late_init to init display memory config the bitmap picture Signed-off-by:keith.zhao<keith.zhao@statfivetech.com>
This commit is contained in:
parent
b67f069c7f
commit
e8f2e8b73c
3 changed files with 23 additions and 1 deletions
|
@ -16,6 +16,8 @@
|
|||
#include <misc.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <asm/arch/gpio.h>
|
||||
#include <bmp_logo.h>
|
||||
#include <video.h>
|
||||
|
||||
enum chip_type_t {
|
||||
CHIP_A = 0,
|
||||
|
@ -263,3 +265,21 @@ err:
|
|||
}
|
||||
#endif
|
||||
|
||||
int board_late_init(void)
|
||||
{
|
||||
struct udevice *dev;
|
||||
int ret;
|
||||
|
||||
ret = uclass_get_device(UCLASS_VIDEO, 0, &dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = video_bmp_display(dev, (ulong)&bmp_logo_bitmap[0], 0, 0, false);
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
err:
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -158,5 +158,7 @@
|
|||
#define memcpy_fromio(a, c, l) memcpy((a), (c), (l))
|
||||
#define memcpy_toio(c, a, l) memcpy((c), (a), (l))
|
||||
|
||||
#define CONFIG_VIDEO_BMP_LOGO
|
||||
#define CONFIG_VIDEO_LOGO
|
||||
#endif /* _STARFIVE_EVB_H */
|
||||
|
||||
|
|
|
@ -270,7 +270,7 @@ LOGO-$(CONFIG_VIDEO_LOGO) += $(LOGO_DATA_H)
|
|||
|
||||
# Generic logo
|
||||
ifeq ($(LOGO_BMP),)
|
||||
LOGO_BMP= $(srctree)/$(src)/logos/denx.bmp
|
||||
LOGO_BMP= $(srctree)/$(src)/logos/atmel.bmp
|
||||
|
||||
# Use board logo and fallback to vendor
|
||||
ifneq ($(wildcard $(srctree)/$(src)/logos/$(BOARD).bmp),)
|
||||
|
|
Loading…
Add table
Reference in a new issue