blob: 73711991626bf9335cdf2a71adc742d635a7d799 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glass63b17572014-02-26 15:59:23 -07002/*
3 * Copyright (c) 2013 Google, Inc
Simon Glass63b17572014-02-26 15:59:23 -07004 */
5
Simon Glass63b17572014-02-26 15:59:23 -07006#include <dm.h>
7#include <dm-demo.h>
8
9static const struct dm_demo_pdata red_square = {
10 .colour = "red",
11 .sides = 4.
12};
13static const struct dm_demo_pdata green_triangle = {
14 .colour = "green",
15 .sides = 3.
16};
17static const struct dm_demo_pdata yellow_hexagon = {
18 .colour = "yellow",
19 .sides = 6.
20};
21
Simon Glass1d8364a2020-12-28 20:34:54 -070022U_BOOT_DRVINFO(demo0) = {
Simon Glass63b17572014-02-26 15:59:23 -070023 .name = "demo_shape_drv",
Simon Glass71fa5b42020-12-03 16:55:18 -070024 .plat = &red_square,
Simon Glass63b17572014-02-26 15:59:23 -070025};
26
Simon Glass1d8364a2020-12-28 20:34:54 -070027U_BOOT_DRVINFO(demo1) = {
Simon Glass63b17572014-02-26 15:59:23 -070028 .name = "demo_simple_drv",
Simon Glass71fa5b42020-12-03 16:55:18 -070029 .plat = &red_square,
Simon Glass63b17572014-02-26 15:59:23 -070030};
31
Simon Glass1d8364a2020-12-28 20:34:54 -070032U_BOOT_DRVINFO(demo2) = {
Simon Glass63b17572014-02-26 15:59:23 -070033 .name = "demo_shape_drv",
Simon Glass71fa5b42020-12-03 16:55:18 -070034 .plat = &green_triangle,
Simon Glass63b17572014-02-26 15:59:23 -070035};
36
Simon Glass1d8364a2020-12-28 20:34:54 -070037U_BOOT_DRVINFO(demo3) = {
Simon Glass63b17572014-02-26 15:59:23 -070038 .name = "demo_simple_drv",
Simon Glass71fa5b42020-12-03 16:55:18 -070039 .plat = &yellow_hexagon,
Simon Glass63b17572014-02-26 15:59:23 -070040};
41
Simon Glass1d8364a2020-12-28 20:34:54 -070042U_BOOT_DRVINFO(demo4) = {
Simon Glass63b17572014-02-26 15:59:23 -070043 .name = "demo_shape_drv",
Simon Glass71fa5b42020-12-03 16:55:18 -070044 .plat = &yellow_hexagon,
Simon Glass63b17572014-02-26 15:59:23 -070045};