diff options
Diffstat (limited to 'arch/arm/mach-tegra/include/mach')
58 files changed, 6220 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/arb_sema.h b/arch/arm/mach-tegra/include/mach/arb_sema.h new file mode 100644 index 00000000000..9283f079cf6 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/arb_sema.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-tegra/include/mach/arb_sema.h | ||
| 3 | * | ||
| 4 | * Hardware arbitration semaphore interface | ||
| 5 | * | ||
| 6 | * Copyright (c) 2010, NVIDIA Corporation. | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation; either version 2 of the License, or | ||
| 11 | * (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 16 | * more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License along | ||
| 19 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
| 20 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
| 21 | */ | ||
| 22 | |||
| 23 | #ifndef __MACH_TEGRA_ARB_SEMA_H | ||
| 24 | #define __MACH_TEGRA_ARB_SEMA_H | ||
| 25 | |||
| 26 | enum tegra_arb_module { | ||
| 27 | TEGRA_ARB_BSEV = 0, | ||
| 28 | TEGRA_ARB_BSEA, | ||
| 29 | }; | ||
| 30 | |||
| 31 | int tegra_arb_mutex_lock_timeout(enum tegra_arb_module lock, int msecs); | ||
| 32 | |||
| 33 | int tegra_arb_mutex_unlock(enum tegra_arb_module lock); | ||
| 34 | |||
| 35 | #endif | ||
diff --git a/arch/arm/mach-tegra/include/mach/audio.h b/arch/arm/mach-tegra/include/mach/audio.h new file mode 100644 index 00000000000..5950ececae0 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/audio.h | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-tegra/include/mach/audio.h | ||
| 3 | * | ||
| 4 | * Copyright (C) 2010 Google, Inc. | ||
| 5 | * | ||
| 6 | * Author: | ||
| 7 | * Iliyan Malchev <malchev@google.com> | ||
| 8 | * | ||
| 9 | * This software is licensed under the terms of the GNU General Public | ||
| 10 | * License version 2, as published by the Free Software Foundation, and | ||
| 11 | * may be copied, distributed, and modified under those terms. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | * | ||
| 18 | */ | ||
| 19 | |||
| 20 | #ifndef __ARCH_ARM_MACH_TEGRA_AUDIO_H | ||
| 21 | #define __ARCH_ARM_MACH_TEGRA_AUDIO_H | ||
| 22 | |||
| 23 | #include <linux/kernel.h> | ||
| 24 | #include <linux/types.h> | ||
| 25 | #include <mach/i2s.h> | ||
| 26 | |||
| 27 | #define FIFO1 0 | ||
| 28 | #define FIFO2 1 | ||
| 29 | |||
| 30 | /* FIXME: this is not enforced by the hardware. */ | ||
| 31 | #define I2S_FIFO_TX FIFO1 | ||
| 32 | #define I2S_FIFO_RX FIFO2 | ||
| 33 | |||
| 34 | #define TEGRA_AUDIO_ENABLE_TX 1 | ||
| 35 | #define TEGRA_AUDIO_ENABLE_RX 2 | ||
| 36 | |||
| 37 | struct tegra_audio_platform_data { | ||
| 38 | bool i2s_master; | ||
| 39 | bool dsp_master; | ||
| 40 | int i2s_master_clk; /* When I2S mode and master, the framesync rate. */ | ||
| 41 | int dsp_master_clk; /* When DSP mode and master, the framesync rate. */ | ||
| 42 | bool dma_on; | ||
| 43 | unsigned long i2s_clk_rate; | ||
| 44 | const char *dap_clk; | ||
| 45 | const char *audio_sync_clk; | ||
| 46 | |||
| 47 | int mode; /* I2S, LJM, RJM, etc. */ | ||
| 48 | int fifo_fmt; | ||
| 49 | int bit_size; | ||
| 50 | int i2s_bus_width; /* 32-bit for 16-bit packed I2S */ | ||
| 51 | int dsp_bus_width; /* 16-bit for DSP data format */ | ||
| 52 | int mask; /* enable tx and rx? */ | ||
| 53 | bool stereo_capture; /* True if hardware supports stereo */ | ||
| 54 | void *driver_data; | ||
| 55 | }; | ||
| 56 | |||
| 57 | #endif /* __ARCH_ARM_MACH_TEGRA_AUDIO_H */ | ||
diff --git a/arch/arm/mach-tegra/include/mach/csi.h b/arch/arm/mach-tegra/include/mach/csi.h new file mode 100644 index 00000000000..575de6fb497 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/csi.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-tegra/include/mach/csi.h | ||
| 3 | * | ||
| 4 | * Copyright (C) 2010-2011 NVIDIA Corporation. | ||
| 5 | * | ||
| 6 | * This software is licensed under the terms of the GNU General Public | ||
| 7 | * License version 2, as published by the Free Software Foundation, and | ||
| 8 | * may be copied, distributed, and modified under those terms. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifndef __MACH_TEGRA_CSI_H | ||
| 18 | #define __MACH_TEGRA_CSI_H | ||
| 19 | |||
| 20 | #define CSI_CILA_MIPI_CAL_CONFIG_0 0x22a | ||
| 21 | #define MIPI_CAL_TERMOSA(x) (((x) & 0x1f) << 0) | ||
| 22 | |||
| 23 | #define CSI_CILB_MIPI_CAL_CONFIG_0 0x22b | ||
| 24 | #define MIPI_CAL_TERMOSB(x) (((x) & 0x1f) << 0) | ||
| 25 | |||
| 26 | #define CSI_CIL_PAD_CONFIG 0x229 | ||
| 27 | #define PAD_CIL_PDVREG(x) (((x) & 0x01) << 1) | ||
