Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 160879
b: refs/heads/master
c: 635baf6
h: refs/heads/master
i:
  160877: bedf9e7
  160875: 1dfb222
  160871: 1a91e75
  160863: 23dbee5
v: v3
  • Loading branch information
Sascha Hauer committed Aug 14, 2009
1 parent a4aedb5 commit dab2a12
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c25c36f33157a2e2a1fcd60b6dc00feace80631
refs/heads/master: 635baf6b40ebaef683abf87d677467cba71a0d50
4 changes: 4 additions & 0 deletions trunk/arch/arm/mach-mx25/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ if ARCH_MX25

comment "MX25 platforms:"

config MACH_MX25_3DS
select ARCH_MXC_IOMUX_V3
bool "Support MX25PDK (3DS) Platform"

endif
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mx25/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
obj-y := mm.o devices.o
obj-$(CONFIG_ARCH_MX25) += clock.o
obj-$(CONFIG_MACH_MX25_3DS) += mx25pdk.o
58 changes: 58 additions & 0 deletions trunk/arch/arm/mach-mx25/mx25pdk.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#include <linux/types.h>
#include <linux/init.h>
#include <linux/clk.h>
#include <linux/irq.h>
#include <linux/gpio.h>
#include <linux/smsc911x.h>
#include <linux/platform_device.h>

#include <mach/hardware.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include <asm/memory.h>
#include <asm/mach/map.h>
#include <mach/common.h>
#include <mach/imx-uart.h>
#include <mach/mx25.h>
#include <mach/mxc_nand.h>
#include "devices.h"
#include <mach/iomux-v3.h>

static struct imxuart_platform_data uart_pdata = {
.flags = IMXUART_HAVE_RTSCTS,
};

static struct mxc_nand_platform_data nand_board_info = {
.width = 1,
.hw_ecc = 1,
};

static void __init mx25pdk_init(void)
{
mxc_register_device(&mxc_uart_device0, &uart_pdata);
mxc_register_device(&mxc_usbh2, NULL);
mxc_register_device(&mxc_nand_device, &nand_board_info);
}


static void __init mx25pdk_timer_init(void)
{
mx25_clocks_init(26000000);
}

static struct sys_timer mx25pdk_timer = {
.init = mx25pdk_timer_init,
};

MACHINE_START(MX25_3DS, "Freescale MX25PDK (3DS)")
/* Maintainer: Freescale Semiconductor, Inc. */
.phys_io = MX25_AIPS1_BASE_ADDR,
.io_pg_offst = ((MX25_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
.boot_params = PHYS_OFFSET + 0x100,
.map_io = mx25_map_io,
.init_irq = mx25_init_irq,
.init_machine = mx25pdk_init,
.timer = &mx25pdk_timer,
MACHINE_END

3 changes: 3 additions & 0 deletions trunk/arch/arm/plat-mxc/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ static __inline__ void __arch_decomp_setup(unsigned long arch_id)
case MACH_TYPE_SCB9328:
uart_base = MX1_UART1_BASE_ADDR;
break;
case MACH_TYPE_MX25_3DS:
uart_base = MX25_UART1_BASE_ADDR;
break;
case MACH_TYPE_IMX27LITE:
case MACH_TYPE_MX27_3DS:
case MACH_TYPE_MX27ADS:
Expand Down

0 comments on commit dab2a12

Please sign in to comment.