From ea2f6c0223aeb78b5899f72bdeb623ebcf2e9b06 Mon Sep 17 00:00:00 2001 From: Petlozu Pravareshwar Date: Thu, 19 Apr 2018 13:21:02 +0530 Subject: nvlink: Add support for 16G nvlink speed This change adds support for 16G nvlink speed. For this purpose, INITPLL8 MINION DL command is used for 156MHz refclk rate config and INITPLL9 MINION DL command is used for 150MHz refclk rate config. Bug 2101745 Change-Id: Iccad4aba2602db6ab188f475d3ff57cf9cf4f500 Signed-off-by: Petlozu Pravareshwar Reviewed-on: https://git-master.nvidia.com/r/1698352 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Adeel Raza Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/platform/tegra/tegra-nvlink.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/platform/tegra/tegra-nvlink.h b/include/linux/platform/tegra/tegra-nvlink.h index 4d835a385..a048b64ab 100644 --- a/include/linux/platform/tegra/tegra-nvlink.h +++ b/include/linux/platform/tegra/tegra-nvlink.h @@ -25,6 +25,8 @@ #define NVLINK_MAX_LINKS 2 #define DEFAULT_LOOP_SLEEP_US 100 #define DEFAULT_LOOP_TIMEOUT_US 1000000 +#define LINK_BITRATE_150MHZ_16GBPS 15500000000ULL +#define LINK_BITRATE_156MHZ_16GBPS 16145830000ULL #define LINK_BITRATE_150MHZ_20GBPS 19200000000ULL #define LINK_BITRATE_156MHZ_20GBPS 20001280000ULL #define LINK_BITRATE_150MHZ_25GBPS 24750000000ULL @@ -62,6 +64,7 @@ extern u32 nvlink_log_mask; /* Enum to represent link speed. Nvlink 2.0 can support below 2 speeds */ enum nvlink_speed { + NVLINK_SPEED_16, NVLINK_SPEED_20, NVLINK_SPEED_25 }; -- cgit v1.2.2