fsl_dcu_drm_fbdev.c 638 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright 2015 Freescale Semiconductor, Inc.
  3. *
  4. * Freescale DCU drm device driver
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. */
  11. #include <drm/drmP.h>
  12. #include <drm/drm_fb_cma_helper.h>
  13. #include "fsl_dcu_drm_drv.h"
  14. /* initialize fbdev helper */
  15. void fsl_dcu_fbdev_init(struct drm_device *dev)
  16. {
  17. struct fsl_dcu_drm_device *fsl_dev = dev_get_drvdata(dev->dev);
  18. fsl_dev->fbdev = drm_fbdev_cma_init(dev, 24, 1, 1);
  19. }