blob: 1200ae1ad40a1b5982627655a8795edd8d4606b4 [file] [log] [blame]
Marek Vasut926227e2011-11-08 23:18:21 +00001/*
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 Denkd79de1d2013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Marek Vasut926227e2011-11-08 23:18:21 +00008 */
9
10#ifndef __M28_INIT_H__
11#define __M28_INIT_H__
12
13void early_delay(int delay);
14
Otavio Salvadorf930ea62012-08-05 09:05:32 +000015void mxs_power_init(void);
Marek Vasut926227e2011-11-08 23:18:21 +000016
Otavio Salvador8ca9adf2013-02-23 02:43:04 +000017#ifdef CONFIG_SPL_MXS_PSWITCH_WAIT
Otavio Salvadorf930ea62012-08-05 09:05:32 +000018void mxs_power_wait_pswitch(void);
Marek Vasut926227e2011-11-08 23:18:21 +000019#else
Otavio Salvadorf930ea62012-08-05 09:05:32 +000020static inline void mxs_power_wait_pswitch(void) { }
Marek Vasut926227e2011-11-08 23:18:21 +000021#endif
22
Otavio Salvadorf930ea62012-08-05 09:05:32 +000023void mxs_mem_init(void);
24uint32_t mxs_mem_get_size(void);
Marek Vasut926227e2011-11-08 23:18:21 +000025
Otavio Salvadorf930ea62012-08-05 09:05:32 +000026void mxs_lradc_init(void);
27void mxs_lradc_enable_batt_measurement(void);
Marek Vasut80e99eb2012-05-01 11:09:49 +000028
Marek Vasut926227e2011-11-08 23:18:21 +000029#endif /* __M28_INIT_H__ */