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