]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: host: add pbdma syncpoint headers
authorDeepak Nibade <dnibade@nvidia.com>
Wed, 19 Feb 2014 08:04:16 +0000 (13:34 +0530)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Thu, 20 Mar 2014 06:51:44 +0000 (23:51 -0700)
add headers for -
syncpointa :
 - payload

syncpointb :
 - operation wait
 - wait switch
 - syncpt index

Bug 1305024

Change-Id: I420ede18bf2d577bc083962ccef74d217cf3070e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/381962
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/gk20a/hw_pbdma_gk20a.h

index ea419f034a91db205027cbd64b210b373201cfc6..df1a6d48541f00414281921bf5b39983cbb4ff3a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2013, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2012-2014, NVIDIA CORPORATION.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -146,6 +146,38 @@ static inline u32 pbdma_formats_mp_fermi0_f(void)
 {
        return 0x0;
 }
+static inline u32 pbdma_syncpointa_r(u32 i)
+{
+       return 0x000400a4 + i*8192;
+}
+static inline u32 pbdma_syncpointa_payload_v(u32 r)
+{
+       return (r >> 0) & 0xffffffff;
+}
+static inline u32 pbdma_syncpointb_r(u32 i)
+{
+       return 0x000400a8 + i*8192;
+}
+static inline u32 pbdma_syncpointb_op_v(u32 r)
+{
+       return (r >> 0) & 0x3;
+}
+static inline u32 pbdma_syncpointb_op_wait_v(void)
+{
+       return 0x00000000;
+}
+static inline u32 pbdma_syncpointb_wait_switch_v(u32 r)
+{
+       return (r >> 4) & 0x1;
+}
+static inline u32 pbdma_syncpointb_wait_switch_en_v(void)
+{
+       return 0x00000001;
+}
+static inline u32 pbdma_syncpointb_syncpt_index_v(u32 r)
+{
+       return (r >> 8) & 0xff;
+}
 static inline u32 pbdma_pb_header_r(u32 i)
 {
        return 0x00040084 + i*8192;