Path: blob/master/arch/arm/mach-mxs/devices/platform-mxsfb.c
10819 views
/*1* Copyright (C) 2011 Pengutronix, Sascha Hauer <[email protected]>2*3* This program is free software; you can redistribute it and/or modify it under4* the terms of the GNU General Public License version 2 as published by the5* Free Software Foundation.6*/7#include <asm/sizes.h>8#include <mach/mx23.h>9#include <mach/mx28.h>10#include <mach/devices-common.h>11#include <mach/mxsfb.h>1213#ifdef CONFIG_SOC_IMX2314struct platform_device *__init mx23_add_mxsfb(15const struct mxsfb_platform_data *pdata)16{17struct resource res[] = {18{19.start = MX23_LCDIF_BASE_ADDR,20.end = MX23_LCDIF_BASE_ADDR + SZ_8K - 1,21.flags = IORESOURCE_MEM,22},23};2425return mxs_add_platform_device_dmamask("imx23-fb", -1,26res, ARRAY_SIZE(res), pdata, sizeof(*pdata), DMA_BIT_MASK(32));27}28#endif /* ifdef CONFIG_SOC_IMX23 */2930#ifdef CONFIG_SOC_IMX2831struct platform_device *__init mx28_add_mxsfb(32const struct mxsfb_platform_data *pdata)33{34struct resource res[] = {35{36.start = MX28_LCDIF_BASE_ADDR,37.end = MX28_LCDIF_BASE_ADDR + SZ_8K - 1,38.flags = IORESOURCE_MEM,39},40};4142return mxs_add_platform_device_dmamask("imx28-fb", -1,43res, ARRAY_SIZE(res), pdata, sizeof(*pdata), DMA_BIT_MASK(32));44}45#endif /* ifdef CONFIG_SOC_IMX28 */464748