Disable GPHY, UARTs to save power
Change-Id: I1c240e805002f5db5d96bfc919e2e3e981818a87
diff --git a/bmoca-6802.c b/bmoca-6802.c
index cdf7f3a..55494b9 100644
--- a/bmoca-6802.c
+++ b/bmoca-6802.c
@@ -919,6 +919,8 @@
MOCA_WR(0x1040431c, 0x0FFFFFFF); // SUN_TOP_CTRL_SW_INIT_0_CLEAR
MOCA_WR(0x104040a4, 0x01); // GENERAL_CTRL_NO_SCAN_0
+ /* Power down GPHY LDO regulator to save power */
+ MOCA_WR(0x104040a8, 0x03); // GENERAL_CTRL_NO_SCAN_1
MOCA_WR(0x10404100, 0x11110011); // PIN_MUX_CTRL_0
MOCA_WR(0x10404104, 0x11111111); // PIN_MUX_CTRL_1
@@ -933,6 +935,11 @@
MOCA_WR(0x1080000c, 0x11); // RGMII_0_CNTRL
MOCA_WR(0x10800014, 0xc0); // RGMII_0_RX_CLK_DELAY_CNTRL
+ /* Shutdown GPHY to save power */
+ MOCA_WR(0x10800004, MOCA_RD(0x10800004) | 0xF); // EPORT_REG_GPHY_CNTRL
+ /* Disable UARTs to save power */
+ MOCA_WR(0x10406180, 0x4000); // PM_CONFIG
+
if (((pMocaData->chip_id & 0xFFFFFFF0) == 0x680200C0) || ((pMocaData->chip_id & 0xFFFFFFF0) == 0x680300C0))
{
priv->i2c_base = NULL;