]> Git Repo - J-u-boot.git/blame - drivers/demo/demo-pdata.c
video: orisetech_otm8009a: fill characteristics of DSI data link
[J-u-boot.git] / drivers / demo / demo-pdata.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
39f7611f
SG
2/*
3 * Copyright (c) 2013 Google, Inc
39f7611f
SG
4 */
5
6#include <common.h>
7#include <dm.h>
8#include <dm-demo.h>
9
10static const struct dm_demo_pdata red_square = {
11 .colour = "red",
12 .sides = 4.
13};
14static const struct dm_demo_pdata green_triangle = {
15 .colour = "green",
16 .sides = 3.
17};
18static const struct dm_demo_pdata yellow_hexagon = {
19 .colour = "yellow",
20 .sides = 6.
21};
22
23U_BOOT_DEVICE(demo0) = {
24 .name = "demo_shape_drv",
25 .platdata = &red_square,
26};
27
28U_BOOT_DEVICE(demo1) = {
29 .name = "demo_simple_drv",
30 .platdata = &red_square,
31};
32
33U_BOOT_DEVICE(demo2) = {
34 .name = "demo_shape_drv",
35 .platdata = &green_triangle,
36};
37
38U_BOOT_DEVICE(demo3) = {
39 .name = "demo_simple_drv",
40 .platdata = &yellow_hexagon,
41};
42
43U_BOOT_DEVICE(demo4) = {
44 .name = "demo_shape_drv",
45 .platdata = &yellow_hexagon,
46};
This page took 0.314454 seconds and 4 git commands to generate.