1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012 Vista Silicon
4 * Javier Martin <javier.martin@vista-silicon.com>
7 #include "../hardware.h"
8 #include "devices-common.h"
10 #ifdef CONFIG_SOC_IMX27
11 const struct imx_imx27_coda_data imx27_coda_data __initconst
= {
12 .iobase
= MX27_VPU_BASE_ADDR
,
18 struct platform_device
*__init
imx_add_imx27_coda(
19 const struct imx_imx27_coda_data
*data
)
21 struct resource res
[] = {
23 .start
= data
->iobase
,
24 .end
= data
->iobase
+ data
->iosize
- 1,
25 .flags
= IORESOURCE_MEM
,
29 .flags
= IORESOURCE_IRQ
,
32 return imx_add_platform_device_dmamask("coda-imx27", 0, res
, 2, NULL
,