]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: host: add actmon sample period accessors
authorShridhar Rasal <srasal@nvidia.com>
Fri, 11 Jul 2014 09:58:31 +0000 (15:28 +0530)
committerArto Merilainen <amerilainen@nvidia.com>
Mon, 14 Jul 2014 05:30:50 +0000 (22:30 -0700)
Adds sample period actmon registers accessors

Bug 1515085

Change-Id: Ic9ff3bff8a6880f86bc78763b9c457642180eb67
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/434953
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
drivers/video/tegra/host/host1x/hw_host1x04_actmon.h

index e120aee3ca3dc7b834f16f6cb3094fad094f7982..54386d049f18b25a0f0fb40a87cd4d4b1b6e0599 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,
@@ -94,4 +94,16 @@ static inline u32 actmon_intr_status_r(void)
 {
        return 0x20;
 }
+static inline u32 actmon_sample_ctrl_r(void)
+{
+       return 0x28;
+}
+static inline u32 actmon_sample_ctrl_tick_range_f(u32 v)
+{
+       return (v & 0x1) << 2;
+}
+static inline u32 actmon_sample_ctrl_tick_range_m(void)
+{
+       return 0x1 << 2;
+}
 #endif