Skip to content

ssd1306: simple driver with user application - #52

Open
sergiiromantsov wants to merge 1 commit into
Kernel-GL-HRK:Sergii.Romantsovfrom
sergiiromantsov:ssd1306
Open

ssd1306: simple driver with user application#52
sergiiromantsov wants to merge 1 commit into
Kernel-GL-HRK:Sergii.Romantsovfrom
sergiiromantsov:ssd1306

Conversation

@sergiiromantsov

Copy link
Copy Markdown

Added base implemantaion of lcd-driver.
Added slightly improved user-aplication: avoided redundant redrawing.
Added sample of uEnv.txt that allows to use i2c1 for ssd1306.
Rude disabling of hdmi in device tree: for some reason was created
fb0 and no interruption were received for fb1 (ssd1306) and cape_disable doesn't work for that purpose.

Added base implemantaion of lcd-driver.
Added slightly improved user-aplication: avoided redundant redrawing.
Added sample of uEnv.txt that allows to use i2c1 for ssd1306.
Rude disabling of hdmi in device tree: for some reason was created
fb0 and no interruption were received for fb1 (ssd1306).
Comment thread sandbox/ssd1306/ssd1306.c
struct ssd1306_data *lcd =
container_of(work, struct ssd1306_data, display_update_ws);
ssd1307fb_update_display(lcd);
//ssd1306_UpdateScreen(lcd);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unnesessary comments/lines

Comment thread sandbox/ssd1306/ssd1306.c

if (copy_from_user(dst, buf, count)) {
pr_err("%s copy_from_user", __FUNCTION__);
//return -EFAULT;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fb_sys_write method could be called there

Comment thread sandbox/ssd1306/ssd1306.c
return -ENOMEM;
}

vmem = lcd_vmem;//&ssd1306_Buffer[0];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix checkpatch issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants