~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-imx/devices/platform-imx-fb.c

Version: ~ [ linux-5.10-rc5 ] ~ [ linux-5.9.10 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.79 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.159 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.208 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.245 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.245 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Copyright (C) 2010 Pengutronix
  3  * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
  4  *
  5  * This program is free software; you can redistribute it and/or modify it under
  6  * the terms of the GNU General Public License version 2 as published by the
  7  * Free Software Foundation.
  8  */
  9 #include <linux/dma-mapping.h>
 10 
 11 #include "../hardware.h"
 12 #include "devices-common.h"
 13 
 14 #define imx_imx_fb_data_entry_single(soc, _devid, _size)                \
 15         {                                                               \
 16                 .devid = _devid,                                        \
 17                 .iobase = soc ## _LCDC_BASE_ADDR,                       \
 18                 .iosize = _size,                                        \
 19                 .irq = soc ## _INT_LCDC,                                \
 20         }
 21 
 22 #ifdef CONFIG_SOC_IMX1
 23 const struct imx_imx_fb_data imx1_imx_fb_data __initconst =
 24         imx_imx_fb_data_entry_single(MX1, "imx1-fb", SZ_4K);
 25 #endif /* ifdef CONFIG_SOC_IMX1 */
 26 
 27 #ifdef CONFIG_SOC_IMX21
 28 const struct imx_imx_fb_data imx21_imx_fb_data __initconst =
 29         imx_imx_fb_data_entry_single(MX21, "imx21-fb", SZ_4K);
 30 #endif /* ifdef CONFIG_SOC_IMX21 */
 31 
 32 #ifdef CONFIG_SOC_IMX27
 33 const struct imx_imx_fb_data imx27_imx_fb_data __initconst =
 34         imx_imx_fb_data_entry_single(MX27, "imx21-fb", SZ_4K);
 35 #endif /* ifdef CONFIG_SOC_IMX27 */
 36 
 37 struct platform_device *__init imx_add_imx_fb(
 38                 const struct imx_imx_fb_data *data,
 39                 const struct imx_fb_platform_data *pdata)
 40 {
 41         struct resource res[] = {
 42                 {
 43                         .start = data->iobase,
 44                         .end = data->iobase + data->iosize - 1,
 45                         .flags = IORESOURCE_MEM,
 46                 }, {
 47                         .start = data->irq,
 48                         .end = data->irq,
 49                         .flags = IORESOURCE_IRQ,
 50                 },
 51         };
 52         return imx_add_platform_device_dmamask(data->devid, 0,
 53                         res, ARRAY_SIZE(res),
 54                         pdata, sizeof(*pdata), DMA_BIT_MASK(32));
 55 }
 56 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp