aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>2010-03-23 14:46:57 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-03-25 03:43:03 -0400
commit11a332adfeacee2634f73ad21b55aad5cc7fd54a (patch)
treee8201a80c27a0c6b093917c9ff7918afce1ac4c2 /arch
parent6dc2d6bf5148a9ed027af21285b0e17b83b3a8f4 (diff)
MXC: mach-mx31_3ds: Update variable names over recent mach name modification.
Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx3/mach-mx31_3ds.c38
-rw-r--r--arch/arm/plat-mxc/include/mach/board-mx31_3ds.h (renamed from arch/arm/plat-mxc/include/mach/board-mx31pdk.h)6
2 files changed, 22 insertions, 22 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c
index b88c18ad7698..4a94c3c49480 100644
--- a/arch/arm/mach-mx3/mach-mx31_3ds.c
+++ b/arch/arm/mach-mx3/mach-mx31_3ds.c
@@ -31,20 +31,20 @@
31#include <asm/memory.h> 31#include <asm/memory.h>
32#include <asm/mach/map.h> 32#include <asm/mach/map.h>
33#include <mach/common.h> 33#include <mach/common.h>
34#include <mach/board-mx31pdk.h> 34#include <mach/board-mx31_3ds.h>
35#include <mach/imx-uart.h> 35#include <mach/imx-uart.h>
36#include <mach/iomux-mx3.h> 36#include <mach/iomux-mx3.h>
37#include "devices.h" 37#include "devices.h"
38 38
39/*! 39/*!
40 * @file mx31pdk.c 40 * @file mx31_3ds.c
41 * 41 *
42 * @brief This file contains the board-specific initialization routines. 42 * @brief This file contains the board-specific initialization routines.
43 * 43 *
44 * @ingroup System 44 * @ingroup System
45 */ 45 */
46 46
47static int mx31pdk_pins[] = { 47static int mx31_3ds_pins[] = {
48 /* UART1 */ 48 /* UART1 */
49 MX31_PIN_CTS1__CTS1, 49 MX31_PIN_CTS1__CTS1,
50 MX31_PIN_RTS1__RTS1, 50 MX31_PIN_RTS1__RTS1,
@@ -95,7 +95,7 @@ static struct platform_device smsc911x_device = {
95 * LEDs, switches, interrupts for Ethernet. 95 * LEDs, switches, interrupts for Ethernet.
96 */ 96 */
97 97
98static void mx31pdk_expio_irq_handler(uint32_t irq, struct irq_desc *desc) 98static void mx31_3ds_expio_irq_handler(uint32_t irq, struct irq_desc *desc)
99{ 99{
100 uint32_t imr_val; 100 uint32_t imr_val;
101 uint32_t int_valid; 101 uint32_t int_valid;
@@ -163,7 +163,7 @@ static struct irq_chip expio_irq_chip = {
163 .unmask = expio_unmask_irq, 163 .unmask = expio_unmask_irq,
164}; 164};
165 165
166static int __init mx31pdk_init_expio(void) 166static int __init mx31_3ds_init_expio(void)
167{ 167{
168 int i; 168 int i;
169 int ret; 169 int ret;
@@ -176,7 +176,7 @@ static int __init mx31pdk_init_expio(void)
176 return -ENODEV; 176 return -ENODEV;
177 } 177 }
178 178
179 pr_info("i.MX31PDK Debug board detected, rev = 0x%04X\n", 179 pr_info("i.MX31 3DS Debug board detected, rev = 0x%04X\n",
180 __raw_readw(CPLD_CODE_VER_REG)); 180 __raw_readw(CPLD_CODE_VER_REG));
181 181
182 /* 182 /*
@@ -201,7 +201,7 @@ static int __init mx31pdk_init_expio(void)
201 set_irq_flags(i, IRQF_VALID); 201 set_irq_flags(i, IRQF_VALID);
202 } 202 }
203 set_irq_type(EXPIO_PARENT_INT, IRQ_TYPE_LEVEL_LOW); 203 set_irq_type(EXPIO_PARENT_INT, IRQ_TYPE_LEVEL_LOW);
204 set_irq_chained_handler(EXPIO_PARENT_INT, mx31pdk_expio_irq_handler); 204 set_irq_chained_handler(EXPIO_PARENT_INT, mx31_3ds_expio_irq_handler);
205 205
206 return 0; 206 return 0;
207} 207}
@@ -209,7 +209,7 @@ static int __init mx31pdk_init_expio(void)
209/* 209/*
210 * This structure defines the MX31 memory map. 210 * This structure defines the MX31 memory map.
211 */ 211 */
212static struct map_desc mx31pdk_io_desc[] __initdata = { 212static struct map_desc mx31_3ds_io_desc[] __initdata = {
213 { 213 {
214 .virtual = MX31_CS5_BASE_ADDR_VIRT, 214 .virtual = MX31_CS5_BASE_ADDR_VIRT,
215 .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR), 215 .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR),
@@ -221,10 +221,10 @@ static struct map_desc mx31pdk_io_desc[] __initdata = {
221/* 221/*
222 * Set up static virtual mappings. 222 * Set up static virtual mappings.
223 */ 223 */
224static void __init mx31pdk_map_io(void) 224static void __init mx31_3ds_map_io(void)
225{ 225{
226 mx31_map_io(); 226 mx31_map_io();
227 iotable_init(mx31pdk_io_desc, ARRAY_SIZE(mx31pdk_io_desc)); 227 iotable_init(mx31_3ds_io_desc, ARRAY_SIZE(mx31_3ds_io_desc));
228} 228}
229 229
230/*! 230/*!
@@ -232,35 +232,35 @@ static void __init mx31pdk_map_io(void)
232 */ 232 */
233static void __init mxc_board_init(void) 233static void __init mxc_board_init(void)
234{ 234{
235 mxc_iomux_setup_multiple_pins(mx31pdk_pins, ARRAY_SIZE(mx31pdk_pins), 235 mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins),
236 "mx31pdk"); 236 "mx31_3ds");
237 237
238 mxc_register_device(&mxc_uart_device0, &uart_pdata); 238 mxc_register_device(&mxc_uart_device0, &uart_pdata);
239 239
240 if (!mx31pdk_init_expio()) 240 if (!mx31_3ds_init_expio())
241 platform_device_register(&smsc911x_device); 241 platform_device_register(&smsc911x_device);
242} 242}
243 243
244static void __init mx31pdk_timer_init(void) 244static void __init mx31_3ds_timer_init(void)
245{ 245{
246 mx31_clocks_init(26000000); 246 mx31_clocks_init(26000000);
247} 247}
248 248
249static struct sys_timer mx31pdk_timer = { 249static struct sys_timer mx31_3ds_timer = {
250 .init = mx31pdk_timer_init, 250 .init = mx31_3ds_timer_init,
251}; 251};
252 252
253/* 253/*
254 * The following uses standard kernel macros defined in arch.h in order to 254 * The following uses standard kernel macros defined in arch.h in order to
255 * initialize __mach_desc_MX31PDK data structure. 255 * initialize __mach_desc_MX31_3DS data structure.
256 */ 256 */
257MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)") 257MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)")
258 /* Maintainer: Freescale Semiconductor, Inc. */ 258 /* Maintainer: Freescale Semiconductor, Inc. */
259 .phys_io = MX31_AIPS1_BASE_ADDR, 259 .phys_io = MX31_AIPS1_BASE_ADDR,
260 .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, 260 .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
261 .boot_params = MX3x_PHYS_OFFSET + 0x100, 261 .boot_params = MX3x_PHYS_OFFSET + 0x100,
262 .map_io = mx31pdk_map_io, 262 .map_io = mx31_3ds_map_io,
263 .init_irq = mx31_init_irq, 263 .init_irq = mx31_init_irq,
264 .init_machine = mxc_board_init, 264 .init_machine = mxc_board_init,
265 .timer = &mx31pdk_timer, 265 .timer = &mx31_3ds_timer,
266MACHINE_END 266MACHINE_END
diff --git a/arch/arm/plat-mxc/include/mach/board-mx31pdk.h b/arch/arm/plat-mxc/include/mach/board-mx31_3ds.h
index 2bbd6ed17f50..da92933a233b 100644
--- a/arch/arm/plat-mxc/include/mach/board-mx31pdk.h
+++ b/arch/arm/plat-mxc/include/mach/board-mx31_3ds.h
@@ -8,8 +8,8 @@
8 * published by the Free Software Foundation. 8 * published by the Free Software Foundation.
9 */ 9 */
10 10
11#ifndef __ASM_ARCH_MXC_BOARD_MX31PDK_H__ 11#ifndef __ASM_ARCH_MXC_BOARD_MX31_3DS_H__
12#define __ASM_ARCH_MXC_BOARD_MX31PDK_H__ 12#define __ASM_ARCH_MXC_BOARD_MX31_3DS_H__
13 13
14/* Definitions for components on the Debug board */ 14/* Definitions for components on the Debug board */
15 15
@@ -56,4 +56,4 @@
56 56
57#define MXC_MAX_EXP_IO_LINES 16 57#define MXC_MAX_EXP_IO_LINES 16
58 58
59#endif /* __ASM_ARCH_MXC_BOARD_MX31PDK_H__ */ 59#endif /* __ASM_ARCH_MXC_BOARD_MX31_3DS_H__ */