mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 00:21:06 +00:00
a7787b7850
With the introducing of generic board and ARM-based cores, current deep sleep framework doesn't work anymore. This patch will convert the current framework to adapt this change. Basically it does: 1. Converts all the Freescale's DDR driver to support deep sleep. 2. Added basic framework support for ARM-based and PPC-based cores separately. Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
21 lines
419 B
C
21 lines
419 B
C
/*
|
|
* Copyright 2014 Freescale Semiconductor, Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __SLEEP_H
|
|
#define __SLEEP_H
|
|
|
|
#define DCFG_CCSR_CRSTSR_WDRFR (1 << 3)
|
|
#define DDR_BUFF_LEN 128
|
|
|
|
/* determine if it is a wakeup from deep sleep */
|
|
bool is_warm_boot(void);
|
|
|
|
/* disable console output */
|
|
void fsl_dp_disable_console(void);
|
|
|
|
/* clean up everything and jump to kernel */
|
|
int fsl_dp_resume(void);
|
|
#endif
|