diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/arm/mach-msm/include | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'arch/arm/mach-msm/include')
| -rw-r--r-- | arch/arm/mach-msm/include/mach/entry-macro-qgic.S | 88 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/entry-macro-vic.S | 37 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/gpio.h | 26 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/io.h | 36 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/memory.h | 35 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/mmc.h | 37 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/msm_fb.h | 147 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/system.h | 28 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/vmalloc.h | 22 |
9 files changed, 456 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/include/mach/entry-macro-qgic.S b/arch/arm/mach-msm/include/mach/entry-macro-qgic.S new file mode 100644 index 00000000000..12467157afb --- /dev/null +++ b/arch/arm/mach-msm/include/mach/entry-macro-qgic.S | |||
| @@ -0,0 +1,88 @@ | |||
| 1 | /* | ||
| 2 | * Low-level IRQ helper macros | ||
| 3 | * | ||
| 4 | * Copyright (c) 2010, Code Aurora Forum. All rights reserved. | ||
| 5 | * | ||
| 6 | * This file is licensed under the terms of the GNU General Public | ||
| 7 | * License version 2. This program is licensed "as is" without any | ||
| 8 | * warranty of any kind, whether express or implied. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #include <mach/hardware.h> | ||
| 12 | #include <asm/hardware/gic.h> | ||
| 13 | |||
| 14 | .macro disable_fiq | ||
| 15 | .endm | ||
| 16 | |||
| 17 | .macro get_irqnr_preamble, base, tmp | ||
| 18 | ldr \base, =gic_cpu_base_addr | ||
| 19 | ldr \base, [\base] | ||
| 20 | .endm | ||
| 21 | |||
| 22 | .macro arch_ret_to_user, tmp1, tmp2 | ||
| 23 | .endm | ||
| 24 | |||
| 25 | /* | ||
| 26 | * The interrupt numbering scheme is defined in the | ||
| 27 | * interrupt controller spec. To wit: | ||
| 28 | * | ||
| 29 | * Migrated the code from ARM MP port to be more consistent | ||
| 30 | * with interrupt processing , the following still holds true | ||
| 31 | * however, all interrupts are treated the same regardless of | ||
| 32 | * if they are local IPI or PPI | ||
| 33 | * | ||
| 34 | * Interrupts 0-15 are IPI | ||
| 35 | * 16-31 are PPI | ||
| 36 | * (16-18 are the timers) | ||
| 37 | * 32-1020 are global | ||
| 38 | * 1021-1022 are reserved | ||
| 39 | * 1023 is "spurious" (no interrupt) | ||
| 40 | * | ||
| 41 | * A simple read from the controller will tell us the number of the | ||
| 42 | * highest priority enabled interrupt. We then just need to check | ||
| 43 | * whether it is in the valid range for an IRQ (0-1020 inclusive). | ||
| 44 | * | ||
| 45 | * Base ARM code assumes that the local (private) peripheral interrupts | ||
| 46 | * are not valid, we treat them differently, in that the privates are | ||
| 47 | * handled like normal shared interrupts with the exception that only | ||
| 48 | * one processor can register the interrupt and the handler must be | ||
| 49 | * the same for all processors. | ||
| 50 | */ | ||
| 51 | |||
| 52 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | ||
| 53 | |||
| 54 | ldr \irqstat, [\base, #GIC_CPU_INTACK] /* bits 12-10 =srcCPU, | ||
| 55 | 9-0 =int # */ | ||
| 56 | |||
| 57 | bic \irqnr, \irqstat, #0x1c00 @mask src | ||
| 58 | cmp \irqnr, #15 | ||
| 59 | ldr \tmp, =1021 | ||
| 60 | cmpcc \irqnr, \irqnr | ||
| 61 | cmpne \irqnr, \tmp | ||
| 62 | cmpcs \irqnr, \irqnr | ||
| 63 | |||
| 64 | .endm | ||
| 65 | |||
| 66 | /* We assume that irqstat (the raw value of the IRQ acknowledge | ||
| 67 | * register) is preserved from the macro above. | ||
| 68 | * If there is an IPI, we immediately signal end of interrupt on the | ||
| 69 | * controller, since this requires the original irqstat value which | ||
| 70 | * we won't easily be able to recreate later. | ||
| 71 | */ | ||
| 72 | .macro test_for_ipi, irqnr, irqstat, base, tmp | ||
| 73 | bic \irqnr, \irqstat, #0x1c00 | ||
| 74 | cmp \irqnr, #16 | ||
| 75 | strcc \irqstat, [\base, #GIC_CPU_EOI] | ||
| 76 | cmpcs \irqnr, \irqnr | ||
| 77 | .endm | ||
| 78 | |||
| 79 | /* As above, this assumes that irqstat and base are preserved.. */ | ||
| 80 | |||
| 81 | .macro test_for_ltirq, irqnr, irqstat, base, tmp | ||
| 82 | bic \irqnr, \irqstat, #0x1c00 | ||
| 83 | mov \tmp, #0 | ||
| 84 | cmp \irqnr, #16 | ||
| 85 | moveq \tmp, #1 | ||
| 86 | streq \irqstat, [\base, #GIC_CPU_EOI] | ||
| 87 | cmp \tmp, #0 | ||
| 88 | .endm | ||
diff --git a/arch/arm/mach-msm/include/mach/entry-macro-vic.S b/arch/arm/mach-msm/include/mach/entry-macro-vic.S new file mode 100644 index 00000000000..70563ed11b3 --- /dev/null +++ b/arch/arm/mach-msm/include/mach/entry-macro-vic.S | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2007 Google, Inc. | ||
| 3 | * Author: Brian Swetland <swetland@google.com> | ||
| 4 | * | ||
| 5 | * This software is licensed under the terms of the GNU General Public | ||
| 6 | * License version 2, as published by the Free Software Foundation, and | ||
| 7 | * may be copied, distributed, and modified under those terms. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | */ | ||
| 15 | |||
| 16 | #include <mach/msm_iomap.h> | ||
| 17 | |||
| 18 | .macro disable_fiq | ||
| 19 | .endm | ||
| 20 | |||
| 21 | .macro get_irqnr_preamble, base, tmp | ||
| 22 | @ enable imprecise aborts | ||
| 23 | cpsie a | ||
| 24 | mov \base, #MSM_VIC_BASE | ||
| 25 | .endm | ||
| 26 | |||
| 27 | .macro arch_ret_to_user, tmp1, tmp2 | ||
| 28 | .endm | ||
| 29 | |||
| 30 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | ||
| 31 | @ 0xD0 has irq# or old irq# if the irq has been handled | ||
| 32 | @ 0xD4 has irq# or -1 if none pending *but* if you just | ||
| 33 | @ read 0xD4 you never get the first irq for some reason | ||
| 34 | ldr \irqnr, [\base, #0xD0] | ||
| 35 | ldr \irqnr, [\base, #0xD4] | ||
| 36 | cmp \irqnr, #0xffffffff | ||
| 37 | .endm | ||
diff --git a/arch/arm/mach-msm/include/mach/gpio.h b/arch/arm/mach-msm/include/mach/gpio.h new file mode 100644 index 00000000000..36ad50d3bfa --- /dev/null +++ b/arch/arm/mach-msm/include/mach/gpio.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2007 Google, Inc. | ||
| 3 | * Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved. | ||
| 4 | * Author: Mike Lockwood <lockwood@android.com> | ||
| 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 | #ifndef __ASM_ARCH_MSM_GPIO_H | ||
| 17 | #define __ASM_ARCH_MSM_GPIO_H | ||
| 18 | |||
| 19 | #include <asm-generic/gpio.h> | ||
| 20 | |||
| 21 | #define gpio_get_value __gpio_get_value | ||
| 22 | #define gpio_set_value __gpio_set_value | ||
| 23 | #define gpio_cansleep __gpio_cansleep | ||
| 24 | #define gpio_to_irq __gpio_to_irq | ||
| 25 | |||
| 26 | #endif /* __ASM_ARCH_MSM_GPIO_H */ | ||
diff --git a/arch/arm/mach-msm/include/mach/io.h b/arch/arm/mach-msm/include/mach/io.h new file mode 100644 index 00000000000..dc1b928745e --- /dev/null +++ b/arch/arm/mach-msm/include/mach/io.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* arch/arm/mach-msm/include/mach/io.h | ||
| 2 | * | ||
| 3 | * Copyright (C) 2007 Google, Inc. | ||
| 4 | * | ||
| 5 | * This software is licensed under the terms of the GNU General Public | ||
| 6 | * License version 2, as published by the Free Software Foundation, and | ||
| 7 | * may be copied, distributed, and modified under those terms. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef __ASM_ARM_ARCH_IO_H | ||
| 17 | #define __ASM_ARM_ARCH_IO_H | ||
| 18 | |||
| 19 | #define IO_SPACE_LIMIT 0xffffffff | ||
| 20 | |||
| 21 | #define __arch_ioremap __msm_ioremap | ||
| 22 | #define __arch_iounmap __iounmap | ||
| 23 | |||
| 24 | void __iomem *__msm_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype); | ||
| 25 | |||
| 26 | #define __io(a) __typesafe_io(a) | ||
| 27 | #define __mem_pci(a) (a) | ||
| 28 | |||
| 29 | void msm_map_qsd8x50_io(void); | ||
| 30 | void msm_map_msm7x30_io(void); | ||
| 31 | void msm_map_msm8x60_io(void); | ||
| 32 | void msm_map_msm8960_io(void); | ||
| 33 | |||
| 34 | extern unsigned int msm_shared_ram_phys; | ||
| 35 | |||
| 36 | #endif | ||
diff --git a/arch/arm/mach-msm/include/mach/memory.h b/arch/arm/mach-msm/include/mach/memory.h new file mode 100644 index 00000000000..f2f8d299ba9 --- /dev/null +++ b/arch/arm/mach-msm/include/mach/memory.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* arch/arm/mach-msm/include/mach/memory.h | ||
| 2 | * | ||
| 3 | * Copyright (C) 2007 Google, Inc. | ||
| 4 | * | ||
| 5 | * This software is licensed under the terms of the GNU General Public | ||
| 6 | * License version 2, as published by the Free Software Foundation, and | ||
| 7 | * may be copied, distributed, and modified under those terms. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef __ASM_ARCH_MEMORY_H | ||
| 17 | #define __ASM_ARCH_MEMORY_H | ||
| 18 | |||
| 19 | /* physical offset of RAM */ | ||
| 20 | #if defined(CONFIG_ARCH_QSD8X50) && defined(CONFIG_MSM_SOC_REV_A) | ||
| 21 | #define PLAT_PHYS_OFFSET UL(0x00000000) | ||
| 22 | #elif defined(CONFIG_ARCH_QSD8X50) | ||
| 23 | #define PLAT_PHYS_OFFSET UL(0x20000000) | ||
| 24 | #elif defined(CONFIG_ARCH_MSM7X30) | ||
| 25 | #define PLAT_PHYS_OFFSET UL(0x00200000) | ||
| 26 | #elif defined(CONFIG_ARCH_MSM8X60) | ||
| 27 | #define PLAT_PHYS_OFFSET UL(0x40200000) | ||
| 28 | #elif defined(CONFIG_ARCH_MSM8960) | ||
| 29 | #define PLAT_PHYS_OFFSET UL(0x40200000) | ||
| 30 | #else | ||
| 31 | #define PLAT_PHYS_OFFSET UL(0x10000000) | ||
| 32 | #endif | ||
| 33 | |||
| 34 | #endif | ||
| 35 | |||
diff --git a/arch/arm/mach-msm/include/mach/mmc.h b/arch/arm/mach-msm/include/mach/mmc.h new file mode 100644 index 00000000000..5631b51cec4 --- /dev/null +++ b/arch/arm/mach-msm/include/mach/mmc.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/include/asm/mach/mmc.h | ||
| 3 | */ | ||
| 4 | #ifndef ASMARM_MACH_MMC_H | ||
| 5 | #define ASMARM_MACH_MMC_H | ||
| 6 | |||
| 7 | #include <linux/mmc/host.h> | ||
| 8 | #include <linux/mmc/card.h> | ||
| 9 | #include <linux/mmc/sdio_func.h> | ||
| 10 | |||
| 11 | struct embedded_sdio_data { | ||
| 12 | struct sdio_cis cis; | ||
| 13 | struct sdio_cccr cccr; | ||
| 14 | struct sdio_embedded_func *funcs; | ||
| 15 | int num_funcs; | ||
| 16 | }; | ||
| 17 | |||
| 18 | struct msm_mmc_gpio { | ||
| 19 | unsigned no; | ||
| 20 | const char *name; | ||
| 21 | }; | ||
| 22 | |||
| 23 | struct msm_mmc_gpio_data { | ||
| 24 | struct msm_mmc_gpio *gpio; | ||
| 25 | u8 size; | ||
| 26 | }; | ||
| 27 | |||
| 28 | struct msm_mmc_platform_data { | ||
| 29 | unsigned int ocr_mask; /* available voltages */ | ||
| 30 | u32 (*translate_vdd)(struct device *, unsigned int); | ||
| 31 | unsigned int (*status)(struct device *); | ||
| 32 | struct embedded_sdio_data *embedded_sdio; | ||
| 33 | int (*register_status_notify)(void (*callback)(int card_present, void *dev_id), void *dev_id); | ||
| 34 | struct msm_mmc_gpio_data *gpio_data; | ||
| 35 | }; | ||
| 36 | |||
| 37 | #endif | ||
diff --git a/arch/arm/mach-msm/include/mach/msm_fb.h b/arch/arm/mach-msm/include/mach/msm_fb.h new file mode 100644 index 00000000000..1f4fc81b3d8 --- /dev/null +++ b/arch/arm/mach-msm/include/mach/msm_fb.h | |||
| @@ -0,0 +1,147 @@ | |||
| 1 | /* arch/arm/mach-msm/include/mach/msm_fb.h | ||
| 2 | * | ||
| 3 | * Internal shared definitions for various MSM framebuffer parts. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2007 Google Incorporated | ||
| 6 | * | ||
| 7 | * This software is licensed under the terms of the GNU General Public | ||
| 8 | * License version 2, as published by the Free Software Foundation, and | ||
| 9 | * may be copied, distributed, and modified under those terms. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifndef _MSM_FB_H_ | ||
| 18 | #define _MSM_FB_H_ | ||
| 19 | |||
| 20 | #include <linux/device.h> | ||
| 21 | |||
| 22 | struct mddi_info; | ||
| 23 | |||
| 24 | struct msm_fb_data { | ||
| 25 | int xres; /* x resolution in pixels */ | ||
| 26 | int yres; /* y resolution in pixels */ | ||
| 27 | int width; /* disply width in mm */ | ||
| 28 | int height; /* display height in mm */ | ||
| 29 | unsigned output_format; | ||
| 30 | }; | ||
| 31 | |||
| 32 | struct msmfb_callback { | ||
| 33 | void (*func)(struct msmfb_callback *); | ||
| 34 | }; | ||
| 35 | |||
| 36 | enum { | ||
| 37 | MSM_MDDI_PMDH_INTERFACE, | ||
| 38 | MSM_MDDI_EMDH_INTERFACE, | ||
| 39 | MSM_EBI2_INTERFACE, | ||
| 40 | }; | ||
| 41 | |||
| 42 | #define MSMFB_CAP_PARTIAL_UPDATES (1 << 0) | ||
| 43 | |||
| 44 | struct msm_panel_data { | ||
| 45 | /* turns off the fb memory */ | ||
| 46 | int (*suspend)(struct msm_panel_data *); | ||
| 47 | /* turns on the fb memory */ | ||
| 48 | int (*resume)(struct msm_panel_data *); | ||
| 49 | /* turns off the panel */ | ||
| 50 | int (*blank)(struct msm_panel_data *); | ||
| 51 | /* turns on the panel */ | ||
| 52 | int (*unblank)(struct msm_panel_data *); | ||
| 53 | void (*wait_vsync)(struct msm_panel_data *); | ||
| 54 | void (*request_vsync)(struct msm_panel_data *, struct msmfb_callback *); | ||
| 55 | void (*clear_vsync)(struct msm_panel_data *); | ||
| 56 | /* from the enum above */ | ||
| 57 | unsigned interface_type; | ||
| 58 | /* data to be passed to the fb driver */ | ||
| 59 | struct msm_fb_data *fb_data; | ||
| 60 | |||
| 61 | /* capabilities supported by the panel */ | ||
| 62 | uint32_t caps; | ||
| 63 | }; | ||
| 64 | |||
| 65 | struct msm_mddi_client_data { | ||
| 66 | void (*suspend)(struct msm_mddi_client_data *); | ||
| 67 | void (*resume)(struct msm_mddi_client_data *); | ||
| 68 | void (*activate_link)(struct msm_mddi_client_data *); | ||
| 69 | void (*remote_write)(struct msm_mddi_client_data *, uint32_t val, | ||
| 70 | uint32_t reg); | ||
| 71 | uint32_t (*remote_read)(struct msm_mddi_client_data *, uint32_t reg); | ||
| 72 | void (*auto_hibernate)(struct msm_mddi_client_data *, int); | ||
| 73 | /* custom data that needs to be passed from the board file to a | ||
| 74 | * particular client */ | ||
| 75 | void *private_client_data; | ||
| 76 | struct resource *fb_resource; | ||
| 77 | /* from the list above */ | ||
| 78 | unsigned interface_type; | ||
| 79 | }; | ||
| 80 | |||
| 81 | struct msm_mddi_platform_data { | ||
| 82 | unsigned int clk_rate; | ||
| 83 | void (*power_client)(struct msm_mddi_client_data *, int on); | ||
| 84 | |||
| 85 | /* fixup the mfr name, product id */ | ||
| 86 | void (*fixup)(uint16_t *mfr_name, uint16_t *product_id); | ||
| 87 | |||
| 88 | struct resource *fb_resource; /*optional*/ | ||
| 89 | /* number of clients in the list that follows */ | ||
| 90 | int num_clients; | ||
| 91 | /* array of client information of clients */ | ||
| 92 | struct { | ||
| 93 | unsigned product_id; /* mfr id in top 16 bits, product id | ||
| 94 | * in lower 16 bits | ||
| 95 | */ | ||
| 96 | char *name; /* the device name will be the platform | ||
| 97 | * device name registered for the client, | ||
| 98 | * it should match the name of the associated | ||
| 99 | * driver | ||
| 100 | */ | ||
| 101 | unsigned id; /* id for mddi client device node, will also | ||
| 102 | * be used as device id of panel devices, if | ||
| 103 | * the client device will have multiple panels | ||
| 104 | * space must be left here for them | ||
| 105 | */ | ||
| 106 | void *client_data; /* required private client data */ | ||
| 107 | unsigned int clk_rate; /* optional: if the client requires a | ||
| 108 | * different mddi clk rate | ||
| 109 | */ | ||
| 110 | } client_platform_data[]; | ||
| 111 | }; | ||
| 112 | |||
| 113 | struct mdp_blit_req; | ||
| 114 | struct fb_info; | ||
| 115 | struct mdp_device { | ||
| 116 | struct device dev; | ||
| 117 | void (*dma)(struct mdp_device *mpd, uint32_t addr, | ||
| 118 | uint32_t stride, uint32_t w, uint32_t h, uint32_t x, | ||
| 119 | uint32_t y, struct msmfb_callback *callback, int interface); | ||
| 120 | void (*dma_wait)(struct mdp_device *mdp); | ||
| 121 | int (*blit)(struct mdp_device *mdp, struct fb_info *fb, | ||
| 122 | struct mdp_blit_req *req); | ||
| 123 | void (*set_grp_disp)(struct mdp_device *mdp, uint32_t disp_id); | ||
| 124 | }; | ||
| 125 | |||
| 126 | struct class_interface; | ||
| 127 | int register_mdp_client(struct class_interface *class_intf); | ||
| 128 | |||
| 129 | /**** private client data structs go below this line ***/ | ||
| 130 | |||
| 131 | struct msm_mddi_bridge_platform_data { | ||
| 132 | /* from board file */ | ||
| 133 | int (*init)(struct msm_mddi_bridge_platform_data *, | ||
| 134 | struct msm_mddi_client_data *); | ||
| 135 | int (*uninit)(struct msm_mddi_bridge_platform_data *, | ||
| 136 | struct msm_mddi_client_data *); | ||
| 137 | /* passed to panel for use by the fb driver */ | ||
| 138 | int (*blank)(struct msm_mddi_bridge_platform_data *, | ||
| 139 | struct msm_mddi_client_data *); | ||
| 140 | int (*unblank)(struct msm_mddi_bridge_platform_data *, | ||
| 141 | struct msm_mddi_client_data *); | ||
| 142 | struct msm_fb_data fb_data; | ||
| 143 | }; | ||
| 144 | |||
| 145 | |||
| 146 | |||
| 147 | #endif | ||
diff --git a/arch/arm/mach-msm/include/mach/system.h b/arch/arm/mach-msm/include/mach/system.h new file mode 100644 index 00000000000..d2e83f42ba1 --- /dev/null +++ b/arch/arm/mach-msm/include/mach/system.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | /* arch/arm/mach-msm/include/mach/system.h | ||
| 2 | * | ||
| 3 | * Copyright (C) 2007 Google, Inc. | ||
| 4 | * | ||
| 5 | * This software is licensed under the terms of the GNU General Public | ||
| 6 | * License version 2, as published by the Free Software Foundation, and | ||
| 7 | * may be copied, distributed, and modified under those terms. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | */ | ||
| 15 | |||
| 16 | #include <mach/hardware.h> | ||
| 17 | |||
| 18 | void arch_idle(void); | ||
| 19 | |||
| 20 | static inline void arch_reset(char mode, const char *cmd) | ||
| 21 | { | ||
| 22 | for (;;) ; /* depends on IPC w/ other core */ | ||
| 23 | } | ||
| 24 | |||
| 25 | /* low level hardware reset hook -- for example, hitting the | ||
| 26 | * PSHOLD line on the PMIC to hard reset the system | ||
| 27 | */ | ||
| 28 | extern void (*msm_hw_reset_hook)(void); | ||
diff --git a/arch/arm/mach-msm/include/mach/vmalloc.h b/arch/arm/mach-msm/include/mach/vmalloc.h new file mode 100644 index 00000000000..d138448eff1 --- /dev/null +++ b/arch/arm/mach-msm/include/mach/vmalloc.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* arch/arm/mach-msm/include/mach/vmalloc.h | ||
| 2 | * | ||
| 3 | * Copyright (C) 2007 Google, Inc. | ||
| 4 | * | ||
| 5 | * This software is licensed under the terms of the GNU General Public | ||
| 6 | * License version 2, as published by the Free Software Foundation, and | ||
| 7 | * may be copied, distributed, and modified under those terms. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef __ASM_ARCH_MSM_VMALLOC_H | ||
| 17 | #define __ASM_ARCH_MSM_VMALLOC_H | ||
| 18 | |||
| 19 | #define VMALLOC_END 0xd0000000UL | ||
| 20 | |||
| 21 | #endif | ||
| 22 | |||
