/* * OMAP1 reset support */ #include <linux/kernel.h> #include <linux/io.h> #include <linux/reboot.h> #include <mach/hardware.h> #include "iomap.h" #include "common.h" /* ARM_SYSST bit shifts related to SoC reset sources */ #define ARM_SYSST_POR_SHIFT 5 #define ARM_SYSST_EXT_RST_SHIFT 4 #define ARM_SYSST_ARM_WDRST_SHIFT 2 #define ARM_SYSST_GLOB_SWRST_SHIFT 1 /* Standardized reset source bits (across all OMAP SoCs) */ #define OMAP_GLOBAL_COLD_RST_SRC_ID_SHIFT 0 #define OMAP_GLOBAL_WARM_RST_SRC_ID_SHIFT 1 #define OMAP_MPU_WD_RST_SRC_ID_SHIFT 3 #define OMAP_EXTWARM_RST_SRC_ID_SHIFT 5
void omap1_restart(enum reboot_mode mode, const char *cmd) { /* * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 * "Global Software Reset Affects Traffic Controller Frequency". */ if (cpu_is_omap5912()) { omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), DPLL_CTL); omap_writew(0x8, ARM_RSTCT1); } omap_writew(1, ARM_RSTCT1); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Russell King | 51 | 96.23% | 2 | 66.67% |
Robin Holt | 2 | 3.77% | 1 | 33.33% |
Total | 53 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Walmsley | 92 | 100.00% | 2 | 100.00% |
Total | 92 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Walmsley | 133 | 66.83% | 3 | 42.86% |
Russell King | 60 | 30.15% | 2 | 28.57% |
Robin Holt | 5 | 2.51% | 1 | 14.29% |
Tony Lindgren | 1 | 0.50% | 1 | 14.29% |
Total | 199 | 100.00% | 7 | 100.00% |