fsi: aspeed: Add module param for bus divisor
authorJoel Stanley <joel@jms.id.au>
Tue, 28 Jul 2020 02:55:26 +0000 (12:25 +0930)
committerJoel Stanley <joel@jms.id.au>
Thu, 10 Sep 2020 02:53:19 +0000 (12:23 +0930)
commitadd6895188e49aa6b730d647ca896559370aa2be
treee5f19aabdb693fe9860fc7fe979e1f1fa0775eec
parent4a80c2017bd9136a139773ba980341ea7e71dafd
fsi: aspeed: Add module param for bus divisor

For testing and hardware debugging a user may wish to override the
divisor at runtime. By setting fsi_master_aspeed.bus_div=N, the divisor
will be set to N, if 0 < N <= 0x3ff.

This is a module parameter and not a device tree option as it will only
need to be set when testing or debugging.

Reviewed-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20200728025527.174503-5-joel@jms.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-master-aspeed.c