soc: samsung: cal-if: Introduced new access_type: PMUCAL_RAW_WAIT.
authorJang JeongHoon <jnghn.jang@samsung.com>
Fri, 13 Jul 2018 01:59:58 +0000 (10:59 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:04:54 +0000 (17:04 +0900)
Change-Id: Id95be1b44b03e59b945430de8603fff36633ea21
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
drivers/soc/samsung/cal-if/pmucal_common.h
drivers/soc/samsung/cal-if/pmucal_rae.c

index 88c060a61a21e1edc55467629abf7f61c783187c..13ff91b82178252cdce89ea636b6d8b1754c0bc9 100644 (file)
@@ -22,6 +22,7 @@ enum pmucal_seq_acctype {
        PMUCAL_SAVE_RESTORE,
        PMUCAL_COND_SAVE_RESTORE,
        PMUCAL_WAIT,
+       PMUCAL_RAW_WAIT,
        PMUCAL_CHECK_SKIP,
        PMUCAL_COND_CHECK_SKIP,
 #ifdef CONFIG_FLEXPMU
index 40a8057400997fc4df5c0167452f89c3d9774c75..d21dd324afeefea052eca8480f9153df866de524 100644 (file)
@@ -109,6 +109,14 @@ static int pmucal_rae_wait(struct pmucal_seq *seq)
        return 0;
 }
 
+static void pmucal_rae_raw_wait(struct pmucal_seq *seq)
+{
+       while (1) {
+               if (pmucal_rae_check_value(seq))
+                       break;
+       }
+}
+
 static inline void pmucal_rae_read(struct pmucal_seq *seq)
 {
        u32 reg;
@@ -250,6 +258,9 @@ int pmucal_rae_handle_seq(struct pmucal_seq *seq, unsigned int seq_size)
                        if (ret)
                                return ret;
                        break;
+               case PMUCAL_RAW_WAIT:
+                       pmucal_rae_raw_wait(&seq[i]);
+                       break;
 #ifdef CONFIG_FLEXPMU
                case PMUCAL_WRITE_WAIT:
                        pmucal_rae_write(&seq[i]);