1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (c) 2013 Google, Inc
4  */
5 
6 #include <dm.h>
7 #include <dm-demo.h>
8 
9 static const struct dm_demo_pdata red_square = {
10 	.colour = "red",
11 	.sides = 4.
12 };
13 static const struct dm_demo_pdata green_triangle = {
14 	.colour = "green",
15 	.sides = 3.
16 };
17 static const struct dm_demo_pdata yellow_hexagon = {
18 	.colour = "yellow",
19 	.sides = 6.
20 };
21 
22 U_BOOT_DRVINFO(demo0) = {
23 	.name = "demo_shape_drv",
24 	.plat = &red_square,
25 };
26 
27 U_BOOT_DRVINFO(demo1) = {
28 	.name = "demo_simple_drv",
29 	.plat = &red_square,
30 };
31 
32 U_BOOT_DRVINFO(demo2) = {
33 	.name = "demo_shape_drv",
34 	.plat = &green_triangle,
35 };
36 
37 U_BOOT_DRVINFO(demo3) = {
38 	.name = "demo_simple_drv",
39 	.plat = &yellow_hexagon,
40 };
41 
42 U_BOOT_DRVINFO(demo4) = {
43 	.name = "demo_shape_drv",
44 	.plat = &yellow_hexagon,
45 };
46