h_ro

omap4_dss

Mar 26th, 2022
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. Minimal dummy driver:
  2. ```
  3. #include <dm.h>
  4. #include <video.h>
  5.  
  6. static int omap4_dss_bind(struct udevice *dev)
  7. {
  8. struct video_uc_plat *uc_plat = dev_get_uclass_plat(dev);
  9.  
  10. printf("==============%s===========\n", __func__);
  11.  
  12. uc_plat->size = 1024 * 600 * sizeof(u16);
  13. uc_plat->align = 0x1000;
  14.  
  15. printf("%s: size: %x, align: %x\n", __func__, uc_plat->size, uc_plat->align);
  16. return 0;
  17. }
  18.  
  19. static const struct udevice_id omap4_dss_ids[] = {
  20. { .compatible = "ti,omap4-dss" },
  21. { }
  22. };
  23.  
  24. U_BOOT_DRIVER(omap4_dss) = {
  25. .name = "omap4_dss",
  26. .id = UCLASS_VIDEO,
  27. .of_match = omap4_dss_ids,
  28. .bind = omap4_dss_bind,
  29. };
  30. ```
  31.  
  32. and its output on Pandaboard ES:
  33. ```
  34. U-Boot SPL 2022.04-rc4-00080-g01f348774f-dirty (Mar 26 2022 - 13:00:49 -0700)
  35. OMAP4460-GP ES1.1
  36. Trying to boot from MMC1
  37. Expected image is not found. Trying to start U-boot
  38.  
  39.  
  40. U-Boot 2022.04-rc4-00080-g01f348774f-dirty (Mar 26 2022 - 13:00:49 -0700)
  41.  
  42. CPU : OMAP4460-GP ES1.1
  43. Model: TI OMAP4 PandaBoard
  44. Board: OMAP4 Panda
  45. I2C: ready
  46. DRAM: ========STARTING VIDEO_RESERVE(40309de4)============
  47. dev: 00000000
  48. Setting addrp to PCI_DEFAULT_FB_SIZE: 0
  49. Video frame buffers from bfff0000 to bfff0000
  50. 1 GiB
  51. ==============omap4_dss_bind===========
  52. omap4_dss_bind: size: 12c000, align: 1000
  53. Video device 'dss@0' cannot allocate frame buffer memory -ensure the device is set up before relocation
  54. Core: 165 devices, 8 uclasses, devicetree: separate
  55. MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
  56. Loading Environment from FAT... Unable to use mmc 0:1...
  57. Net: No ethernet found.
  58. Hit any key to stop autoboot: 0
  59. =>
  60. ```
Advertisement
Add Comment
Please, Sign In to add comment