blob: 062deb7793f6c01df7b59160c6b9cb504cb4403a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Marek Vasut926227e2011-11-08 23:18:21 +00002/*
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 Vasut926227e2011-11-08 23:18:21 +00007 */
8
9#ifndef __M28_INIT_H__
10#define __M28_INIT_H__
11
12void early_delay(int delay);
13
Otavio Salvadorf930ea62012-08-05 09:05:32 +000014void mxs_power_init(void);
Marek Vasut926227e2011-11-08 23:18:21 +000015
Otavio Salvador8ca9adf2013-02-23 02:43:04 +000016#ifdef CONFIG_SPL_MXS_PSWITCH_WAIT
Otavio Salvadorf930ea62012-08-05 09:05:32 +000017void mxs_power_wait_pswitch(void);
Marek Vasut926227e2011-11-08 23:18:21 +000018#else
Otavio Salvadorf930ea62012-08-05 09:05:32 +000019static inline void mxs_power_wait_pswitch(void) { }
Marek Vasut926227e2011-11-08 23:18:21 +000020#endif
21
Otavio Salvadorf930ea62012-08-05 09:05:32 +000022void mxs_mem_init(void);
23uint32_t mxs_mem_get_size(void);
Marek Vasut926227e2011-11-08 23:18:21 +000024
Otavio Salvadorf930ea62012-08-05 09:05:32 +000025void mxs_lradc_init(void);
26void mxs_lradc_enable_batt_measurement(void);
Marek Vasut80e99eb2012-05-01 11:09:49 +000027
Marek Vasut926227e2011-11-08 23:18:21 +000028#endif /* __M28_INIT_H__ */