summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-whistler-baseband.h
diff options
context:
space:
mode:
authorSheshagiri Shenoy <sshenoy@nvidia.com>2011-04-18 15:38:01 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:46:27 -0800
commit2280d866884faaa013f8f906153a705ef7c42a87 (patch)
tree2304dc5e12a849f2d9ec45204e9c862264cf8f11 /arch/arm/mach-tegra/board-whistler-baseband.h
parentd3f4d0c342c890a46ff9841e2356f9db85ed7617 (diff)
ARM: tegra: whistler: enable spi-slave based modem.
- configured the pinmuxes needed by the baseband. - added board specific baseband related code. - added caif specific platform data needed by protocol layer. bug 785523 Change-Id: I2d1936419ccd9190d6539836cb8bca563ea07c6e Reviewed-on: http://git-master/r/23432 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R88b62bdca3f984c66510158d1bc6878fdd014619
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler-baseband.h')
-rw-r--r--arch/arm/mach-tegra/board-whistler-baseband.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-whistler-baseband.h b/arch/arm/mach-tegra/board-whistler-baseband.h
new file mode 100644
index 000000000000..c8f561669468
--- /dev/null
+++ b/arch/arm/mach-tegra/board-whistler-baseband.h
@@ -0,0 +1,73 @@
+/*
+ * arch/arm/mach-tegra/board-whistler-baseband.h
+ *
+ * Copyright (C) 2011 NVIDIA Corporation
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef BOARD_WHISTLER_BASEBAND_H
+#define BOARD_WHISTLER_BASEBAND_H
+
+#include <linux/delay.h>
+#include <linux/gpio.h>
+#include <linux/spi/spi.h>
+#include <linux/platform_data/tegra_usb.h>
+#include <mach/usb_phy.h>
+#include <linux/resource.h>
+#include <linux/platform_device.h>
+#include <linux/err.h>
+#include <asm/mach-types.h>
+#include <mach/pinmux.h>
+#include <mach/spi.h>
+
+#include "clock.h"
+#include "devices.h"
+#include "gpio-names.h"
+
+#define BOARD_WHISTLER_BASEBAND_U3XX 0
+#define BOARD_WHISTLER_BASEBAND_N731 1
+#define BOARD_WHISTLER_BASEBAND_SPI_LOOPBACK 2
+#define BOARD_WHISTLER_BASEBAND_HSIC 3
+
+#define TEGRA_CAIF_SSPI_GPIO_RESET TEGRA_GPIO_PV0
+#define TEGRA_CAIF_SSPI_GPIO_POWER TEGRA_GPIO_PV1
+#define TEGRA_CAIF_SSPI_GPIO_AWR TEGRA_GPIO_PZ0
+#define TEGRA_CAIF_SSPI_GPIO_CWR TEGRA_GPIO_PY6
+#define TEGRA_CAIF_SSPI_GPIO_SPI_INT TEGRA_GPIO_PO6
+#define TEGRA_CAIF_SSPI_GPIO_SS TEGRA_GPIO_PV2
+
+#define MODEM_PWR_ON TEGRA_GPIO_PV1
+#define MODEM_RESET TEGRA_GPIO_PV0
+
+/* Rainbow1 and 570 */
+#define AWR TEGRA_GPIO_PZ0
+#define CWR TEGRA_GPIO_PY6
+#define SPI_INT TEGRA_GPIO_PO6
+#define SPI_SLAVE_SEL TEGRA_GPIO_PV2
+
+/* PH450 */
+#define AP2MDM_ACK2 TEGRA_GPIO_PU2
+#define MDM2AP_ACK2 TEGRA_GPIO_PV2
+
+
+struct whistler_baseband {
+ struct tegra_clk_init_table *clk_init;
+ struct platform_device **platform_device;
+ int platform_device_size;
+ struct spi_board_info *spi_board_info;
+ int spi_board_info_size;
+};
+
+int whistler_baseband_init(void);
+
+#endif /* BOARD_WHISTLER_BASEBAND_H */
+