platform: msm_shared: Add function to print UFS HCI IS register
UFS HCI IS register contains interrupt status from the ufs host
controller. This function is useful for debugging.
Change-Id: I05f731ca8352d4cdc7da22df3e6f2cf8272b7358
diff --git a/platform/msm_shared/ufs.c b/platform/msm_shared/ufs.c
index 8244576..63fc556 100644
--- a/platform/msm_shared/ufs.c
+++ b/platform/msm_shared/ufs.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -266,6 +266,12 @@
return ret;
}
+void ufs_dump_is_register(struct ufs_dev *dev)
+{
+ uint32_t base = dev->base;
+ dprintf(CRITICAL,"UFS_IS 0x%x\n",readl(UFS_IS(base)));
+}
+
void ufs_dump_hc_registers(struct ufs_dev *dev)
{
uint32_t base = dev->base;