[Feature][S300AI][task-view-1884][module] Hardware removal of 32k crystal, software adaptation modifications
Change-Id: I4cb16b386813bab6bdddb024eed0139276df2982
diff --git a/lynq/S300AI/ap/project/zx297520v3/prj_cpe/build/config.mk b/lynq/S300AI/ap/project/zx297520v3/prj_cpe/build/config.mk
index 20e8336..160a13a 100755
--- a/lynq/S300AI/ap/project/zx297520v3/prj_cpe/build/config.mk
+++ b/lynq/S300AI/ap/project/zx297520v3/prj_cpe/build/config.mk
@@ -45,6 +45,7 @@
CUSTOM_MACRO += -DPRODUCT_PHONE=1
CUSTOM_MACRO += -DPRODUCT_DATACARD=2
CUSTOM_MACRO += -DPRODUCT_TYPE=PRODUCT_MIFI_CPE
+CUSTOM_MACRO += -DPRODUCT_NOT_USE_RTC
ifeq ($(CONFIG_MMI_LCD),no)
CUSTOM_MACRO += -DDISABLE_LCD
diff --git a/lynq/S300AI/ap/project/zx297520v3/prj_cpe/config/normal/config.linux b/lynq/S300AI/ap/project/zx297520v3/prj_cpe/config/normal/config.linux
index 67d7ea1..d7c03fb 100755
--- a/lynq/S300AI/ap/project/zx297520v3/prj_cpe/config/normal/config.linux
+++ b/lynq/S300AI/ap/project/zx297520v3/prj_cpe/config/normal/config.linux
@@ -1416,6 +1416,7 @@
# CONFIG_THERMAL is not set
CONFIG_WATCHDOG=y
CONFIG_WATCHDOG_CORE=y
+CONFIG_WATCHDOG_RESTART=y
# CONFIG_WATCHDOG_NOWAYOUT is not set
#
diff --git a/lynq/S300AI/ap/project/zx297520v3/prj_cpe/config/recovery/config.linux b/lynq/S300AI/ap/project/zx297520v3/prj_cpe/config/recovery/config.linux
index 9652c27..d468d87 100755
--- a/lynq/S300AI/ap/project/zx297520v3/prj_cpe/config/recovery/config.linux
+++ b/lynq/S300AI/ap/project/zx297520v3/prj_cpe/config/recovery/config.linux
@@ -792,7 +792,10 @@
# CONFIG_CHARGER_SMB347 is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
-# CONFIG_WATCHDOG is not set
+# CONFIG_WATCHDOG is set
+CONFIG_WATCHDOG_RESTART=y
+CONFIG_WATCHDOG=y
+CONFIG_ZX29_WATCHDOG=y
CONFIG_SSB_POSSIBLE=y
#
diff --git a/lynq/S300AI/ap/project/zx297520v3/prj_cpe/fs/normal/rootfs/etc/rc b/lynq/S300AI/ap/project/zx297520v3/prj_cpe/fs/normal/rootfs/etc/rc
index 00d7aef..2ddf7cd 100755
--- a/lynq/S300AI/ap/project/zx297520v3/prj_cpe/fs/normal/rootfs/etc/rc
+++ b/lynq/S300AI/ap/project/zx297520v3/prj_cpe/fs/normal/rootfs/etc/rc
@@ -217,7 +217,7 @@
chmod 640 /etc/shadow
#mkdir -p /system/bin
#ln -s /bin/busybox /system/bin/sh
-
+echo 123 > /sys/power/wake_lock
# apps start
#internet.sh
#zte_mainctrl &
diff --git a/lynq/S300AI/boot/prj/zx297520v3/cpe/config/uboot/include/config_defaults.h b/lynq/S300AI/boot/prj/zx297520v3/cpe/config/uboot/include/config_defaults.h
new file mode 100755
index 0000000..7c2cfcb
--- /dev/null
+++ b/lynq/S300AI/boot/prj/zx297520v3/cpe/config/uboot/include/config_defaults.h
@@ -0,0 +1,26 @@
+/*
+ * config_defaults.h - sane defaults for everyone
+ *
+ * Copyright (c) 2009 Analog Devices Inc.
+ *
+ * Licensed under the GPL-2 or later.
+ */
+
+#ifndef _CONFIG_DEFAULTS_H_
+#define _CONFIG_DEFAULTS_H_
+
+#define ZX_RM_WDT_RESTART 1
+#define CONFIG_I2S0_TO_32K
+
+/* Support bootm-ing different OSes */
+#define CONFIG_BOOTM_LINUX 1
+#define CONFIG_GZIP 1
+#define CONFIG_ZLIB 1
+#define ZX_RM_WDT_RESTART 0
+
+#define CONFIG_JFFS2_LZO
+#define CONFIG_SYS_JFFS2_SORT_FRAGMENTS
+#define CONFIG_SYS_JFFS2_SORT_FRAGMENTS_DIR
+#define CONFIG_ZX297520V3E_CPE
+
+#endif