---
 target/linux/generic/config-3.3               |    1 +
 target/linux/mpc85xx/config-default           |    4 ++--
 target/linux/mpc85xx/modules.mk               |   21 +++++++++++++++++++++
 target/linux/mpc85xx/profiles/100-mpc854x.mk  |    2 +-
 target/linux/mpc85xx/profiles/200-p1010rdb.mk |    2 +-
 5 files changed, 26 insertions(+), 4 deletions(-)
 create mode 100644 target/linux/mpc85xx/modules.mk

diff --git a/target/linux/generic/config-3.3 b/target/linux/generic/config-3.3
index ae0cf16..ed1c9b4 100644
--- a/target/linux/generic/config-3.3
+++ b/target/linux/generic/config-3.3
@@ -274,6 +274,7 @@ CONFIG_BLOCK=y
 # CONFIG_BNX2 is not set
 # CONFIG_BNX2X is not set
 # CONFIG_BONDING is not set
+CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT=38
 # CONFIG_BOOT_PRINTK_DELAY is not set
 CONFIG_BOOT_RAW=y
 # CONFIG_BPQETHER is not set
diff --git a/target/linux/mpc85xx/config-default 
b/target/linux/mpc85xx/config-default
index 0d1b31e..2a388fc 100644
--- a/target/linux/mpc85xx/config-default
+++ b/target/linux/mpc85xx/config-default
@@ -20,6 +20,7 @@ CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
 CONFIG_AUDIT_ARCH=y
 CONFIG_BCMA_POSSIBLE=y
 CONFIG_BOOKE=y
+# CONFIG_BOOKE_WDT is not set
 CONFIG_BOUNCE=y
 CONFIG_CMDLINE="console=ttyS0,115200"
 CONFIG_CMDLINE_BOOL=y
@@ -146,7 +147,7 @@ CONFIG_OF_MDIO=y
 CONFIG_OF_NET=y
 CONFIG_OF_PCI=y
 CONFIG_OF_PCI_IRQ=y
-# CONFIG_P1010_RDB is not set
+CONFIG_P1010_RDB=y
 # CONFIG_P1022_DS is not set
 # CONFIG_P1023_RDS is not set
 # CONFIG_P2041_RDB is not set
@@ -247,6 +248,5 @@ CONFIG_UCC_GETH=y
 CONFIG_USB_ARCH_HAS_XHCI=y
 CONFIG_USB_SUPPORT=y
 CONFIG_VM_EVENT_COUNTERS=y
-# CONFIG_WATCHDOG is not set
 CONFIG_WORD_SIZE=32
 # CONFIG_XES_MPC85xx is not set
diff --git a/target/linux/mpc85xx/modules.mk b/target/linux/mpc85xx/modules.mk
new file mode 100644
index 0000000..e94f983
--- /dev/null
+++ b/target/linux/mpc85xx/modules.mk
@@ -0,0 +1,21 @@
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define KernelPackage/booke-wdt
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=PowerPC Book-E Watchdog Timer
+  DEPENDS:=@TARGET_mpc85xx
+  KCONFIG:=CONFIG_BOOKE_WDT
+  FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/booke_wdt.ko
+  AUTOLOAD:=$(call AutoLoad,50,booke_wdt)
+endef
+
+define KernelPackage/booke-wdt/description
+  Kernel module for PowerPC Book-E Watchdog Timer.
+endef
+
+$(eval $(call KernelPackage,booke-wdt))
\ No newline at end of file
diff --git a/target/linux/mpc85xx/profiles/100-mpc854x.mk 
b/target/linux/mpc85xx/profiles/100-mpc854x.mk
index dd2d396..3793a66 100644
--- a/target/linux/mpc85xx/profiles/100-mpc854x.mk
+++ b/target/linux/mpc85xx/profiles/100-mpc854x.mk
@@ -7,7 +7,7 @@
 
 define Profile/mpc854x
   NAME:=MPC854x (default)
-  PACKAGES:=
+  PACKAGES:=kmod-booke-wdt
 endef
 
 define Profile/mpc8548/Description
diff --git a/target/linux/mpc85xx/profiles/200-p1010rdb.mk 
b/target/linux/mpc85xx/profiles/200-p1010rdb.mk
index fcc2d4a..9d67080 100644
--- a/target/linux/mpc85xx/profiles/200-p1010rdb.mk
+++ b/target/linux/mpc85xx/profiles/200-p1010rdb.mk
@@ -7,7 +7,7 @@
 
 define Profile/p1010rdb
   NAME:=Freescael P1010RDB Reference Board
-  PACKAGES:=
+  PACKAGES:=kmod-booke-wdt
 endef
 
 define Profile/p1010rdb/Description
-- 
1.7.4.1

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to