ptp: clockmatrix: Rework clockmatrix version information.
authorVincent Cheng <vincent.cheng.xh@renesas.com>
Tue, 7 Jan 2020 14:47:57 +0000 (09:47 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jan 2020 21:51:23 +0000 (13:51 -0800)
commit1ece2fbe9b427d379455f18a874bcd3ab86a2419
tree8e01b9f16e4707e42f72bd827ed06af8a84a7412
parent4addbcb387c9519b320a9411cad68f0c01e9ed4b
ptp: clockmatrix: Rework clockmatrix version information.

Simplify and fix the version information displayed by the driver.
The new info better relects what is needed to support the hardware.

Prev:
Version: 4.8.0, Pipeline 22169 0x4001, Rev 0, Bond 5, CSR 311, IRQ 2

New:
Version: 4.8.0, Id: 0x4001  Hw Rev: 5  OTP Config Select: 15

- Remove pipeline, CSR and IRQ because version x.y.z already incorporates
  this information.
- Remove bond number because it is not used.
- Remove rev number because register was not implemented, always 0
- Add HW Rev ID register to replace rev number
- Add OTP config select to show the user configuration chosen by
  the configurable GPIO pins on start-up

Signed-off-by: Vincent Cheng <vincent.cheng.xh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/idt8a340_reg.h
drivers/ptp/ptp_clockmatrix.c