blob: 67d008f05daf481164fd8ae7db72442650509b7e [file] [log] [blame]
Paul Kocialkowski3e3b8bc2016-02-27 19:19:00 +01001/*
2 * Amazon Kindle Fire (first generation) codename kc1 config
3 *
4 * Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr>
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#ifndef _KC1_H_
10#define _KC1_H_
11
12#include <asm/arch/mux_omap4.h>
13
14#define KC1_GPIO_MBID1 173
15#define KC1_GPIO_MBID0 174
16#define KC1_GPIO_MBID3 177
17#define KC1_GPIO_MBID2 178
18
19const struct pad_conf_entry core_padconf_array[] = {
20 /* GPMC */
21 { GPMC_AD0, (IEN | PTU | M1) }, /* sdmmc2_dat0 */
22 { GPMC_AD1, (IEN | PTU | M1) }, /* sdmmc2_dat1 */
23 { GPMC_AD2, (IEN | PTU | M1) }, /* sdmmc2_dat2 */
24 { GPMC_AD3, (IEN | PTU | M1) }, /* sdmmc2_dat3 */
25 { GPMC_AD4, (IEN | PTU | M1) }, /* sdmmc2_dat4 */
26 { GPMC_AD5, (IEN | PTU | M1) }, /* sdmmc2_dat5 */
27 { GPMC_AD6, (IEN | PTU | M1) }, /* sdmmc2_dat6 */
28 { GPMC_AD7, (IEN | PTU | M1) }, /* sdmmc2_dat7 */
29 { GPMC_NOE, (IEN | PTU | M1) }, /* sdmmc2_clk */
30 { GPMC_NWE, (IEN | PTU | M1) }, /* sdmmc2_cmd */
31 /* CAM */
32 { CAM_SHUTTER, (IDIS | DIS | M7) }, /* safe_mode */
33 { CAM_STROBE, (IDIS | DIS | M7) }, /* safe_mode */
34 { CAM_GLOBALRESET, (IDIS | DIS | M7) }, /* safe_mode */
35 /* HDQ */
36 { HDQ_SIO, (IDIS | DIS | M7) }, /* safe_mode */
37 /* I2C1 */
38 { I2C1_SCL, (IEN | PTU | M0) }, /* i2c1_scl */
39 { I2C1_SDA, (IEN | PTU | M0) }, /* i2c1_sda */
40 /* I2C2 */
41 { I2C2_SCL, (IEN | PTU | M0) }, /* i2c2_scl */
42 { I2C2_SDA, (IEN | PTU | M0) }, /* i2c2_sda */
43 /* I2C3 */
44 { I2C3_SCL, (IEN | PTU | M0) }, /* i2c3_scl */
45 { I2C3_SDA, (IEN | PTU | M0) }, /* i2c3_sda */
46 /* I2C4 */
47 { I2C4_SCL, (IEN | PTU | M0) }, /* i2c4_scl */
48 { I2C4_SDA, (IEN | PTU | M0) }, /* i2c4_sda */
49 /* MCSPI1 */
50 { MCSPI1_CLK, (IDIS | DIS | M7) }, /* safe_mode */
51 { MCSPI1_SOMI, (IDIS | DIS | M7) }, /* safe_mode */
52 { MCSPI1_SIMO, (IDIS | DIS | M7) }, /* safe_mode */
53 { MCSPI1_CS0, (IDIS | DIS | M7) }, /* safe_mode */
54 { MCSPI1_CS1, (IDIS | DIS | M7) }, /* safe_mode */
55 { MCSPI1_CS2, (IDIS | DIS | M7) }, /* safe_mode */
56 { MCSPI1_CS3, (IDIS | DIS | M7) }, /* safe_mode */
57 /* UART3 */
58 { UART3_CTS_RCTX, (IDIS | DIS | M7) }, /* safe_mode */
59 { UART3_RTS_SD, (IDIS | DIS | M7) }, /* safe_mode */
60 { UART3_RX_IRRX, (IEN | DIS | M0) }, /* uart3_rx_irrx */
61 { UART3_TX_IRTX, (IDIS | DIS | M0) }, /* uart3_tx_irtx */
62 /* SDMMC5 */
63 { SDMMC5_CLK, (IEN | PTU | M0) }, /* sdmmc5_clk */
64 { SDMMC5_CMD, (IEN | PTU | M0) }, /* sdmmc5_cmd */
65 { SDMMC5_DAT0, (IEN | PTU | M0) }, /* sdmmc5_dat0 */
66 { SDMMC5_DAT1, (IEN | PTU | M0) }, /* sdmmc5_dat1 */
67 { SDMMC5_DAT2, (IEN | PTU | M0) }, /* sdmmc5_dat2 */
68 { SDMMC5_DAT3, (IEN | PTU | M0) }, /* sdmmc5_dat3 */
69 /* MCSPI4 */
70 { MCSPI4_CLK, (IEN | DIS | M0) }, /* mcspi4_clk */
71 { MCSPI4_SIMO, (IEN | DIS | M0) }, /* mcspi4_simo */
72 { MCSPI4_SOMI, (IEN | DIS | M0) }, /* mcspi4_somi */
73 { MCSPI4_CS0, (IEN | PTD | M0) }, /* mcspi4_cs0 */
74 /* UART4 */
75 { UART4_RX, (IDIS | DIS | M4) }, /* gpio_155 */
76 { UART4_TX, (IDIS | DIS | M7) }, /* safe_mode */
77 /* UNIPRO */
78 { UNIPRO_TX0, (IDIS | DIS | M7) }, /* safe_mode */
79 { UNIPRO_TY0, (IDIS | DIS | M7) }, /* safe_mode */
80 { UNIPRO_TX1, (IEN | DIS | M3) }, /* gpio_173 */
81 { UNIPRO_TY1, (IEN | DIS | M3) }, /* gpio_174 */
82 { UNIPRO_TX2, (IDIS | DIS | M7) }, /* safe_mode */
83 { UNIPRO_TY2, (IDIS | DIS | M7) }, /* safe_mode */
84 { UNIPRO_RX0, (IEN | DIS | M3) }, /* gpio_175 */
85 { UNIPRO_RY0, (IEN | DIS | M3) }, /* gpio_176 */
86 { UNIPRO_RX1, (IEN | DIS | M3) }, /* gpio_177 */
87 { UNIPRO_RY1, (IEN | DIS | M3) }, /* gpio_178 */
88 { UNIPRO_RX2, (IDIS | DIS | M7) }, /* safe_mode */
89 { UNIPRO_RY2, (IDIS | DIS | M7) }, /* safe_mode */
Paul Kocialkowski75089e52016-02-27 19:19:06 +010090 /* USBA0_OTG */
91 { USBA0_OTG_CE, (IDIS | PTD | M0) }, /* usba0_otg_ce */
92 { USBA0_OTG_DP, (IEN | DIS | M0) }, /* usba0_otg_dp */
93 { USBA0_OTG_DM, (IEN | DIS | M0) }, /* usba0_otg_dm */
Paul Kocialkowski3e3b8bc2016-02-27 19:19:00 +010094};
95
96#endif