diff options
author | David Nieto <dmartineznie@nvidia.com> | 2016-08-19 20:09:35 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:50 -0500 |
commit | 905f1c0392bf244b321f56f82661eeb2fe00ee05 (patch) | |
tree | d525a6d5554b537e0a34ca7917c90364176dbb2e /drivers/gpu/nvgpu/gp106/hw_fb_gp106.h | |
parent | 4a94ce451b0352ce67e11a2971bbbd75c2e58df1 (diff) |
gpu: nvgpu: parse and execute mclk shadow script
* Parsing of shadow registers from VBIOS
* Partial devinit engine interpreter implementation
JIRA DNVGPU-117
Change-Id: I42179748889f17d674ad0a986e81c418b3b8df11
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: http://git-master/r/1214956
Reviewed-on: http://git-master/r/1237293
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hw_fb_gp106.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hw_fb_gp106.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hw_fb_gp106.h b/drivers/gpu/nvgpu/gp106/hw_fb_gp106.h index 1ab876cd..d76f78b9 100644 --- a/drivers/gpu/nvgpu/gp106/hw_fb_gp106.h +++ b/drivers/gpu/nvgpu/gp106/hw_fb_gp106.h | |||
@@ -502,4 +502,76 @@ static inline u32 fb_mmu_local_memory_range_ecc_mode_v(u32 r) | |||
502 | { | 502 | { |
503 | return (r >> 30) & 0x1; | 503 | return (r >> 30) & 0x1; |
504 | } | 504 | } |
505 | static inline u32 fb_fbpa_fbio_delay_r(void) | ||
506 | { | ||
507 | return 0x9a065c; | ||
508 | } | ||
509 | static inline u32 fb_fbpa_fbio_delay_src_m(void) | ||
510 | { | ||
511 | return 0x7; | ||
512 | } | ||
513 | static inline u32 fb_fbpa_fbio_delay_src_v(u32 r) | ||
514 | { | ||
515 | return (r >> 0) & 0x7; | ||
516 | } | ||
517 | static inline u32 fb_fbpa_fbio_delay_src_f(u32 v) | ||
518 | { | ||
519 | return (v & 0x7) << 0; | ||
520 | } | ||
521 | static inline u32 fb_fbpa_fbio_delay_src_max_v(void) | ||
522 | { | ||
523 | return 2; | ||
524 | } | ||
525 | static inline u32 fb_fbpa_fbio_delay_priv_m(void) | ||
526 | { | ||
527 | return 0x7 << 4; | ||
528 | } | ||
529 | static inline u32 fb_fbpa_fbio_delay_priv_v(u32 r) | ||
530 | { | ||
531 | return (r >> 4) & 0x7; | ||
532 | } | ||
533 | static inline u32 fb_fbpa_fbio_delay_priv_f(u32 v) | ||
534 | { | ||
535 | return (v & 0x7) << 4; | ||
536 | } | ||
537 | static inline u32 fb_fbpa_fbio_delay_priv_max_v(void) | ||
538 | { | ||
539 | return 2; | ||
540 | } | ||
541 | static inline u32 fb_fbpa_fbio_cmd_delay_r(void) | ||
542 | { | ||
543 | return 0x9a08e0; | ||
544 | } | ||
545 | static inline u32 fb_fbpa_fbio_cmd_delay_cmd_src_m(void) | ||
546 | { | ||
547 | return 0x7; | ||
548 | } | ||
549 | static inline u32 fb_fbpa_fbio_cmd_delay_cmd_src_v(u32 r) | ||
550 | { | ||
551 | return (r >> 0) & 0x7; | ||
552 | } | ||
553 | static inline u32 fb_fbpa_fbio_cmd_delay_cmd_src_f(u32 v) | ||
554 | { | ||
555 | return (v & 0x7) << 0; | ||
556 | } | ||
557 | static inline u32 fb_fbpa_fbio_cmd_delay_cmd_src_max_v(void) | ||
558 | { | ||
559 | return 1; | ||
560 | } | ||
561 | static inline u32 fb_fbpa_fbio_cmd_delay_cmd_priv_m(void) | ||
562 | { | ||
563 | return 0x7 << 4; | ||
564 | } | ||
565 | static inline u32 fb_fbpa_fbio_cmd_delay_cmd_priv_v(u32 r) | ||
566 | { | ||
567 | return (r >> 4) & 0x7; | ||
568 | } | ||
569 | static inline u32 fb_fbpa_fbio_cmd_delay_cmd_priv_f(u32 v) | ||
570 | { | ||
571 | return (v & 0x7) << 4; | ||
572 | } | ||
573 | static inline u32 fb_fbpa_fbio_cmd_delay_cmd_priv_max_v(void) | ||
574 | { | ||
575 | return 1; | ||
576 | } | ||
505 | #endif | 577 | #endif |