qpnp: smb2: Add charger frequency config for PM660

The clock to the PM660 charger has to be configured in the
CHG_FREQ module instead of CHG_MISC. Also, the charger
frequencies for PM660 and PMI8998 are different, add
logic to handle that.

CRs-Fixed: 1104287
Change-Id: I5f4daf9354b209226a03b4f8026e20be8a73348b
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
diff --git a/drivers/power/supply/qcom/smb-reg.h b/drivers/power/supply/qcom/smb-reg.h
index 57b4ca9..1fd21958 100644
--- a/drivers/power/supply/qcom/smb-reg.h
+++ b/drivers/power/supply/qcom/smb-reg.h
@@ -21,6 +21,7 @@
 #define USBIN_BASE	0x1300
 #define DCIN_BASE	0x1400
 #define MISC_BASE	0x1600
+#define CHGR_FREQ_BASE	0x1900
 
 #define PERPH_TYPE_OFFSET		0x04
 #define TYPE_MASK			GENMASK(7, 0)
@@ -1009,4 +1010,7 @@
 #define CFG_BUCKBOOST_FREQ_SELECT_BUCK_REG	(MISC_BASE + 0xA0)
 #define CFG_BUCKBOOST_FREQ_SELECT_BOOST_REG	(MISC_BASE + 0xA1)
 
+/* CHGR FREQ Peripheral registers */
+#define FREQ_CLK_DIV_REG			(CHGR_FREQ_BASE + 0x50)
+
 #endif /* __SMB2_CHARGER_REG_H */