| .. | .. |
|---|
| 10 | 10 | |
|---|
| 11 | 11 | #include <linux/clk.h> |
|---|
| 12 | 12 | #include <linux/clk-provider.h> |
|---|
| 13 | +#include <linux/io.h> |
|---|
| 13 | 14 | #include <linux/kernel.h> |
|---|
| 14 | 15 | #include <linux/of.h> |
|---|
| 15 | 16 | #include <linux/of_address.h> |
|---|
| .. | .. |
|---|
| 142 | 143 | * Divider field is write only, so divider stat field must |
|---|
| 143 | 144 | * be read so divider field can be set accordingly. |
|---|
| 144 | 145 | */ |
|---|
| 145 | | - val = clk_readl(gate->reg); |
|---|
| 146 | + val = readl(gate->reg); |
|---|
| 146 | 147 | if (val & LPC18XX_CCU_DIVSTAT) |
|---|
| 147 | 148 | val |= LPC18XX_CCU_DIV; |
|---|
| 148 | 149 | |
|---|
| .. | .. |
|---|
| 155 | 156 | * and the next write should clear the RUN bit. |
|---|
| 156 | 157 | */ |
|---|
| 157 | 158 | val |= LPC18XX_CCU_AUTO; |
|---|
| 158 | | - clk_writel(val, gate->reg); |
|---|
| 159 | + writel(val, gate->reg); |
|---|
| 159 | 160 | |
|---|
| 160 | 161 | val &= ~LPC18XX_CCU_RUN; |
|---|
| 161 | 162 | } |
|---|
| 162 | 163 | |
|---|
| 163 | | - clk_writel(val, gate->reg); |
|---|
| 164 | + writel(val, gate->reg); |
|---|
| 164 | 165 | |
|---|
| 165 | 166 | return 0; |
|---|
| 166 | 167 | } |
|---|