Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2017)

Unified Diff: arch/arm/mach-tegra/nv/include/nvio.h

Issue 3256004: [ARM] tegra: add nvos/nvrm/nvmap drivers (Closed) Base URL: ssh://git@gitrw.chromium.org/kernel.git
Patch Set: remove ap15 headers Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « arch/arm/mach-tegra/nv/include/nvidlcmd.h ('k') | arch/arm/mach-tegra/nv/include/nvodm_accelerometer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: arch/arm/mach-tegra/nv/include/nvio.h
diff --git a/arch/arm/mach-tegra/nv/include/nvio.h b/arch/arm/mach-tegra/nv/include/nvio.h
new file mode 100644
index 0000000000000000000000000000000000000000..f5d5e51edcac83b12c145d4342dd6342ac9bbac6
--- /dev/null
+++ b/arch/arm/mach-tegra/nv/include/nvio.h
@@ -0,0 +1,13 @@
+#define tegra_apertures(_aperture) \
+ _aperture(IRAM, 0x40000000, SZ_1M) \
+ _aperture(HOST1X, 0x50000000, SZ_1M) \
+ _aperture(PPSB, 0x60000000, SZ_1M) \
+ _aperture(APB, 0x70000000, SZ_1M) \
+ _aperture(USB, 0xC5000000, SZ_1M) \
+ _aperture(SDIO, 0xC8000000, SZ_1M)
+
+/* remaps USB to 0xFE9xxxxx, SDIO to 0xFECxxxxx, and everything else to
+ * 0xFEnxxxxx, where n is the most significant nybble */
+#define tegra_munge_pa(_pa) \
+ (((((_pa)&0x70000000UL)>>8) + (((_pa)&0x0F000000UL)>>4)) | \
+ ((_pa)&0xFFFFFUL) | 0xFE000000UL )
« no previous file with comments | « arch/arm/mach-tegra/nv/include/nvidlcmd.h ('k') | arch/arm/mach-tegra/nv/include/nvodm_accelerometer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698