};
static struct clk dma_clk = {
- .name = "dma_clk",
+ .name = "dma",
.parent = &hclk,
.round_rate = _clk_parent_round_rate,
.set_rate = _clk_parent_set_rate,
};
static struct clk uart_clk = {
- .name = "uart_clk",
+ .name = "uart",
.parent = &perclk[0],
.round_rate = _clk_parent_round_rate,
.set_rate = _clk_parent_set_rate,
struct clk uart1_clk[] = {
{
- .name = "uart_clk",
+ .name = "uart",
.id = 0,
.parent = &per_clk[0],
.secondary = &uart1_clk[1],
struct clk uart2_clk[] = {
{
- .name = "uart_clk",
+ .name = "uart",
.id = 1,
.parent = &per_clk[0],
.secondary = &uart2_clk[1],
struct clk uart3_clk[] = {
{
- .name = "uart_clk",
+ .name = "uart",
.id = 2,
.parent = &per_clk[0],
.secondary = &uart3_clk[1],
struct clk uart4_clk[] = {
{
- .name = "uart_clk",
+ .name = "uart",
.id = 3,
.parent = &per_clk[0],
.secondary = &uart4_clk[1],
struct clk uart5_clk[] = {
{
- .name = "uart_clk",
+ .name = "uart",
.id = 4,
.parent = &per_clk[0],
.secondary = &uart5_clk[1],
struct clk uart6_clk[] = {
{
- .name = "uart_clk",
+ .name = "uart",
.id = 5,
.parent = &per_clk[0],
.secondary = &uart6_clk[1],
};
static struct clk nfc_clk = {
- .name = "nfc_clk",
+ .name = "nfc",
.parent = &cpu_clk,
.get_rate = _clk_nfc_recalc,
.enable = _clk_enable,
};
static struct clk dma_clk = {
- .name = "dma_clk",
+ .name = "dma",
.parent = &ahb_clk,
.enable = _clk_dma_enable,
.disable = _clk_dma_disable,
};
static struct clk owire_clk = {
- .name = "owire_clk",
+ .name = "owire",
.parent = &ipg_clk,
.enable = _clk_enable,
.enable_reg = CCM_PCCR0,
};
static struct clk nfc_clk = {
- .name = "nfc_clk",
+ .name = "nfc",
.parent = &ahb_clk,
.get_rate = _clk_nfc_get_rate,
};
static struct clk uart_clk[] = {
{
- .name = "uart_clk",
+ .name = "uart",
.id = 0,
.parent = &perclk_clk,
.enable = _clk_enable,
.enable_shift = MXC_CCM_CGR0_UART1_OFFSET,
.disable = _clk_disable,},
{
- .name = "uart_clk",
+ .name = "uart",
.id = 1,
.parent = &perclk_clk,
.enable = _clk_enable,
.enable_shift = MXC_CCM_CGR0_UART2_OFFSET,
.disable = _clk_disable,},
{
- .name = "uart_clk",
+ .name = "uart",
.id = 2,
.parent = &perclk_clk,
.enable = _clk_enable,
.enable_shift = MXC_CCM_CGR1_UART3_OFFSET,
.disable = _clk_disable,},
{
- .name = "uart_clk",
+ .name = "uart",
.id = 3,
.parent = &perclk_clk,
.enable = _clk_enable,
.enable_shift = MXC_CCM_CGR1_UART4_OFFSET,
.disable = _clk_disable,},
{
- .name = "uart_clk",
+ .name = "uart",
.id = 4,
.parent = &perclk_clk,
.enable = _clk_enable,
};
static struct clk owire_clk = {
- .name = "owire_clk",
+ .name = "owire",
.parent = &perclk_clk,
.enable_reg = MXC_CCM_CGR1,
.enable_shift = MXC_CCM_CGR1_OWIRE_OFFSET,
int ret = 0;
int i;
- dma_clk = clk_get(NULL, "dma_clk");
+ dma_clk = clk_get(NULL, "dma");
clk_enable(dma_clk);
/* reset DMA module */
this->read_buf = mxc_nand_read_buf;
this->verify_buf = mxc_nand_verify_buf;
- host->clk = clk_get(&pdev->dev, "nfc_clk");
+ host->clk = clk_get(&pdev->dev, "nfc");
if (IS_ERR(host->clk))
goto eclk;
sport->timer.function = imx_timeout;
sport->timer.data = (unsigned long)sport;
- sport->clk = clk_get(&pdev->dev, "uart_clk");
+ sport->clk = clk_get(&pdev->dev, "uart");
if (IS_ERR(sport->clk)) {
ret = PTR_ERR(sport->clk);
goto unmap;
if (!mdev)
return -ENOMEM;
- mdev->clk = clk_get(&pdev->dev, "owire_clk");
+ mdev->clk = clk_get(&pdev->dev, "owire");
if (!mdev->clk) {
err = -ENODEV;
goto failed_clk;