spear3xx.c (2b9c613c4ee1756664fcbf6fc4926fee3e7139c3) spear3xx.c (d9909ebe650f028459b9be5a2321fee520b446b0)
1/*
2 * arch/arm/mach-spear3xx/spear3xx.c
3 *
4 * SPEAr3XX machines common source file
5 *
6 * Copyright (C) 2009-2012 ST Microelectronics
7 * Viresh Kumar <viresh.linux@gmail.com>
8 *

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

16#include <linux/amba/pl022.h>
17#include <linux/amba/pl080.h>
18#include <linux/clk.h>
19#include <linux/io.h>
20#include <asm/mach/map.h>
21#include "pl080.h"
22#include "generic.h"
23#include <mach/spear.h>
1/*
2 * arch/arm/mach-spear3xx/spear3xx.c
3 *
4 * SPEAr3XX machines common source file
5 *
6 * Copyright (C) 2009-2012 ST Microelectronics
7 * Viresh Kumar <viresh.linux@gmail.com>
8 *

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

16#include <linux/amba/pl022.h>
17#include <linux/amba/pl080.h>
18#include <linux/clk.h>
19#include <linux/io.h>
20#include <asm/mach/map.h>
21#include "pl080.h"
22#include "generic.h"
23#include <mach/spear.h>
24#include <mach/misc_regs.h>
24
25/* ssp device registration */
26struct pl022_ssp_controller pl022_plat_data = {
27 .bus_id = 0,
28 .enable_dma = 1,
29 .dma_filter = pl08x_filter_id,
30 .dma_tx_param = "ssp0_tx",
31 .dma_rx_param = "ssp0_rx",

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

62/*
63 * Following will create 16MB static virtual/physical mappings
64 * PHYSICAL VIRTUAL
65 * 0xD0000000 0xFD000000
66 * 0xFC000000 0xFC000000
67 */
68struct map_desc spear3xx_io_desc[] __initdata = {
69 {
25
26/* ssp device registration */
27struct pl022_ssp_controller pl022_plat_data = {
28 .bus_id = 0,
29 .enable_dma = 1,
30 .dma_filter = pl08x_filter_id,
31 .dma_tx_param = "ssp0_tx",
32 .dma_rx_param = "ssp0_rx",

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

63/*
64 * Following will create 16MB static virtual/physical mappings
65 * PHYSICAL VIRTUAL
66 * 0xD0000000 0xFD000000
67 * 0xFC000000 0xFC000000
68 */
69struct map_desc spear3xx_io_desc[] __initdata = {
70 {
70 .virtual = VA_SPEAR_ICM1_2_BASE,
71 .virtual = (unsigned long)VA_SPEAR_ICM1_2_BASE,
71 .pfn = __phys_to_pfn(SPEAR_ICM1_2_BASE),
72 .length = SZ_16M,
73 .type = MT_DEVICE
74 }, {
72 .pfn = __phys_to_pfn(SPEAR_ICM1_2_BASE),
73 .length = SZ_16M,
74 .type = MT_DEVICE
75 }, {
75 .virtual = VA_SPEAR_ICM3_SMI_CTRL_BASE,
76 .virtual = (unsigned long)VA_SPEAR_ICM3_SMI_CTRL_BASE,
76 .pfn = __phys_to_pfn(SPEAR_ICM3_SMI_CTRL_BASE),
77 .length = SZ_16M,
78 .type = MT_DEVICE
79 },
80};
81
82/* This will create static memory mapping for selected devices */
83void __init spear3xx_map_io(void)
84{
85 iotable_init(spear3xx_io_desc, ARRAY_SIZE(spear3xx_io_desc));
86}
87
88void __init spear3xx_timer_init(void)
89{
90 char pclk_name[] = "pll3_clk";
91 struct clk *gpt_clk, *pclk;
92
77 .pfn = __phys_to_pfn(SPEAR_ICM3_SMI_CTRL_BASE),
78 .length = SZ_16M,
79 .type = MT_DEVICE
80 },
81};
82
83/* This will create static memory mapping for selected devices */
84void __init spear3xx_map_io(void)
85{
86 iotable_init(spear3xx_io_desc, ARRAY_SIZE(spear3xx_io_desc));
87}
88
89void __init spear3xx_timer_init(void)
90{
91 char pclk_name[] = "pll3_clk";
92 struct clk *gpt_clk, *pclk;
93
93 spear3xx_clk_init();
94 spear3xx_clk_init(MISC_BASE, VA_SPEAR320_SOC_CONFIG_BASE);
94
95 /* get the system timer clock */
96 gpt_clk = clk_get_sys("gpt0", NULL);
97 if (IS_ERR(gpt_clk)) {
98 pr_err("%s:couldn't get clk for gpt\n", __func__);
99 BUG();
100 }
101

--- 14 unchanged lines hidden ---
95
96 /* get the system timer clock */
97 gpt_clk = clk_get_sys("gpt0", NULL);
98 if (IS_ERR(gpt_clk)) {
99 pr_err("%s:couldn't get clk for gpt\n", __func__);
100 BUG();
101 }
102

--- 14 unchanged lines hidden ---