Advertisement
playfulgod

Untitled

Sep 4th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. static void set_dload_mode(int on)
  2. {
  3. if (dload_mode_addr) {
  4. #ifdef CONFIG_LGE_HIDDEN_RESET
  5. /* If dload magic is set, rpm booting is skipped by bootloader
  6. * Thus, skip dload magic during hreset_enable
  7. */
  8. if (on && hreset_enable && restart_mode != RESTART_DLOAD)
  9. goto skip_dload_magic;
  10. #endif
  11. __raw_writel(on ? 0xE47B337D : 0, dload_mode_addr);
  12. __raw_writel(on ? 0xCE14091A : 0,
  13. dload_mode_addr + sizeof(unsigned int));
  14. #ifdef CONFIG_LGE_HIDDEN_RESET
  15. skip_dload_magic:
  16. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement