generic.c (fd13f8117f7a2d4054bf420ec1428e918a24a480) generic.c (3c816d950a494ae6e16b1fa017af29bc53cb7791)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/arch/arm/mach-pxa/generic.c
4 *
5 * Author: Nicolas Pitre
6 * Created: Jun 15, 2001
7 * Copyright: MontaVista Software Inc.
8 *

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

14 * need be.
15 */
16#include <linux/gpio.h>
17#include <linux/module.h>
18#include <linux/kernel.h>
19#include <linux/init.h>
20#include <linux/soc/pxa/cpu.h>
21#include <linux/soc/pxa/smemc.h>
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/arch/arm/mach-pxa/generic.c
4 *
5 * Author: Nicolas Pitre
6 * Created: Jun 15, 2001
7 * Copyright: MontaVista Software Inc.
8 *

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

14 * need be.
15 */
16#include <linux/gpio.h>
17#include <linux/module.h>
18#include <linux/kernel.h>
19#include <linux/init.h>
20#include <linux/soc/pxa/cpu.h>
21#include <linux/soc/pxa/smemc.h>
22#include <linux/clk/pxa.h>
22
23#include <asm/mach/map.h>
24#include <asm/mach-types.h>
25
26#include "addr-map.h"
27#include <mach/irqs.h>
28#include <mach/reset.h>
29#include <mach/smemc.h>

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

43}
44
45/*
46 * For non device-tree builds, keep legacy timer init
47 */
48void __init pxa_timer_init(void)
49{
50 if (cpu_is_pxa25x())
23
24#include <asm/mach/map.h>
25#include <asm/mach-types.h>
26
27#include "addr-map.h"
28#include <mach/irqs.h>
29#include <mach/reset.h>
30#include <mach/smemc.h>

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

44}
45
46/*
47 * For non device-tree builds, keep legacy timer init
48 */
49void __init pxa_timer_init(void)
50{
51 if (cpu_is_pxa25x())
51 pxa25x_clocks_init();
52 pxa25x_clocks_init(io_p2v(0x41300000));
52 if (cpu_is_pxa27x())
53 if (cpu_is_pxa27x())
53 pxa27x_clocks_init();
54 pxa27x_clocks_init(io_p2v(0x41300000));
54 if (cpu_is_pxa3xx())
55 if (cpu_is_pxa3xx())
55 pxa3xx_clocks_init();
56 pxa3xx_clocks_init(io_p2v(0x41340000), io_p2v(0x41350000));
56 pxa_timer_nodt_init(IRQ_OST0, io_p2v(0x40a00000));
57}
58
59void pxa_smemc_set_pcmcia_timing(int sock, u32 mcmem, u32 mcatt, u32 mcio)
60{
61 __raw_writel(mcmem, MCMEM(sock));
62 __raw_writel(mcatt, MCATT(sock));
63 __raw_writel(mcio, MCIO(sock));

--- 49 unchanged lines hidden ---
57 pxa_timer_nodt_init(IRQ_OST0, io_p2v(0x40a00000));
58}
59
60void pxa_smemc_set_pcmcia_timing(int sock, u32 mcmem, u32 mcatt, u32 mcio)
61{
62 __raw_writel(mcmem, MCMEM(sock));
63 __raw_writel(mcatt, MCATT(sock));
64 __raw_writel(mcio, MCIO(sock));

--- 49 unchanged lines hidden ---