Created
February 23, 2016 15:24
-
-
Save aep/71e6c7ee768ae32f3726 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watchdog: wdt@2004c000 { | |
compatible = "rockchip,watch dog"; | |
reg = <0xff800000 0x100>; | |
clocks = <&pclk_pd_alive>; | |
clock-names = "pclk_wdt"; | |
interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; | |
rockchip,irq = <0>; | |
rockchip,timeout = <2>; | |
rockchip,atboot = <1>; | |
rockchip,debug = <0>; | |
status = "okay"; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DT_MACHINE_START(RK3288_DT, "Rockchip RK3288 (Flattened Device Tree)") | |
.smp = smp_ops(rockchip_smp_ops), | |
.map_io = rk3288_dt_map_io, | |
.init_time = rk3288_dt_init_timer, | |
.dt_compat = rk3288_dt_compat, | |
.init_late = rk3288_init_late, | |
.reserve = rk3288_reserve, | |
.restart = rk3288_restart, | |
MACHINE_END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static const struct of_device_id of_rk29_wdt_match[] = { | |
{ .compatible = "rockchip,watch dog" } | |
}; | |
static struct platform_driver rk29_wdt_driver = { | |
.probe = rk29_wdt_probe, | |
[..] | |
.of_match_table = of_rk29_wdt_match, | |
.name = "rk29-wdt", | |
}, | |
}; | |
static int __init watchdog_init(void) | |
{ | |
printk("watchdog_init\n"); | |
return platform_driver_register(&rk29_wdt_driver); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment