提交 7d23d713 编写于 作者: B bigmagic

fix raspi3 hdmi driver

上级 3024571a
...@@ -478,4 +478,5 @@ CONFIG_BSP_USING_SDIO0=y ...@@ -478,4 +478,5 @@ CONFIG_BSP_USING_SDIO0=y
# #
# Board Peripheral Drivers # Board Peripheral Drivers
# #
# CONFIG_BSP_USING_HDMI is not set CONFIG_BSP_USING_HDMI=y
CONFIG_BSP_USING_HDMI_DISPLAY=y
...@@ -105,7 +105,6 @@ menu "Hardware Drivers Config" ...@@ -105,7 +105,6 @@ menu "Hardware Drivers Config"
menu "Board Peripheral Drivers" menu "Board Peripheral Drivers"
menuconfig BSP_USING_HDMI menuconfig BSP_USING_HDMI
bool "Enable HDMI" bool "Enable HDMI"
select BSP_USING_SPI
default n default n
if BSP_USING_HDMI if BSP_USING_HDMI
......
...@@ -11,50 +11,16 @@ ...@@ -11,50 +11,16 @@
#define __DRV_FB_H__ #define __DRV_FB_H__
#define RGB(r, g, b) ((((r))<<16) | (((g))<<8) | ((b))) #define RGB(r, g, b) ((((r))<<16) | (((g))<<8) | ((b)))
struct rt_hdmi_fb_device
#define COLOR_BLACK RGB(0, 0, 0)
#define COLOR_GREEN RGB(0, 255, 0)
#define COLOR_CYAN RGB(0, 255, 255)
#define COLOR_RED RGB(255, 0, 0)
#define COLOR_YELLOW RGB(255, 255, 0)
#define COLOR_WHITE RGB(255, 255, 255)
#define CONSOLE_WHITE COLOR_WHITE
#define CONSOLE_BLACK COLOR_BLACK
#define CONSOLE_GREEN COLOR_GREEN
#define CONSOLE_CYAN COLOR_CYAN
#define CONSOLE_RED COLOR_RED
#define CONSOLE_YELLOW COLOR_YELLOW
typedef struct
{ {
struct rt_device parent;
rt_uint32_t width; rt_uint32_t width;
rt_uint32_t height; rt_uint32_t height;
rt_uint32_t vwidth;
rt_uint32_t vheight;
rt_uint32_t pitch;
rt_uint32_t depth; rt_uint32_t depth;
rt_uint32_t fore; rt_uint32_t pitch;
rt_uint32_t back; rt_uint32_t pixel_format;
rt_uint32_t x;
rt_uint32_t y;
rt_uint32_t addr;
rt_uint32_t size;
}fb_t;
struct rt_hdmi_fb_device rt_uint8_t *fb;
{
struct rt_device parent;
fb_t fb;
}; };
fb_t fb_info;
void print_fb_info();
void hdmi_fb_init();
#endif/* __DRV_FB_H__ */ #endif/* __DRV_FB_H__ */
...@@ -39,6 +39,8 @@ SECTIONS ...@@ -39,6 +39,8 @@ SECTIONS
*(.glue_7t) *(.glue_7t)
*(.gnu.linkonce.t*) *(.gnu.linkonce.t*)
*(COMMON)
/* section information for finsh shell */ /* section information for finsh shell */
. = ALIGN(16); . = ALIGN(16);
__fsymtab_start = .; __fsymtab_start = .;
...@@ -108,7 +110,7 @@ SECTIONS ...@@ -108,7 +110,7 @@ SECTIONS
*(.bss) *(.bss)
*(.bss.*) *(.bss.*)
*(.dynbss) *(.dynbss)
*(COMMON)
PROVIDE(__bss_end = .); PROVIDE(__bss_end = .);
} }
_end = .; _end = .;
......
...@@ -204,5 +204,7 @@ ...@@ -204,5 +204,7 @@
/* Board Peripheral Drivers */ /* Board Peripheral Drivers */
#define BSP_USING_HDMI
#define BSP_USING_HDMI_DISPLAY
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册