Lines Matching +full:platform +full:- +full:name

1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@gmail.com>
8 * Simple-Framebuffer support
9 * Create a platform-device for any available boot framebuffer. The
10 * simple-framebuffer platform device is already available on DT systems, so
12 * platform device compatible with the "simple-framebuffer" DT object. If
14 * "vesa-framebuffer", "efi-framebuffer" or "platform-framebuffer" device and
16 * to pick these devices up without messing with simple-framebuffer drivers.
19 * If CONFIG_SYSFB_SIMPLEFB is not selected, never register "simple-framebuffer"
20 * platform devices, but only use legacy framebuffer devices for
23 * TODO: We set the dev_id field of all platform-devices to 0. This allows
56 * sysfb_disable() - disable the Generic System Framebuffers support
57 * @dev: the device to check if non-NULL
83 * sysfb_handles_screen_info() - reports if sysfb handles the global screen_info
134 return ERR_PTR(-ENODEV); in sysfb_parent_dev()
136 return &pdev->dev; in sysfb_parent_dev()
147 const char *name; in sysfb_init() local
165 /* try to create a simple-framebuffer device */ in sysfb_init()
174 if (si->orig_video_isVGA == VIDEO_TYPE_EFI) in sysfb_init()
175 name = "efi-framebuffer"; in sysfb_init()
176 else if (si->orig_video_isVGA == VIDEO_TYPE_VLFB) in sysfb_init()
177 name = "vesa-framebuffer"; in sysfb_init()
178 else if (si->orig_video_isVGA == VIDEO_TYPE_VGAC) in sysfb_init()
179 name = "vga-framebuffer"; in sysfb_init()
180 else if (si->orig_video_isVGA == VIDEO_TYPE_EGAC) in sysfb_init()
181 name = "ega-framebuffer"; in sysfb_init()
183 name = "platform-framebuffer"; in sysfb_init()
185 pd = platform_device_alloc(name, 0); in sysfb_init()
187 ret = -ENOMEM; in sysfb_init()
191 pd->dev.parent = parent; in sysfb_init()