devices.c (b77ed2e6d61d40117272be1b2377c5dfd101e9cd) devices.c (22abc0d25db35e74753c7d3d8f30d2823a7fe2a1)
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/module.h>
3#include <linux/kernel.h>
4#include <linux/init.h>
5#include <linux/platform_device.h>
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/module.h>
3#include <linux/kernel.h>
4#include <linux/init.h>
5#include <linux/platform_device.h>
6#include <linux/clkdev.h>
6#include <linux/dma-mapping.h>
7#include <linux/dmaengine.h>
8#include <linux/spi/pxa2xx_spi.h>
9#include <linux/platform_data/i2c-pxa.h>
10
11#include "udc.h"
12#include <linux/platform_data/usb-pxa3xx-ulpi.h>
13#include <linux/platform_data/video-pxafb.h>

--- 458 unchanged lines hidden (view full) ---

472 .coherent_dma_mask = 0xffffffff,
473 },
474 .num_resources = ARRAY_SIZE(pxa_ac97_resources),
475 .resource = pxa_ac97_resources,
476};
477
478void __init pxa_set_ac97_info(pxa2xx_audio_ops_t *ops)
479{
7#include <linux/dma-mapping.h>
8#include <linux/dmaengine.h>
9#include <linux/spi/pxa2xx_spi.h>
10#include <linux/platform_data/i2c-pxa.h>
11
12#include "udc.h"
13#include <linux/platform_data/usb-pxa3xx-ulpi.h>
14#include <linux/platform_data/video-pxafb.h>

--- 458 unchanged lines hidden (view full) ---

473 .coherent_dma_mask = 0xffffffff,
474 },
475 .num_resources = ARRAY_SIZE(pxa_ac97_resources),
476 .resource = pxa_ac97_resources,
477};
478
479void __init pxa_set_ac97_info(pxa2xx_audio_ops_t *ops)
480{
481 int ret;
482
483 ret = clk_add_alias("ac97_clk", "pxa2xx-ac97:0", "AC97CLK",
484 &pxa_device_ac97.dev);
485 if (ret)
486 pr_err("PXA AC97 clock1 alias error: %d\n", ret);
487
488 ret = clk_add_alias("ac97_clk", "pxa2xx-ac97:1", "AC97CLK",
489 &pxa_device_ac97.dev);
490 if (ret)
491 pr_err("PXA AC97 clock2 alias error: %d\n", ret);
492
480 pxa_register_device(&pxa_device_ac97, ops);
481}
482
483#ifdef CONFIG_PXA25x
484
485static struct resource pxa25x_resource_pwm0[] = {
486 [0] = {
487 .start = 0x40b00000,

--- 612 unchanged lines hidden ---
493 pxa_register_device(&pxa_device_ac97, ops);
494}
495
496#ifdef CONFIG_PXA25x
497
498static struct resource pxa25x_resource_pwm0[] = {
499 [0] = {
500 .start = 0x40b00000,

--- 612 unchanged lines hidden ---