Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272847
b: refs/heads/master
c: 40d97b8
h: refs/heads/master
i:
  272845: dc89856
  272843: 59c753e
  272839: 7a93747
  272831: b24d8c6
v: v3
  • Loading branch information
Philippe Rétornaz authored and Sascha Hauer committed Sep 20, 2011
1 parent 0c86754 commit f6564c7
Show file tree
Hide file tree
Showing 3 changed files with 19 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: bbb433639c8e7b0ab68b7ed05871272880db4094
refs/heads/master: 40d97b89bd3c902144a0757249d9d5d5cf314214
17 changes: 17 additions & 0 deletions trunk/arch/arm/mach-imx/mach-mx31moboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#include <linux/spi/spi.h>
#include <linux/types.h>
#include <linux/memblock.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/err.h>

#include <linux/usb/otg.h>
#include <linux/usb/ulpi.h>
Expand Down Expand Up @@ -490,6 +493,18 @@ static int __init mx31moboard_init_cam(void)

}

static void mx31moboard_poweroff(void)
{
struct clk *clk = clk_get_sys("imx2-wdt.0", NULL);

if (!IS_ERR(clk))
clk_enable(clk);

mxc_iomux_mode(MX31_PIN_WATCHDOG_RST__WATCHDOG_RST);

__raw_writew(1 << 6 | 1 << 2, MX31_IO_ADDRESS(MX31_WDOG_BASE_ADDR));
}

static int mx31moboard_baseboard;
core_param(mx31moboard_baseboard, mx31moboard_baseboard, int, 0444);

Expand Down Expand Up @@ -528,6 +543,8 @@ static void __init mx31moboard_init(void)

moboard_usbh2_init();

pm_power_off = mx31moboard_poweroff;

switch (mx31moboard_baseboard) {
case MX31NOBOARD:
break;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/plat-mxc/include/mach/iomux-mx3.h
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ enum iomux_pins {
#define MX31_PIN_KEY_COL5_KEY_COL5 IOMUX_MODE(MX31_PIN_KEY_COL5, IOMUX_CONFIG_FUNC)
#define MX31_PIN_KEY_COL6_KEY_COL6 IOMUX_MODE(MX31_PIN_KEY_COL6, IOMUX_CONFIG_FUNC)
#define MX31_PIN_KEY_COL7_KEY_COL7 IOMUX_MODE(MX31_PIN_KEY_COL7, IOMUX_CONFIG_FUNC)
#define MX31_PIN_WATCHDOG_RST__WATCHDOG_RST IOMUX_MODE(MX31_PIN_WATCHDOG_RST, IOMUX_CONFIG_FUNC)


/*
Expand Down

0 comments on commit f6564c7

Please sign in to comment.