2014-02-26 22:59:18 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013 Google, Inc
|
|
|
|
*
|
|
|
|
* (C) Copyright 2012
|
|
|
|
* Pavel Herrmann <morpheus.ibis@gmail.com>
|
|
|
|
* Marek Vasut <marex@denx.de>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DM_PLATDATA_H
|
|
|
|
#define _DM_PLATDATA_H
|
|
|
|
|
2014-10-07 05:49:13 +00:00
|
|
|
#include <linker_lists.h>
|
|
|
|
|
2014-07-23 12:55:17 +00:00
|
|
|
/**
|
|
|
|
* struct driver_info - Information required to instantiate a device
|
|
|
|
*
|
2014-09-28 13:52:24 +00:00
|
|
|
* @name: Driver name
|
2014-07-23 12:55:17 +00:00
|
|
|
* @platdata: Driver-specific platform data
|
|
|
|
*/
|
2014-02-26 22:59:18 +00:00
|
|
|
struct driver_info {
|
2014-07-23 12:55:17 +00:00
|
|
|
const char *name;
|
|
|
|
const void *platdata;
|
2014-02-26 22:59:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define U_BOOT_DEVICE(__name) \
|
|
|
|
ll_entry_declare(struct driver_info, __name, driver_info)
|
|
|
|
|
2014-10-02 01:57:21 +00:00
|
|
|
/* Declare a list of devices. The argument is a driver_info[] array */
|
|
|
|
#define U_BOOT_DEVICES(__name) \
|
|
|
|
ll_entry_declare_list(struct driver_info, __name, driver_info)
|
|
|
|
|
2014-02-26 22:59:18 +00:00
|
|
|
#endif
|