2018-07-27 12:10:00 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 BayLibre, SAS
|
|
|
|
* Author: Neil Armstrong <narmstrong@baylibre.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MESON_BOOT_H__
|
|
|
|
#define __MESON_BOOT_H__
|
|
|
|
|
2020-11-27 16:28:21 +00:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2018-07-27 12:10:00 +00:00
|
|
|
/* Boot device */
|
|
|
|
#define BOOT_DEVICE_RESERVED 0
|
|
|
|
#define BOOT_DEVICE_EMMC 1
|
|
|
|
#define BOOT_DEVICE_NAND 2
|
|
|
|
#define BOOT_DEVICE_SPI 3
|
|
|
|
#define BOOT_DEVICE_SD 4
|
|
|
|
#define BOOT_DEVICE_USB 5
|
|
|
|
|
|
|
|
int meson_get_boot_device(void);
|
|
|
|
|
2020-11-27 16:28:21 +00:00
|
|
|
int meson_get_soc_rev(char *buff, size_t buff_len);
|
|
|
|
|
2018-07-27 12:10:00 +00:00
|
|
|
#endif /* __MESON_BOOT_H__ */
|