Re: SSD1306 OLED driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Den 12.01.2015 10:44, skrev Ssagarr Patil:
I got it compiled against my kernel, but not sure how to add it in my board file (My platform
has no DT support). Should it be registered as spi slave device , I tried adding the following,

     {
         .modalias    = "fb_ssd1306",
         .irq        = -1,
         .max_speed_hz    = 16000000,
         .bus_num    = 2,
         .chip_select    = 0,
         .mode        = SPI_MODE_0,
     },

But nothing came up how do I register ? any quick pointer would be helpful.

Copy/symlink fbtft.h to include/fbtft.h and do it like this: https://github.com/notro/fbtft/wiki/Build-kernel-and-fbtft-drivers#configure-devices

Or use the fbtft_device module:
https://github.com/notro/fbtft/wiki/fbtft_device
ssd1306 entry: https://github.com/notro/fbtft/blob/master/fbtft_device.c#L272
The values can be set/changed using module arguments.

--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Tourism]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux