diff options
author | Tang Yuantian <Yuantian.Tang@freescale.com> | 2014-11-21 11:17:15 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-12-11 09:41:18 -0800 |
commit | a7787b78503a2c67fe02f1fcdd995fb6f3830f4b (patch) | |
tree | 26184f7b53fe7c7771f9de0a3505ece5054fa543 /board/freescale/common/sleep.h | |
parent | da5ce448c731321ba8cad5502a35c669b5e1bf8c (diff) | |
download | u-boot-imx-a7787b78503a2c67fe02f1fcdd995fb6f3830f4b.zip u-boot-imx-a7787b78503a2c67fe02f1fcdd995fb6f3830f4b.tar.gz u-boot-imx-a7787b78503a2c67fe02f1fcdd995fb6f3830f4b.tar.bz2 |
fsl/sleep: updated the deep sleep framework for QorIQ platforms
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>
Diffstat (limited to 'board/freescale/common/sleep.h')
-rw-r--r-- | board/freescale/common/sleep.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/board/freescale/common/sleep.h b/board/freescale/common/sleep.h new file mode 100644 index 0000000..c26c542 --- /dev/null +++ b/board/freescale/common/sleep.h @@ -0,0 +1,21 @@ +/* + * 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 |