/* * omap2-restart.c - code common to all OMAP2xxx machines. * * Copyright (C) 2012 Texas Instruments * Paul Walmsley * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> #include <linux/io.h> #include "soc.h" #include "common.h" #include "prm.h" /* * reset_virt_prcm_set_ck, reset_sys_ck: pointers to the virt_prcm_set * clock and the sys_ck. Used during the reset process */ static struct clk *reset_virt_prcm_set_ck, *reset_sys_ck; /* Reboot handling */ /** * omap2xxx_restart - Set DPLL to bypass mode for reboot to work * * Set the DPLL to bypass so that reboot completes successfully. No * return value. */
void omap2xxx_restart(enum reboot_mode mode, const char *cmd) { u32 rate; rate = clk_get_rate(reset_sys_ck); clk_set_rate(reset_virt_prcm_set_ck, rate); /* XXX Should save the cmd argument for use after the reboot */ omap_prm_reset_system(); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Walmsley | 32 | 91.43% | 1 | 33.33% |
Robin Holt | 2 | 5.71% | 1 | 33.33% |
Tero Kristo | 1 | 2.86% | 1 | 33.33% |
Total | 35 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Walmsley | 52 | 100.00% | 1 | 100.00% |
Total | 52 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Walmsley | 119 | 93.70% | 1 | 20.00% |
Tony Lindgren | 4 | 3.15% | 2 | 40.00% |
Tero Kristo | 2 | 1.57% | 1 | 20.00% |
Robin Holt | 2 | 1.57% | 1 | 20.00% |
Total | 127 | 100.00% | 5 | 100.00% |