1d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson/* 2d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * arch/arm/mach-tegra/board-seaboard.h 3d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * 4d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * Copyright (C) 2010 Google, Inc. 5d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * 6d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * This software is licensed under the terms of the GNU General Public 7d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * License version 2, as published by the Free Software Foundation, and 8d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * may be copied, distributed, and modified under those terms. 9d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * 10d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * This program is distributed in the hope that it will be useful, 11d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * but WITHOUT ANY WARRANTY; without even the implied warranty of 12d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * GNU General Public License for more details. 14d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson * 15d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson */ 16d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson 17d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#ifndef _MACH_TEGRA_BOARD_SEABOARD_H 18d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define _MACH_TEGRA_BOARD_SEABOARD_H 19d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson 20ea5abbd215b749b2ff14397a47a5e65741c67bf4Stephen Warren#include <mach/gpio-tegra.h> 21ea5abbd215b749b2ff14397a47a5e65741c67bf4Stephen Warren 22a697e694aeb82f2643825c45dc0214666172c540Stephen Warren#define SEABOARD_GPIO_TPS6586X(_x_) (TEGRA_NR_GPIOS + (_x_)) 23a697e694aeb82f2643825c45dc0214666172c540Stephen Warren#define SEABOARD_GPIO_WM8903(_x_) (SEABOARD_GPIO_TPS6586X(4) + (_x_)) 24a697e694aeb82f2643825c45dc0214666172c540Stephen Warren 25986afbe493b09846dffbe5c1bf9a428a839b6ca2Stephen Warren#define TEGRA_GPIO_SD2_CD TEGRA_GPIO_PI5 26986afbe493b09846dffbe5c1bf9a428a839b6ca2Stephen Warren#define TEGRA_GPIO_SD2_WP TEGRA_GPIO_PH1 27986afbe493b09846dffbe5c1bf9a428a839b6ca2Stephen Warren#define TEGRA_GPIO_SD2_POWER TEGRA_GPIO_PI6 28d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_LIDSWITCH TEGRA_GPIO_PC7 29d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_USB1 TEGRA_GPIO_PD0 30d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_POWERKEY TEGRA_GPIO_PV2 31d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_BACKLIGHT TEGRA_GPIO_PD4 32d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_LVDS_SHUTDOWN TEGRA_GPIO_PB2 33d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_BACKLIGHT_PWM TEGRA_GPIO_PU5 34d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_BACKLIGHT_VDD TEGRA_GPIO_PW0 35d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_EN_VDD_PNL TEGRA_GPIO_PC6 36d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_MAGNETOMETER TEGRA_GPIO_PN5 37d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_ISL29018_IRQ TEGRA_GPIO_PZ2 38d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#define TEGRA_GPIO_AC_ONLINE TEGRA_GPIO_PV3 39a697e694aeb82f2643825c45dc0214666172c540Stephen Warren#define TEGRA_GPIO_WWAN_PWR SEABOARD_GPIO_TPS6586X(2) 40a697e694aeb82f2643825c45dc0214666172c540Stephen Warren#define TEGRA_GPIO_CDC_IRQ TEGRA_GPIO_PX3 41a697e694aeb82f2643825c45dc0214666172c540Stephen Warren#define TEGRA_GPIO_SPKR_EN SEABOARD_GPIO_WM8903(2) 42a697e694aeb82f2643825c45dc0214666172c540Stephen Warren#define TEGRA_GPIO_HP_DET TEGRA_GPIO_PX1 43a697e694aeb82f2643825c45dc0214666172c540Stephen Warren#define TEGRA_GPIO_KAEN_HP_MUTE TEGRA_GPIO_PA5 44d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson 45d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johanssonvoid seaboard_pinmux_init(void); 46d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson 47d9a51fe75da73084b6c38f7f4450ad4c1bef8224Olof Johansson#endif 48