History log of /netbsd/sys/dev/fdt/simplefb.c (Results 1 – 15 of 15)
Revision Date Author Comments
# 32909d15 30-Aug-2021 jmcneill <jmcneill@NetBSD.org>

Add 10-bit pixel format support.


# 87cd84c7 02-Mar-2021 jmcneill <jmcneill@NetBSD.org>

Fix previous: Each line is "stride" bytes wide, not "width * depth".

While here, add a comment explaining what this test is doing.


# 134ffaa4 02-Mar-2021 skrll <skrll@NetBSD.org>

Sanity check size vs width x height x depth. Buggy firmware exists.


# 8e90f9ed 27-Jan-2021 thorpej <thorpej@NetBSD.org>

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all c

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

show more ...


# c4d72cce 21-Oct-2020 rin <rin@NetBSD.org>

sfb_addr should be uint64_t, not bus_addr_t. Otherwise, its value
cannot be obtained via prop_dictionary_get_uint64() for most ILP32
architectures where bus_addr_t is 32-bit width.


# a7c55392 20-Oct-2020 jmcneill <jmcneill@NetBSD.org>

Instead of trying to prevent pciconf from reconfiguring the firmware's
framebuffer, instead allow MD code to register callbacks. If a resource is
changed, the driver can unmap the old resource and re

Instead of trying to prevent pciconf from reconfiguring the firmware's
framebuffer, instead allow MD code to register callbacks. If a resource is
changed, the driver can unmap the old resource and remap the new. Do this
with simplefb so the console doesn't explode when the VGA device is
(potentially) reconfigured at boot.

show more ...


# 6deedafd 19-Oct-2020 rin <rin@NetBSD.org>

Fix colors of 32-bpp raster console for evbarm/aarch64eb and armeb.

Most boards are configured to little-endian in initial, and switched
to big-endian after kernel is loaded. In this case, framebuff

Fix colors of 32-bpp raster console for evbarm/aarch64eb and armeb.

Most boards are configured to little-endian in initial, and switched
to big-endian after kernel is loaded. In this case, framebuffer seems
byte-swapped to CPU.

It is best to reconfigure framebuffer (as done recently for sunxi_mixer
by jmcneill), but in most cases, HW is incapable, or we just don't know
register bits to configure them.

Therefore, override "format" FDT property for "simple-framebuffer" to
let drivers know byte-order for 32-bpp framebuffer.

Then, make fdt/simplefb (genfb) and arm_simplefb (early console) detect
byte-swapped FB, and configure genfb(4) or rasops(4) layers accordingly.

Tested on Pine A64+ (arm_simplefb) and Cubietruck (both fdt/simplefb and
arm_simplefb).

Discussed with jmcneill. Thanks!!

show more ...


# 5bf455f7 23-Jul-2019 rin <rin@NetBSD.org>

For drivers whose framebuffer is located not page-aligned, permit
offset of mmap up to (length of framebuffer) + (page offset of base
address of framebuffer). This is necessary in order to map the
hi

For drivers whose framebuffer is located not page-aligned, permit
offset of mmap up to (length of framebuffer) + (page offset of base
address of framebuffer). This is necessary in order to map the
highest page of framebuffer correctly, see,
http://cvsweb.netbsd.org/bsdweb.cgi/xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c#rev1.35

show more ...


# e1cc6694 30-Jan-2019 jmcneill <jmcneill@NetBSD.org>

Call genfb_cnattach when WSDISPLAY_MULTICONS is defined


# 1834b3d6 23-Jul-2018 macallan <macallan@NetBSD.org>

if the framebuffer address isn't page aligned, set fbi_fboffset appropriately


# 37ec32d2 06-May-2018 jmcneill <jmcneill@NetBSD.org>

Pass WSDISPLAYIO_SVIDEO through to pmf


# 8694f07c 01-Apr-2018 ryo <ryo@NetBSD.org>

Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sun

Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)

show more ...


# 9e659622 18-Dec-2017 jmcneill <jmcneill@NetBSD.org>

Always set "is_console" property to true when WSDISPLAY_MULTICONS is defined


# 886c97bd 04-Sep-2017 jmcneill <jmcneill@NetBSD.org>

Add console support.


# 6bc85a93 27-Aug-2017 jmcneill <jmcneill@NetBSD.org>

Add an FDT "Simple Framebuffer" driver. This lets us take over framebuffers
configured by U-Boot without any knowledge of the underlying hardware.