summaryrefslogtreecommitdiff
path: root/gxp-ssmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'gxp-ssmt.h')
-rw-r--r--gxp-ssmt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gxp-ssmt.h b/gxp-ssmt.h
index f3458df..6cf8971 100644
--- a/gxp-ssmt.h
+++ b/gxp-ssmt.h
@@ -10,6 +10,8 @@
#include "gxp-internal.h"
+#define SSMT_CLAMP_MODE_BYPASS (1u << 31)
+
struct gxp_ssmt {
struct gxp_dev *gxp;
void __iomem *idma_ssmt_base;
@@ -31,4 +33,9 @@ int gxp_ssmt_init(struct gxp_dev *gxp, struct gxp_ssmt *ssmt);
*/
void gxp_ssmt_set_core_vid(struct gxp_ssmt *ssmt, uint core, uint vid);
+static inline void gxp_ssmt_set_core_bypass(struct gxp_ssmt *ssmt, uint core)
+{
+ gxp_ssmt_set_core_vid(ssmt, core, SSMT_CLAMP_MODE_BYPASS);
+}
+
#endif /* __GXP_SSMT_H__ */