Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void set_dload_mode(int on)
- {
- if (dload_mode_addr) {
- #ifdef CONFIG_LGE_HIDDEN_RESET
- /* If dload magic is set, rpm booting is skipped by bootloader
- * Thus, skip dload magic during hreset_enable
- */
- if (on && hreset_enable && restart_mode != RESTART_DLOAD)
- goto skip_dload_magic;
- #endif
- __raw_writel(on ? 0xE47B337D : 0, dload_mode_addr);
- __raw_writel(on ? 0xCE14091A : 0,
- dload_mode_addr + sizeof(unsigned int));
- #ifdef CONFIG_LGE_HIDDEN_RESET
- skip_dload_magic:
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement