Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Jaehoon Chung | 7aff967 | 2012-10-15 19:10:31 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2012 SAMSUNG Electronics |
| 4 | * Jaehoon Chung <jh80.chung@samsung.com> |
Jaehoon Chung | 7aff967 | 2012-10-15 19:10:31 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #define DWMCI_CLKSEL 0x09C |
Jaehoon Chung | 7aff967 | 2012-10-15 19:10:31 +0000 | [diff] [blame] | 8 | #define DWMCI_SET_SAMPLE_CLK(x) (x) |
| 9 | #define DWMCI_SET_DRV_CLK(x) ((x) << 16) |
| 10 | #define DWMCI_SET_DIV_RATIO(x) ((x) << 24) |
| 11 | |
Rajeshwari Shinde | 7016309 | 2013-10-29 12:53:13 +0530 | [diff] [blame] | 12 | #define EMMCP_MPSBEGIN0 0x1200 |
| 13 | #define EMMCP_SEND0 0x1204 |
| 14 | #define EMMCP_CTRL0 0x120C |
| 15 | |
| 16 | #define MPSCTRL_SECURE_READ_BIT (0x1<<7) |
| 17 | #define MPSCTRL_SECURE_WRITE_BIT (0x1<<6) |
| 18 | #define MPSCTRL_NON_SECURE_READ_BIT (0x1<<5) |
| 19 | #define MPSCTRL_NON_SECURE_WRITE_BIT (0x1<<4) |
| 20 | #define MPSCTRL_USE_FUSE_KEY (0x1<<3) |
| 21 | #define MPSCTRL_ECB_MODE (0x1<<2) |
| 22 | #define MPSCTRL_ENCRYPTION (0x1<<1) |
| 23 | #define MPSCTRL_VALID (0x1<<0) |
| 24 | |
Rajeshwari S Shinde | ccfa20b | 2014-02-05 10:48:15 +0530 | [diff] [blame] | 25 | /* CLKSEL Register */ |
| 26 | #define DWMCI_DIVRATIO_BIT 24 |
| 27 | #define DWMCI_DIVRATIO_MASK 0x7 |
| 28 | |
Amar | d850121 | 2013-04-27 11:42:55 +0530 | [diff] [blame] | 29 | int exynos_dwmmc_init(const void *blob); |