yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 1 | /*
|
| 2 | * ZTE ddr driver
|
| 3 | *
|
| 4 | * Copyright (C) 2013 ZTE Ltd.
|
| 5 | * by tsp
|
| 6 | *
|
| 7 | */
|
| 8 | #ifdef CONFIG_ZX29_WDT_TEST_MODULE
|
| 9 |
|
| 10 | #include <linux/module.h>
|
| 11 | #include <linux/kernel.h>
|
| 12 | #include <linux/init.h>
|
| 13 | #include <linux/spinlock.h>
|
| 14 | #include <linux/interrupt.h>
|
| 15 | #include <linux/types.h>
|
| 16 | #include <linux/sched.h>
|
| 17 | #include <linux/io.h>
|
| 18 | #include <mach/iomap.h>
|
| 19 | #include <linux/slab.h>
|
| 20 | #include <linux/syscalls.h>
|
| 21 | #include <asm/uaccess.h>
|
| 22 | #include <linux/zx_soft_wdt.h>
|
| 23 | #include <linux/miscdevice.h> /* For handling misc devices */
|
| 24 | #include <linux/soc/zte/rpm/rpmsg.h> /* For icp operation*/
|
| 25 |
|
| 26 | extern void zx_wdt_test(u32 core_id);
|
| 27 |
|
| 28 | static void __init zx_m0wdttest_init(void)
|
| 29 | {
|
| 30 | //m0 wdt test
|
| 31 | zx_wdt_test(0);
|
| 32 |
|
| 33 | }
|
| 34 |
|
| 35 | static void __exit zx_m0wdttest_exit(void)
|
| 36 | {
|
| 37 | //misc_deregister(&zx_ddr_miscdev);
|
| 38 | }
|
| 39 |
|
| 40 |
|
| 41 | module_init(zx_m0wdttest_init);
|
| 42 | module_exit(zx_m0wdttest_exit);
|
| 43 | #endif
|