linux/drivers/gpu/drm/mgag200
Thomas Zimmermann 42452165dc drm/mgag200: Move register initialization into helper function
The mgag200 driver maps registers into the address space. Move the
code into a separate helper function. No functional changes.

One small difference is in the handling of SDRAM/SGRAM. MGA devices
can come with either SDRAM or SGRAM. So far, the driver checked for
SDRAM, which is the common case. The patch moves this code into a
separate helper and checks for SGRAM, which is the special case. The
test itself is the same as before.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200730102844.10995-3-tzimmermann@suse.de
2020-08-03 09:42:11 +02:00
..
Kconfig drm/mgag200: Replace VRAM helpers with SHMEM helpers 2020-05-19 09:41:34 +02:00
Makefile drm/mgag200: Move device init and cleanup to mgag200_drv.c 2020-06-11 10:06:00 +02:00
mgag200_drv.c drm/mgag200: Move register initialization into helper function 2020-08-03 09:42:11 +02:00
mgag200_drv.h drm/mgag200: Don't write-protect CRTC 0-7 while in mga_crtc_prepare() 2020-07-14 09:06:14 +02:00
mgag200_i2c.c drm/mgag200: Convert struct drm_device to struct mga_device with helper 2020-05-11 16:39:45 +02:00
mgag200_mm.c drm/mgag200: Embed instance of struct drm_device in struct mga_device 2020-06-11 10:06:10 +02:00
mgag200_mode.c drm/mgag200: Inline mga_crtc_{prepare, commit}() into enable function 2020-07-14 09:14:06 +02:00
mgag200_reg.h drm/mgag200: Move register initialization into helper function 2020-08-03 09:42:11 +02:00