aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ptp/idt8a340_reg.h
diff options
context:
space:
mode:
authorVincent Cheng <vincent.cheng.xh@renesas.com>2020-01-07 09:47:57 -0500
committerDavid S. Miller <davem@davemloft.net>2020-01-07 13:51:23 -0800
commit1ece2fbe9b427d379455f18a874bcd3ab86a2419 (patch)
tree8e01b9f16e4707e42f72bd827ed06af8a84a7412 /drivers/ptp/idt8a340_reg.h
parentenetc: Fix inconsistent IS_ERR and PTR_ERR (diff)
downloadlinux-dev-1ece2fbe9b427d379455f18a874bcd3ab86a2419.tar.xz
linux-dev-1ece2fbe9b427d379455f18a874bcd3ab86a2419.zip
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>
Diffstat (limited to 'drivers/ptp/idt8a340_reg.h')
-rw-r--r--drivers/ptp/idt8a340_reg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ptp/idt8a340_reg.h b/drivers/ptp/idt8a340_reg.h
index 9263bc33b8f4..69eedda9f731 100644
--- a/drivers/ptp/idt8a340_reg.h
+++ b/drivers/ptp/idt8a340_reg.h
@@ -77,6 +77,8 @@
#define JTAG_DEVICE_ID 0x001c
#define PRODUCT_ID 0x001e
+#define OTP_SCSR_CONFIG_SELECT 0x0022
+
#define STATUS 0xc03c
#define USER_GPIO0_TO_7_STATUS 0x008a
#define USER_GPIO8_TO_15_STATUS 0x008b