Go to the documentation of this file.
10 #include <linux/module.h>
15 #ifdef CONFIG_OMAP_MUX
17 #define _OMAP2430_MUXENTRY(M0, g, m0, m1, m2, m3, m4, m5, m6, m7) \
19 .reg_offset = (OMAP2430_CONTROL_PADCONF_##M0##_OFFSET), \
21 .muxnames = { m0, m1, m2, m3, m4, m5, m6, m7 }, \
26 #define _OMAP2430_MUXENTRY(M0, g, m0, m1, m2, m3, m4, m5, m6, m7) \
28 .reg_offset = (OMAP2430_CONTROL_PADCONF_##M0##_OFFSET), \
34 #define _OMAP2430_BALLENTRY(M0, bb, bt) \
36 .reg_offset = (OMAP2430_CONTROL_PADCONF_##M0##_OFFSET), \
37 .balls = { bb, bt }, \
45 "cam_d0",
"hw_dbg0",
"sti_dout",
"gpio_133",
54 "cam_d1",
"hw_dbg1",
"sti_din",
"gpio_132",
57 "cam_d2",
"hw_dbg2",
"mcbsp1_clkx",
"gpio_129",
60 "cam_d3",
"hw_dbg3",
"mcbsp1_dr",
"gpio_128",
63 "cam_d4",
"hw_dbg4",
"mcbsp1_fsr",
"gpio_143",
66 "cam_d5",
"hw_dbg5",
"mcbsp1_clkr",
"gpio_112",
69 "cam_d6",
"hw_dbg6",
NULL,
"gpio_137",
72 "cam_d7",
"hw_dbg7",
NULL,
"gpio_136",
75 "cam_d8",
"hw_dbg8",
NULL,
"gpio_135",
78 "cam_d9",
"hw_dbg9",
NULL,
"gpio_134",
81 "cam_hs",
"hw_dbg10",
"mcbsp1_dx",
"gpio_11",
84 "cam_lclk",
NULL,
"mcbsp_clks",
NULL,
87 "cam_vs",
"hw_dbg11",
"mcbsp1_fsx",
"gpio_12",
93 "dss_acbias",
NULL,
"mcbsp2_fsx",
"gpio_48",
96 "dss_data0",
"uart1_cts",
NULL,
"gpio_40",
99 "dss_data10",
"sdi_data1n",
NULL,
"gpio_128",
102 "dss_data11",
"sdi_data1p",
NULL,
"gpio_129",
105 "dss_data12",
"sdi_data2n",
NULL,
"gpio_130",
108 "dss_data13",
"sdi_data2p",
NULL,
"gpio_131",
111 "dss_data14",
"sdi_data3n",
NULL,
"gpio_132",
114 "dss_data15",
"sdi_data3p",
NULL,
"gpio_133",
117 "dss_data16",
NULL,
NULL,
"gpio_46",
120 "dss_data17",
NULL,
NULL,
"gpio_47",
123 "dss_data1",
"uart1_rts",
NULL,
"gpio_41",
126 "dss_data2",
"uart1_tx",
NULL,
"gpio_42",
129 "dss_data3",
"uart1_rx",
NULL,
"gpio_43",
132 "dss_data4",
"uart3_rx_irrx",
NULL,
"gpio_44",
135 "dss_data5",
"uart3_tx_irtx",
NULL,
"gpio_45",
138 "dss_data6",
NULL,
NULL,
"gpio_144",
141 "dss_data7",
NULL,
NULL,
"gpio_147",
150 "dss_hsync",
NULL,
NULL,
"gpio_110",
153 "gpio_113",
"mcbsp2_clkx",
NULL,
"gpio_113",
156 "gpio_114",
"mcbsp2_fsx",
NULL,
"gpio_114",
159 "gpio_115",
"mcbsp2_dr",
NULL,
"gpio_115",
162 "gpio_116",
"mcbsp2_dx",
NULL,
"gpio_116",
165 "gpio_128",
NULL,
"sti_din",
"gpio_128",
166 NULL,
"sys_boot0",
NULL,
"safe_mode"),
168 "gpio_129",
NULL,
"sti_dout",
"gpio_129",
169 NULL,
"sys_boot1",
NULL,
"safe_mode"),
172 "jtag_emu2",
"sys_boot2",
NULL,
"safe_mode"),
175 "jtag_emu3",
"sys_boot3",
NULL,
"safe_mode"),
178 NULL,
"sys_boot4",
NULL,
"safe_mode"),
181 NULL,
"sys_boot5",
NULL,
"safe_mode"),
183 "gpio_134",
"ccp_datn",
NULL,
"gpio_134",
186 "gpio_135",
"ccp_datp",
NULL,
"gpio_135",
189 "gpio_136",
"ccp_clkn",
NULL,
"gpio_136",
192 "gpio_137",
"ccp_clkp",
NULL,
"gpio_137",
195 "gpio_138",
"spi3_clk",
NULL,
"gpio_138",
198 "gpio_139",
"spi3_cs0",
"sys_ndmareq3",
"gpio_139",
201 "gpio_140",
"spi3_simo",
"sys_ndmareq4",
"gpio_140",
202 NULL,
NULL,
"etk_d14",
"safe_mode"),
204 "gpio_141",
"spi3_somi",
NULL,
"gpio_141",
207 "gpio_142",
"spi3_cs1",
"sys_ndmareq2",
"gpio_142",
208 NULL,
NULL,
"etk_d15",
"safe_mode"),
210 "gpio_148",
"mcbsp5_fsx",
NULL,
"gpio_148",
213 "gpio_149",
"mcbsp5_dx",
NULL,
"gpio_149",
216 "gpio_150",
"mcbsp5_dr",
NULL,
"gpio_150",
219 "gpio_151",
"sys_pwrok",
NULL,
"gpio_151",
222 "gpio_152",
"uart1_cts",
"sys_ndmareq1",
"gpio_152",
225 "gpio_153",
"uart1_rx",
"sys_ndmareq0",
"gpio_153",
228 "gpio_154",
"mcbsp5_clkx",
NULL,
"gpio_154",
231 "gpio_63",
"mcbsp4_clkx",
NULL,
"gpio_63",
234 "gpio_78",
NULL,
"uart2_rts",
"gpio_78",
235 "uart3_rts_sd",
NULL,
NULL,
"safe_mode"),
237 "gpio_79",
"secure_indicator",
"uart2_tx",
"gpio_79",
238 "uart3_tx_irtx",
NULL,
NULL,
"safe_mode"),
240 "gpio_7",
NULL,
"uart2_cts",
"gpio_7",
241 "uart3_cts_rctx",
NULL,
NULL,
"safe_mode"),
243 "gpio_80",
NULL,
"uart2_rx",
"gpio_80",
244 "uart3_rx_irrx",
NULL,
NULL,
"safe_mode"),
246 "gpmc_a10",
NULL,
"sys_ndmareq0",
"gpio_3",
273 "gpmc_a9",
NULL,
"sys_ndmareq1",
"gpio_4",
309 "gpmc_ncs3",
"gpmc_io_dir",
NULL,
"gpio_24",
321 "gpmc_ncs7",
"gpmc_io_dir",
NULL,
"gpio_28",
324 "gpmc_wait1",
NULL,
NULL,
"gpio_33",
327 "gpmc_wait2",
NULL,
NULL,
"gpio_34",
330 "gpmc_wait3",
NULL,
NULL,
"gpio_35",
333 "hdq_sio",
"usb2_tllse0",
"sys_altclk",
"gpio_101",
334 "uart3_rx_irrx",
NULL,
NULL,
"safe_mode"),
348 "jtag_emu0",
"secure_indicator",
NULL,
"gpio_127",
351 "jtag_emu1",
NULL,
NULL,
"gpio_126",
354 "mcbsp1_clkr",
"ssi2_dat_tx",
NULL,
"gpio_92",
357 "mcbsp1_clkx",
"ssi2_wake",
NULL,
"gpio_98",
360 "mcbsp1_dr",
"ssi2_dat_rx",
NULL,
"gpio_95",
363 "mcbsp1_dx",
"ssi2_rdy_tx",
NULL,
"gpio_94",
366 "mcbsp1_fsr",
"ssi2_flag_tx",
NULL,
"gpio_93",
367 "spi2_cs1",
NULL,
NULL,
"safe_mode"),
369 "mcbsp1_fsx",
"ssi2_rdy_rx",
NULL,
"gpio_97",
372 "mcbsp2_clkx",
"sdi_clkp",
"dss_data23",
"gpio_147",
375 "mcbsp2_dr",
"sdi_clkn",
"dss_data22",
"gpio_144",
378 "mcbsp3_clkx",
NULL,
NULL,
"gpio_71",
384 "mcbsp3_dx",
NULL,
"sti_clk",
"gpio_74",
387 "mcbsp3_fsx",
NULL,
NULL,
"gpio_72",
390 "mcbsp_clks",
"ssi2_flag_rx",
NULL,
"gpio_96",
393 "sdmmc1_clko",
"ms_clko",
NULL,
NULL,
394 NULL,
"hw_dbg9",
"hw_dbg3",
"safe_mode"),
397 NULL,
"hw_dbg8",
"hw_dbg2",
"safe_mode"),
399 "sdmmc1_dat0",
"ms_dat0",
NULL,
NULL,
400 NULL,
"hw_dbg7",
"hw_dbg1",
"safe_mode"),
402 "sdmmc1_dat1",
"ms_dat1",
NULL,
"gpio_75",
403 NULL,
"hw_dbg6",
"hw_dbg0",
"safe_mode"),
405 "sdmmc1_dat2",
"ms_dat2",
NULL,
NULL,
406 NULL,
"hw_dbg5",
"hw_dbg10",
"safe_mode"),
408 "sdmmc1_dat3",
"ms_dat3",
NULL,
NULL,
409 NULL,
"hw_dbg4",
"hw_dbg11",
"safe_mode"),
411 "sdmmc2_clko",
NULL,
NULL,
"gpio_13",
412 NULL,
"spi3_clk",
NULL,
"safe_mode"),
414 "sdmmc2_cmd",
"usb2_rcv",
NULL,
"gpio_15",
415 NULL,
"spi3_simo",
NULL,
"safe_mode"),
417 "sdmmc2_dat0",
"usb2_tllse0",
NULL,
"gpio_16",
418 NULL,
"spi3_somi",
NULL,
"safe_mode"),
420 "sdmmc2_dat1",
"usb2_txen",
NULL,
"gpio_58",
423 "sdmmc2_dat2",
"usb2_dat",
NULL,
"gpio_17",
424 NULL,
"spi3_cs1",
NULL,
"safe_mode"),
426 "sdmmc2_dat3",
"usb2_se0",
NULL,
"gpio_14",
427 NULL,
"spi3_cs0",
NULL,
"safe_mode"),
456 "spi1_cs3",
"spi2_cs1",
NULL,
"gpio_87",
465 "spi2_clk",
"gpt9_pwm_evt",
NULL,
"gpio_88",
468 "spi2_cs0",
"gpt12_pwm_evt",
NULL,
"gpio_91",
471 "spi2_simo",
"gpt10_pwm_evt",
NULL,
"gpio_89",
474 "spi2_somi",
"gpt11_pwm_evt",
NULL,
"gpio_90",
477 "ssi1_dat_rx",
"uart1_rx",
"usb1_dat",
"gpio_62",
480 "ssi1_dat_tx",
"uart1_tx",
"usb1_se0",
"gpio_59",
483 "ssi1_flag_rx",
"mcbsp4_dr",
NULL,
"gpio_64",
486 "ssi1_flag_tx",
"uart1_rts",
"usb1_rcv",
"gpio_60",
489 "ssi1_rdy_rx",
"mcbsp4_dx",
NULL,
"gpio_65",
492 "ssi1_rdy_tx",
"uart1_cts",
"usb1_txen",
"gpio_61",
495 "ssi1_wake",
"mcbsp4_fsx",
NULL,
"gpio_66",
498 "sys_clkout",
NULL,
NULL,
"gpio_111",
501 "sys_drm_msecure",
NULL,
"sys_ndmareq6",
"gpio_118",
507 "sys_nirq1",
NULL,
"sys_ndmareq5",
"gpio_125",
510 "uart1_cts",
"sdi_vsync",
"dss_data18",
"gpio_32",
511 "mcbsp5_clkx",
NULL,
NULL,
"safe_mode"),
513 "uart1_rts",
"sdi_hsync",
"dss_data19",
"gpio_8",
514 "mcbsp5_fsx",
NULL,
NULL,
"safe_mode"),
516 "uart1_rx",
"sdi_stp",
"dss_data21",
"gpio_10",
517 "mcbsp5_dr",
NULL,
NULL,
"safe_mode"),
519 "uart1_tx",
"sdi_den",
"dss_data20",
"gpio_9",
520 "mcbsp5_dx",
NULL,
NULL,
"safe_mode"),
522 "uart2_cts",
"usb1_rcv",
"gpt9_pwm_evt",
"gpio_67",
525 "uart2_rts",
"usb1_txen",
"gpt10_pwm_evt",
"gpio_68",
528 "uart2_rx",
"usb1_dat",
"gpt12_pwm_evt",
"gpio_70",
531 "uart2_tx",
"usb1_se0",
"gpt11_pwm_evt",
"gpio_69",
534 "uart3_cts_rctx",
"uart3_rx_irrx",
NULL,
"gpio_102",
537 "uart3_rts_sd",
"uart3_tx_irtx",
NULL,
"gpio_103",
540 "uart3_rx_irrx",
NULL,
NULL,
"gpio_105",
543 "uart3_tx_irtx",
"uart3_cts_rctx",
NULL,
"gpio_104",
546 "usb0hs_clk",
NULL,
NULL,
"gpio_120",
549 "usb0hs_data0",
"uart3_tx_irtx",
NULL,
NULL,
550 "usb0_txen",
NULL,
NULL,
"safe_mode"),
552 "usb0hs_data1",
"uart3_rx_irrx",
NULL,
NULL,
553 "usb0_dat",
NULL,
NULL,
"safe_mode"),
555 "usb0hs_data2",
"uart3_rts_sd",
NULL,
NULL,
556 "usb0_se0",
NULL,
NULL,
"safe_mode"),
558 "usb0hs_data3",
NULL,
"uart3_cts_rctx",
"gpio_106",
559 "usb0_puen",
NULL,
NULL,
"safe_mode"),
561 "usb0hs_data4",
"mcbsp2_dr",
NULL,
"gpio_107",
562 "usb0_vp",
NULL,
NULL,
"safe_mode"),
564 "usb0hs_data5",
"mcbsp2_dx",
NULL,
"gpio_108",
565 "usb0_vm",
NULL,
NULL,
"safe_mode"),
567 "usb0hs_data6",
"mcbsp2_fsx",
NULL,
"gpio_109",
568 "usb0_rcv",
NULL,
NULL,
"safe_mode"),
570 "usb0hs_data7",
"mcbsp2_clkx",
NULL,
"gpio_124",
573 "usb0hs_dir",
NULL,
NULL,
"gpio_121",
576 "usb0hs_nxt",
NULL,
NULL,
"gpio_123",
579 "usb0hs_stp",
NULL,
NULL,
"gpio_122",
588 #ifdef CONFIG_DEBUG_FS
772 #define omap2430_pop_ball NULL
784 pr_warning(
"%s: No ball data available for omap2420 package\n",
791 omap2430_muxmodes,
NULL, board_subset,