2 * linux/include/asm-arm/arch-omap/board.h
4 * Information structures for board-specific data
6 * Copyright (C) 2004 Nokia Corporation
7 * Written by Juha Yrjölä <juha.yrjola@nokia.com>
13 #include <linux/config.h>
14 #include <linux/types.h>
16 /* Different peripheral ids */
17 #define OMAP_TAG_CLOCK 0x4f01
18 #define OMAP_TAG_MMC 0x4f02
19 #define OMAP_TAG_UART 0x4f03
20 #define OMAP_TAG_USB 0x4f04
22 struct omap_clock_config
{
23 /* 0 for 12 MHz, 1 for 13 MHz and 2 for 19.2 MHz */
27 struct omap_mmc_config
{
29 s8 mmc1_power_pin
, mmc2_power_pin
;
30 s8 mmc1_switch_pin
, mmc2_switch_pin
;
33 struct omap_uart_config
{
38 struct omap_usb_config
{
39 /* Configure drivers according to the connectors on your board:
40 * - "A" connector (rectagular)
41 * ... for host/OHCI use, set "register_host".
42 * - "B" connector (squarish) or "Mini-B"
43 * ... for device/gadget use, set "register_dev".
44 * - "Mini-AB" connector (very similar to Mini-B)
45 * ... for OTG use as device OR host, initialize "otg"
47 unsigned register_host
:1;
48 unsigned register_dev
:1;
49 u8 otg
; /* port number, 1-based: usb1 == 2 */
53 /* implicitly true if otg: host supports remote wakeup? */
56 /* signaling pins used to talk to transceiver on usbN:
58 * 2 == usb0-only, using internal transceiver
59 * 3 == 3 wire bidirectional
60 * 4 == 4 wire bidirectional
61 * 6 == 6 wire unidirectional (or TLL)
66 struct omap_board_config_entry
{
72 struct omap_board_config_kernel
{
77 extern const void *__omap_get_config(u16 tag
, size_t len
);
79 #define omap_get_config(tag, type) \
80 ((const type *) __omap_get_config((tag), sizeof(type)))
82 extern struct omap_board_config_kernel
*omap_board_config
;
83 extern int omap_board_config_size
;