Skip to contentSkip to conversation

sh: Add save/restore sleep code for BSC/DBSC

PATCH New Magnus Damm 1 participant 1 message Oct 14, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/7 sh: Add save/restore sleep code for BSC/DBSC

From: Magnus Damm <[email protected]>

Add experimental restore/save code for the BSC and DBSC. Only CS0 and the DBSC are handled at this point. The DBSC really needs board specific parameters to work correctly so we should tie in this as board-specific code somehow.

---

 arch/sh/include/asm/suspend.h       |    1 
 arch/sh/kernel/cpu/shmobile/sleep.S |  216 ++++++++++++++++++++++++++++++++++-
 2 files changed, 215 insertions(+), 2 deletions(-)
arch/sh/include/asm/suspend.h +1 -0
@@ -28,5 +28,6 @@ static inline void sh_mobile_setup_cpuid
 #define SUSP_SH_USTANDBY	(1 << 3) /* SH-Mobile U-standby mode */
 #define SUSP_SH_SF		(1 << 4) /* Enable self-refresh */
 #define SUSP_SH_MMU		(1 << 5) /* Save/Restore MMU */
+#define SUSP_SH_BSC		(1 << 6) /* Save/Restore BSC */
 
 #endif /* _ASM_SH_SUSPEND_H */
arch/sh/kernel/cpu/shmobile/sleep.S +214 -2

240 lines not on this page · raw message