Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Freescale i.MX28 SPL functions |
| 4 | * |
| 5 | * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com> |
| 6 | * on behalf of DENX Software Engineering GmbH |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __M28_INIT_H__ |
| 10 | #define __M28_INIT_H__ |
| 11 | |
| 12 | void early_delay(int delay); |
| 13 | |
Otavio Salvador | f930ea6 | 2012-08-05 09:05:32 +0000 | [diff] [blame] | 14 | void mxs_power_init(void); |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 15 | |
Otavio Salvador | 8ca9adf | 2013-02-23 02:43:04 +0000 | [diff] [blame] | 16 | #ifdef CONFIG_SPL_MXS_PSWITCH_WAIT |
Otavio Salvador | f930ea6 | 2012-08-05 09:05:32 +0000 | [diff] [blame] | 17 | void mxs_power_wait_pswitch(void); |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 18 | #else |
Otavio Salvador | f930ea6 | 2012-08-05 09:05:32 +0000 | [diff] [blame] | 19 | static inline void mxs_power_wait_pswitch(void) { } |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 20 | #endif |
| 21 | |
Otavio Salvador | f930ea6 | 2012-08-05 09:05:32 +0000 | [diff] [blame] | 22 | void mxs_mem_init(void); |
| 23 | uint32_t mxs_mem_get_size(void); |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 24 | |
Otavio Salvador | f930ea6 | 2012-08-05 09:05:32 +0000 | [diff] [blame] | 25 | void mxs_lradc_init(void); |
| 26 | void mxs_lradc_enable_batt_measurement(void); |
Marek Vasut | 80e99eb | 2012-05-01 11:09:49 +0000 | [diff] [blame] | 27 | |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 28 | #endif /* __M28_INIT_H__ */ |