[hi3660] Spell SEPARATED correctly in flags.
This changes the spelling of a preprocessor definition.
TEST: No functional change, still compiles.
Change-Id: Ie30735809dbac6d7cce44d23707881776ae00776
diff --git a/system/dev/lib/hi3660/hi3660-dsi.c b/system/dev/lib/hi3660/hi3660-dsi.c
index bf20257..ec86841 100644
--- a/system/dev/lib/hi3660/hi3660-dsi.c
+++ b/system/dev/lib/hi3660/hi3660-dsi.c
@@ -21,17 +21,17 @@
temp = readl(peri_crg + TXDPHY0_REF_OFFSET);
temp |= (1 << TXDPHY0_REF_BIT);
writel(temp, peri_crg + TXDPHY0_REF_OFFSET);
- readl(peri_crg + TXDPHY0_REF_OFFSET + CLKGATE_SEPERATED_STATUS);
+ readl(peri_crg + TXDPHY0_REF_OFFSET + CLKGATE_SEPARATED_STATUS);
temp = readl(peri_crg + TXDPHY0_CFG_OFFSET);
temp |= (1 << TXDPHY0_CFG_BIT);
writel(temp, peri_crg + TXDPHY0_CFG_OFFSET);
- readl(peri_crg + TXDPHY0_CFG_OFFSET + CLKGATE_SEPERATED_STATUS);
+ readl(peri_crg + TXDPHY0_CFG_OFFSET + CLKGATE_SEPARATED_STATUS);
temp = readl(peri_crg + PCLK_GATE_DSI0_OFFSET);
temp |= (1 << PCLK_GATE_DSI0_BIT);
writel(temp, peri_crg + PCLK_GATE_DSI0_OFFSET);
- readl(peri_crg + PCLK_GATE_DSI0_OFFSET + CLKGATE_SEPERATED_STATUS);
+ readl(peri_crg + PCLK_GATE_DSI0_OFFSET + CLKGATE_SEPARATED_STATUS);
return ZX_OK;
}
diff --git a/system/dev/lib/hi3660/hi3660-i2c.c b/system/dev/lib/hi3660/hi3660-i2c.c
index 018a4aa..59c9b2a 100644
--- a/system/dev/lib/hi3660/hi3660-i2c.c
+++ b/system/dev/lib/hi3660/hi3660-i2c.c
@@ -21,10 +21,10 @@
volatile void* iomcu = hi3660->iomcu.vaddr + I2C1_ENABLE_REG_OFFSET;
uint32_t temp;
- temp = readl(iomcu + CLKGATE_SEPERATED_ENABLE);
+ temp = readl(iomcu + CLKGATE_SEPARATED_ENABLE);
temp |= (1 << I2C1_ENABLE_REG_BIT);
- writel(temp, iomcu + CLKGATE_SEPERATED_ENABLE);
- readl(iomcu + CLKGATE_SEPERATED_STATUS); // need to read back status to ensure enable occurs
+ writel(temp, iomcu + CLKGATE_SEPARATED_ENABLE);
+ readl(iomcu + CLKGATE_SEPARATED_STATUS); // need to read back status to ensure enable occurs
return ZX_OK;
}
diff --git a/system/dev/lib/hi3660/include/soc/hi3660/hi3660-regs.h b/system/dev/lib/hi3660/include/soc/hi3660/hi3660-regs.h
index 073fc98..bab0933 100644
--- a/system/dev/lib/hi3660/include/soc/hi3660/hi3660-regs.h
+++ b/system/dev/lib/hi3660/include/soc/hi3660/hi3660-regs.h
@@ -81,6 +81,6 @@
#define PCLK_GATE_DSI0_OFFSET 0x50
#define PCLK_GATE_DSI0_BIT 28
-#define CLKGATE_SEPERATED_ENABLE 0x0
-#define CLKGATE_SEPERATED_DISABLE 0x4
-#define CLKGATE_SEPERATED_STATUS 0x8
+#define CLKGATE_SEPARATED_ENABLE 0x0
+#define CLKGATE_SEPARATED_DISABLE 0x4
+#define CLKGATE_SEPARATED_STATUS 0x8