This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c | |
index 590b1cf1a8c4..9fb2835e8977 100644 | |
--- a/arch/arm/mach-tegra/tegra.c | |
+++ b/arch/arm/mach-tegra/tegra.c | |
@@ -116,6 +116,10 @@ static void __init tegra_dt_init_late(void) | |
if (IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SOC) && | |
of_machine_is_compatible("nvidia,tegra20")) | |
platform_device_register_simple("tegra20-cpufreq", -1, NULL, 0); | |
+ | |
+ if (IS_ENABLED(CONFIG_ARCH_TEGRA_3x_SOC) && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
#include <dt-bindings/input/input.h> | |
#include "tegra20.dtsi" | |
/ { | |
model = "QEMU"; | |
compatible = "qemu", "nvidia,tegra20"; | |
memory { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
General rules: | |
---------------------- | |
1. Use the master branches. | |
2. Install autotools and gcc. | |
3. Compile and install libdrm first. | |
4. Use the most recent mainline linux kernel or at least the most recent stable. | |
5. Update all libdrm / opentegra / mesa at once as there could be interdependencies, start from libdrm. | |
libdrm: | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Vertex constants */ | |
.constants | |
/* Linker disassembly */ | |
/* Fragment disassembly */ | |
pseq_to_dw_exec_nb = 1 | |
alu_buffer_size = 1 | |
.constants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* gcc bug.c -I/usr/include/libdrm -ldrm | |
* | |
*/ | |
#include <assert.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <sys/mman.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __KERNEL__ | |
#include <linux/delay.h> | |
#include <linux/io.h> | |
#include <linux/module.h> | |
#define abort() {pr_err("%s: %d\n", __func__, __LINE__); errored = 1; return;} | |
#define assert(a) if (!(a)) abort() | |
#define msleep(d) mdelay(d) | |
#define sleep(d) mdelay((d) * 1000) |
NewerOlder