2 * Copyright 2015 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
13 static struct supported_combination combos[2] = {
14 {DRM_FORMAT_ARGB8888, DRM_FORMAT_MOD_NONE,
15 BO_USE_CURSOR | BO_USE_LINEAR | BO_USE_RENDERING | BO_USE_SW_READ_OFTEN |
16 BO_USE_SW_WRITE_OFTEN | BO_USE_SW_READ_RARELY | BO_USE_SW_WRITE_RARELY},
17 {DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_NONE,
18 BO_USE_CURSOR | BO_USE_LINEAR | BO_USE_RENDERING | BO_USE_SW_READ_OFTEN |
19 BO_USE_SW_WRITE_OFTEN | BO_USE_SW_READ_RARELY | BO_USE_SW_WRITE_RARELY},
22 static int marvell_init(struct driver *drv)
24 drv_insert_combinations(drv, combos, ARRAY_SIZE(combos));
25 return drv_add_kms_flags(drv);
28 struct backend backend_marvell =
32 .bo_create = drv_dumb_bo_create,
33 .bo_destroy = drv_dumb_bo_destroy,
34 .bo_map = drv_dumb_bo_map,