public
Created

RAM console patch

  • Download Gist
ramconsole.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
diff --git a/arch/arm/mach-msm/board-qsd8x50.c b/arch/arm/mach-msm/board-qsd8x50.c
index 15e114c..3b2bfcf 100644
--- a/arch/arm/mach-msm/board-qsd8x50.c
+++ b/arch/arm/mach-msm/board-qsd8x50.c
@@ -132,9 +132,14 @@
#define MSM_SMI_BASE 0x00000000
#endif
+#define MODEM_SIZE 0x02B00000
+
#define MSM_SHARED_RAM_PHYS (MSM_SMI_BASE + 0x00100000)
-#define MSM_PMEM_SMI_BASE (MSM_SMI_BASE + 0x02B00000)
+#define MSM_RAM_CONSOLE_BASE (MSM_SMI_BASE + MODEM_SIZE)
+#define MSM_RAM_CONSOLE_SIZE 128 * SZ_1K
+
+#define MSM_PMEM_SMI_BASE (MSM_SMI_BASE + MODEM_SIZE + MSM_RAM_CONSOLE_SIZE)
#define MSM_PMEM_SMI_SIZE 0x01500000
#define MSM_FB_BASE MSM_PMEM_SMI_BASE
@@ -2440,9 +2445,25 @@ static struct msm_otg_platform_data msm_otg_pdata = {
.pmic_enable_ldo = msm_pm_app_enable_usb_ldo,
};
+static struct resource ram_console_resource[] = {
+ {
+ .flags = IORESOURCE_MEM,
+ .start = MSM_RAM_CONSOLE_BASE,
+ .end = MSM_RAM_CONSOLE_BASE + MSM_RAM_CONSOLE_SIZE - 1,
+ }
+};
+
+static struct platform_device ram_console_device = {
+ .name = "ram_console",
+ .id = -1,
+ .num_resources = ARRAY_SIZE(ram_console_resource),
+ .resource = ram_console_resource,
+};
+
static struct msm_hsusb_gadget_platform_data msm_gadget_pdata;
static struct platform_device *devices[] __initdata = {
+ &ram_console_device,
&msm_fb_device,
#ifdef CONFIG_FB_MSM_MDDI_TOSHIBA_WVGA
&mddi_toshiba_device,

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.