diff options
| author | Petlozu Pravareshwar <petlozup@nvidia.com> | 2018-04-19 03:51:02 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-07 13:33:43 -0400 |
| commit | ea2f6c0223aeb78b5899f72bdeb623ebcf2e9b06 (patch) | |
| tree | 9b5e5aac6af78c8e61ad5685ebe846731fecefb1 /include/linux | |
| parent | 7974a498aa552239396a846d5b3107e0c8e1f764 (diff) | |
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 <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1698352
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/platform/tegra/tegra-nvlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ | |||
| 25 | #define NVLINK_MAX_LINKS 2 | 25 | #define NVLINK_MAX_LINKS 2 |
| 26 | #define DEFAULT_LOOP_SLEEP_US 100 | 26 | #define DEFAULT_LOOP_SLEEP_US 100 |
| 27 | #define DEFAULT_LOOP_TIMEOUT_US 1000000 | 27 | #define DEFAULT_LOOP_TIMEOUT_US 1000000 |
| 28 | #define LINK_BITRATE_150MHZ_16GBPS 15500000000ULL | ||
| 29 | #define LINK_BITRATE_156MHZ_16GBPS 16145830000ULL | ||
| 28 | #define LINK_BITRATE_150MHZ_20GBPS 19200000000ULL | 30 | #define LINK_BITRATE_150MHZ_20GBPS 19200000000ULL |
| 29 | #define LINK_BITRATE_156MHZ_20GBPS 20001280000ULL | 31 | #define LINK_BITRATE_156MHZ_20GBPS 20001280000ULL |
| 30 | #define LINK_BITRATE_150MHZ_25GBPS 24750000000ULL | 32 | #define LINK_BITRATE_150MHZ_25GBPS 24750000000ULL |
| @@ -62,6 +64,7 @@ extern u32 nvlink_log_mask; | |||
| 62 | 64 | ||
| 63 | /* Enum to represent link speed. Nvlink 2.0 can support below 2 speeds */ | 65 | /* Enum to represent link speed. Nvlink 2.0 can support below 2 speeds */ |
| 64 | enum nvlink_speed { | 66 | enum nvlink_speed { |
| 67 | NVLINK_SPEED_16, | ||
| 65 | NVLINK_SPEED_20, | 68 | NVLINK_SPEED_20, |
| 66 | NVLINK_SPEED_25 | 69 | NVLINK_SPEED_25 |
| 67 | }; | 70 | }; |
