blob: b9eca765cdb47dbd19c7be610109edc2824c120e [file] [log] [blame]
Jaehoon Chungd0ebbb82012-10-15 19:10:31 +00001/*
2 * (C) Copyright 2012 SAMSUNG Electronics
3 * Jaehoon Chung <jh80.chung@samsung.com>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Jaehoon Chungd0ebbb82012-10-15 19:10:31 +00006 */
7
8#define DWMCI_CLKSEL 0x09C
9#define DWMCI_SHIFT_0 0x0
10#define DWMCI_SHIFT_1 0x1
11#define DWMCI_SHIFT_2 0x2
12#define DWMCI_SHIFT_3 0x3
13#define DWMCI_SET_SAMPLE_CLK(x) (x)
14#define DWMCI_SET_DRV_CLK(x) ((x) << 16)
15#define DWMCI_SET_DIV_RATIO(x) ((x) << 24)
16
Amara082a2d2013-04-27 11:42:55 +053017#ifdef CONFIG_OF_CONTROL
18int exynos_dwmmc_init(const void *blob);
19#endif
20int exynos_dwmci_add_port(int index, u32 regbase, int bus_width, u32 clksel);