Newer
Older
barebox / arch / arm / boards / zii-imx8mq-dev / board.c
@Andrey Smirnov Andrey Smirnov on 11 Feb 2019 527 bytes ARM: i.MX: Add support for ZII i.MX8MQ based devices
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2019 Zodiac Inflight Innovation
 * Author: Andrey Smirnov <andrew.smirnov@gmail.com>
 */

#include <common.h>
#include <init.h>
#include <asm/memory.h>
#include <linux/sizes.h>
#include <mach/bbu.h>

static int zii_imx8mq_dev_init(void)
{
	if (!of_machine_is_compatible("zii,imx8mq-ultra"))
		return 0;

	barebox_set_hostname("imx8mq-zii-rdu3");

	imx8mq_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc0", 0);

	return 0;
}
device_initcall(zii_imx8mq_dev_init);