OSDN Git Service

drm/ingenic: prepare ingenic drm for later addition of JZ4780
authorH. Nikolaus Schaller <hns@goldelico.com>
Thu, 2 Dec 2021 18:39:46 +0000 (19:39 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Thu, 16 Dec 2021 15:22:16 +0000 (15:22 +0000)
commitef2f5d0aa1214940f123721794f244f7287633ba
treeec3bc542775e54c41e23e9cc27d6250d1cb06c0b
parentfef6d35d82c22d7451bdaccc346f993c6d922cd9
drm/ingenic: prepare ingenic drm for later addition of JZ4780

This changes the way the regmap is allocated to prepare for the
later addition of the JZ4780 which has more registers and bits
than the others.

Therefore we make the regmap as big as the reg property in
the device tree tells.

Suggested-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/ee65e70e91268b3963f8a6581c8aa6c3b643c53e.1638470392.git.hns@goldelico.com
drivers/gpu/drm/ingenic/ingenic-drm-drv.c