soc: aspeed: Adapt to new LPC device tree layout
authorChia-Wei, Wang <chiawei_wang@aspeedtech.com>
Fri, 19 Mar 2021 06:27:36 +0000 (16:57 +1030)
committerJoel Stanley <joel@jms.id.au>
Fri, 9 Apr 2021 04:09:22 +0000 (13:39 +0930)
commit489774ff5db943642751f4f0fdac9033239208c6
treed9edcc3fbc4a2c47cae47ccfa78c92e347996345
parenteaffd32bea0c93226d4701b1736b04827f754ccf
soc: aspeed: Adapt to new LPC device tree layout

Add check against LPC device v2 compatible string to
ensure that the fixed device tree layout is adopted.
The LPC register offsets are also fixed accordingly.

Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210319062752.145730-5-andrew@aj.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/soc/aspeed/aspeed-lpc-ctrl.c
drivers/soc/aspeed/aspeed-lpc-snoop.c