OSDN Git Service

media: aspeed: Use runtime configuration
authorJoel Stanley <joel@jms.id.au>
Tue, 7 Jan 2020 03:43:23 +0000 (04:43 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 15:10:01 +0000 (16:10 +0100)
commit39857de4f82f1458842edd7f3a9f2e82ab48b479
tree1e4061b728ab66c740dcda926c0133ee68e096c9
parentaef0a5090b9952878a7a3626e29cfeda7f68a51f
media: aspeed: Use runtime configuration

The aspeed video IP has some differences between SoC families. Currently
the driver decides which registers to use at compile time, which means
a single kernel can not be used between platforms.

Switch to using runtime configuration of the registers that vary between
SoC families. This is in preparation for upcoming ast2600 support.

[hverkuil: replace ;; by ;]

Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/aspeed-video.c