Skip to content
Snippets Groups Projects
Commit 2d3c573e authored by Bin Meng's avatar Bin Meng
Browse files

x86: coreboot: Convert to use DM coreboot video driver


This converts coreboot to use DM framebuffer driver.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 3968398e
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,4 @@ config CBMEM_CONSOLE ...@@ -8,8 +8,4 @@ config CBMEM_CONSOLE
bool bool
default y default y
config VIDEO_COREBOOT
bool
default y
endif endif
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
/include/ "serial.dtsi" /include/ "serial.dtsi"
/include/ "rtc.dtsi" /include/ "rtc.dtsi"
/include/ "tsc_timer.dtsi" /include/ "tsc_timer.dtsi"
/include/ "coreboot_fb.dtsi"
/ { / {
model = "Intel Bayley Bay"; model = "Intel Bayley Bay";
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
/include/ "serial.dtsi" /include/ "serial.dtsi"
/include/ "rtc.dtsi" /include/ "rtc.dtsi"
/include/ "tsc_timer.dtsi" /include/ "tsc_timer.dtsi"
/include/ "coreboot_fb.dtsi"
/ { / {
model = "Advantech SOM-6896"; model = "Advantech SOM-6896";
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
/include/ "serial.dtsi" /include/ "serial.dtsi"
/include/ "rtc.dtsi" /include/ "rtc.dtsi"
/include/ "tsc_timer.dtsi" /include/ "tsc_timer.dtsi"
/include/ "coreboot_fb.dtsi"
/ { / {
model = "Google Link"; model = "Google Link";
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
/include/ "serial.dtsi" /include/ "serial.dtsi"
/include/ "rtc.dtsi" /include/ "rtc.dtsi"
/include/ "tsc_timer.dtsi" /include/ "tsc_timer.dtsi"
/include/ "coreboot_fb.dtsi"
/ { / {
model = "Google Samus"; model = "Google Samus";
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
/include/ "serial.dtsi" /include/ "serial.dtsi"
/include/ "rtc.dtsi" /include/ "rtc.dtsi"
/include/ "tsc_timer.dtsi" /include/ "tsc_timer.dtsi"
/include/ "coreboot_fb.dtsi"
/ { / {
model = "Google Panther"; model = "Google Panther";
......
/ {
coreboot-fb {
compatible = "coreboot-fb";
};
};
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
/include/ "serial.dtsi" /include/ "serial.dtsi"
/include/ "rtc.dtsi" /include/ "rtc.dtsi"
/include/ "tsc_timer.dtsi" /include/ "tsc_timer.dtsi"
/include/ "coreboot_fb.dtsi"
/ { / {
model = "Intel Minnowboard Max"; model = "Intel Minnowboard Max";
......
...@@ -40,5 +40,7 @@ CONFIG_TPM_TIS_LPC=y ...@@ -40,5 +40,7 @@ CONFIG_TPM_TIS_LPC=y
CONFIG_USB=y CONFIG_USB=y
CONFIG_DM_USB=y CONFIG_DM_USB=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
CONFIG_DM_VIDEO=y
CONFIG_VIDEO_COREBOOT=y
CONFIG_USE_PRIVATE_LIBGCC=y CONFIG_USE_PRIVATE_LIBGCC=y
CONFIG_TPM=y CONFIG_TPM=y
...@@ -381,6 +381,10 @@ To enable video you must enable these options in coreboot: ...@@ -381,6 +381,10 @@ To enable video you must enable these options in coreboot:
- Set framebuffer graphics resolution (1280x1024 32k-color (1:5:5)) - Set framebuffer graphics resolution (1280x1024 32k-color (1:5:5))
- Keep VESA framebuffer - Keep VESA framebuffer
And include coreboot_fb.dtsi in your board's device tree source file, like:
/include/ "coreboot_fb.dtsi"
At present it seems that for Minnowboard Max, coreboot does not pass through At present it seems that for Minnowboard Max, coreboot does not pass through
the video information correctly (it always says the resolution is 0x0). This the video information correctly (it always says the resolution is 0x0). This
works correctly for link though. works correctly for link though.
......
...@@ -37,7 +37,7 @@ obj-$(CONFIG_S6E63D6) += s6e63d6.o ...@@ -37,7 +37,7 @@ obj-$(CONFIG_S6E63D6) += s6e63d6.o
obj-$(CONFIG_LD9040) += ld9040.o obj-$(CONFIG_LD9040) += ld9040.o
obj-$(CONFIG_SED156X) += sed156x.o obj-$(CONFIG_SED156X) += sed156x.o
obj-$(CONFIG_VIDEO_BCM2835) += bcm2835.o obj-$(CONFIG_VIDEO_BCM2835) += bcm2835.o
obj-$(CONFIG_VIDEO_COREBOOT) += coreboot_fb.o obj-$(CONFIG_VIDEO_COREBOOT) += coreboot.o
obj-$(CONFIG_VIDEO_CT69000) += ct69000.o videomodes.o obj-$(CONFIG_VIDEO_CT69000) += ct69000.o videomodes.o
obj-$(CONFIG_VIDEO_DA8XX) += da8xx-fb.o videomodes.o obj-$(CONFIG_VIDEO_DA8XX) += da8xx-fb.o videomodes.o
obj-$(CONFIG_VIDEO_IMX25LCDC) += imx25lcdc.o videomodes.o obj-$(CONFIG_VIDEO_IMX25LCDC) += imx25lcdc.o videomodes.o
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
#define CONFIG_ARCH_EARLY_INIT_R #define CONFIG_ARCH_EARLY_INIT_R
#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial,vga,usbkbd\0" \ #define CONFIG_STD_DEVICES_SETTINGS "stdin=serial,usbkbd\0" \
"stdout=serial,vga\0" \ "stdout=serial,vidconsole\0" \
"stderr=serial,vga\0" "stderr=serial,vidconsole\0"
#define CONFIG_ENV_SECT_SIZE 0x1000 #define CONFIG_ENV_SECT_SIZE 0x1000
#define CONFIG_ENV_OFFSET 0x00ff0000 #define CONFIG_ENV_OFFSET 0x00ff0000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment