Skip to content

Commit

Permalink
Merge pull request #14 from madmachineio/modify_srceen
Browse files Browse the repository at this point in the history
Modify screen to Atom
  • Loading branch information
andy0808 authored Jul 11, 2020
2 parents d1e3379 + 868329d commit c9eba73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 6 additions & 6 deletions boards/arm/mm_swiftio/mm_swiftio.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
compatible = "lcd,rgb-interface";
width = <800>;
height = <480>;
hsw = <1>;
hfp = <22>;
hbp = <46>;
vsw = <1>;
vfp = <22>;
vbp = <23>;
hsw = <48>;
hfp = <40>;
hbp = <88>;
vsw = <3>;
vfp = <13>;
vbp = <32>;
frame-per-sec = <60>;

port {
Expand Down
8 changes: 6 additions & 2 deletions drivers/kscan/kscan_gt9x.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,12 @@ static int gt9x_init(struct device *dev)
return -EINVAL;
}

if (version[0] != '9' || version[1] != '1' || version[2] != '7' || version[3] != 'S') {
LOG_ERR("GT917S Version no match");
if (version[0] == '9' && version[1] == '1' && version[2] == '7' && version[3] == 'S') {
LOG_INF("Current Device GT917S");
} else if (version[0] == '9' && version[1] == '1' && version[2] == '4' && version[3] == '7') {
LOG_INF("Current Device GT9147");
} else {
LOG_ERR("No support %c%c%c%c", version[0], version[1], version[2], version[3]);
return -EINVAL;
}

Expand Down

0 comments on commit c9eba73

Please sign in to comment.