spear6xx.c (2b9c613c4ee1756664fcbf6fc4926fee3e7139c3) spear6xx.c (d9909ebe650f028459b9be5a2321fee520b446b0)
1/*
2 * arch/arm/mach-spear6xx/spear6xx.c
3 *
4 * SPEAr6XX machines common source file
5 *
6 * Copyright (C) 2009 ST Microelectronics
7 * Rajeev Kumar<rajeev-dlh.kumar@st.com>
8 *

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

22#include <linux/of_platform.h>
23#include <linux/amba/pl080.h>
24#include <asm/mach/arch.h>
25#include <asm/mach/time.h>
26#include <asm/mach/map.h>
27#include "pl080.h"
28#include "generic.h"
29#include <mach/spear.h>
1/*
2 * arch/arm/mach-spear6xx/spear6xx.c
3 *
4 * SPEAr6XX machines common source file
5 *
6 * Copyright (C) 2009 ST Microelectronics
7 * Rajeev Kumar<rajeev-dlh.kumar@st.com>
8 *

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

22#include <linux/of_platform.h>
23#include <linux/amba/pl080.h>
24#include <asm/mach/arch.h>
25#include <asm/mach/time.h>
26#include <asm/mach/map.h>
27#include "pl080.h"
28#include "generic.h"
29#include <mach/spear.h>
30#include <mach/misc_regs.h>
30
31/* dmac device registration */
32static struct pl08x_channel_data spear600_dma_info[] = {
33 {
34 .bus_id = "ssp1_rx",
35 .min_signal = 0,
36 .max_signal = 0,
37 .muxval = 0,

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

345 * PHYSICAL VIRTUAL
346 * 0xF0000000 0xF0000000
347 * 0xF1000000 0xF1000000
348 * 0xD0000000 0xFD000000
349 * 0xFC000000 0xFC000000
350 */
351struct map_desc spear6xx_io_desc[] __initdata = {
352 {
31
32/* dmac device registration */
33static struct pl08x_channel_data spear600_dma_info[] = {
34 {
35 .bus_id = "ssp1_rx",
36 .min_signal = 0,
37 .max_signal = 0,
38 .muxval = 0,

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

346 * PHYSICAL VIRTUAL
347 * 0xF0000000 0xF0000000
348 * 0xF1000000 0xF1000000
349 * 0xD0000000 0xFD000000
350 * 0xFC000000 0xFC000000
351 */
352struct map_desc spear6xx_io_desc[] __initdata = {
353 {
353 .virtual = VA_SPEAR6XX_ML_CPU_BASE,
354 .virtual = (unsigned long)VA_SPEAR6XX_ML_CPU_BASE,
354 .pfn = __phys_to_pfn(SPEAR_ICM3_ML1_2_BASE),
355 .length = 2 * SZ_16M,
356 .type = MT_DEVICE
357 }, {
355 .pfn = __phys_to_pfn(SPEAR_ICM3_ML1_2_BASE),
356 .length = 2 * SZ_16M,
357 .type = MT_DEVICE
358 }, {
358 .virtual = VA_SPEAR_ICM1_2_BASE,
359 .virtual = (unsigned long)VA_SPEAR_ICM1_2_BASE,
359 .pfn = __phys_to_pfn(SPEAR_ICM1_2_BASE),
360 .length = SZ_16M,
361 .type = MT_DEVICE
362 }, {
360 .pfn = __phys_to_pfn(SPEAR_ICM1_2_BASE),
361 .length = SZ_16M,
362 .type = MT_DEVICE
363 }, {
363 .virtual = VA_SPEAR_ICM3_SMI_CTRL_BASE,
364 .virtual = (unsigned long)VA_SPEAR_ICM3_SMI_CTRL_BASE,
364 .pfn = __phys_to_pfn(SPEAR_ICM3_SMI_CTRL_BASE),
365 .length = SZ_16M,
366 .type = MT_DEVICE
367 },
368};
369
370/* This will create static memory mapping for selected devices */
371void __init spear6xx_map_io(void)
372{
373 iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc));
374}
375
376void __init spear6xx_timer_init(void)
377{
378 char pclk_name[] = "pll3_clk";
379 struct clk *gpt_clk, *pclk;
380
365 .pfn = __phys_to_pfn(SPEAR_ICM3_SMI_CTRL_BASE),
366 .length = SZ_16M,
367 .type = MT_DEVICE
368 },
369};
370
371/* This will create static memory mapping for selected devices */
372void __init spear6xx_map_io(void)
373{
374 iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc));
375}
376
377void __init spear6xx_timer_init(void)
378{
379 char pclk_name[] = "pll3_clk";
380 struct clk *gpt_clk, *pclk;
381
381 spear6xx_clk_init();
382 spear6xx_clk_init(MISC_BASE);
382
383 /* get the system timer clock */
384 gpt_clk = clk_get_sys("gpt0", NULL);
385 if (IS_ERR(gpt_clk)) {
386 pr_err("%s:couldn't get clk for gpt\n", __func__);
387 BUG();
388 }
389

--- 41 unchanged lines hidden ---
383
384 /* get the system timer clock */
385 gpt_clk = clk_get_sys("gpt0", NULL);
386 if (IS_ERR(gpt_clk)) {
387 pr_err("%s:couldn't get clk for gpt\n", __func__);
388 BUG();
389 }
390

--- 41 unchanged lines hidden ---