Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/: st7701 LCD driver with MIPI #6148

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
7505655
os/:amebasmart and rtl8730e code changes
namanjain7 Apr 17, 2024
2fd0807
os/:add mipi driver support
namanjain7 Apr 17, 2024
c094417
os/:add support for st7701 lcd driver
namanjain7 Apr 17, 2024
28a6f4f
apps/examples/lcd_test/: add color change test of st7701 lcd in test app
namanjain7 Apr 17, 2024
386a8dd
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 Apr 19, 2024
aad06af
os/: Remove return, fix function names and remove detach call
namanjain7 Apr 19, 2024
912e97f
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 Apr 25, 2024
2a99b0e
os/: add hv lcdc isr, add amebasmart prefix to functions in amebasmar…
namanjain7 Apr 25, 2024
6270675
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 May 1, 2024
4da26fd
os/: Remove code repetition, mipi_dsi_device.c driver register
namanjain7 May 1, 2024
f5ff4bc
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 May 2, 2024
8d3693d
os/:Change typo and add polling
namanjain7 May 2, 2024
047645f
os/arch/arm/src/amebasmart/: remove is_transfer_completed function
namanjain7 May 2, 2024
468851d
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 May 6, 2024
371cdef
os/: Add check for transfer failure and name change for config and re…
namanjain7 May 6, 2024
0d2d823
os/drivers/lcd/: Add CONFIG_LCD_ST7701 flag in make.defs
namanjain7 May 8, 2024
ee61dda
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 May 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions apps/examples/lcd_test/example_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static void test_put_area(void)
fd = open(port, O_RDWR | O_SYNC, 0666);
if (fd < 0) {
printf("ERROR: Failed to open lcd port : %s error:%d\n", port, fd);
return -1;
return;
}
struct fb_videoinfo_s vinfo;
ioctl(fd, LCDDEVIO_GETVIDEOINFO, (unsigned long)(uintptr_t)&vinfo);
Expand All @@ -140,7 +140,7 @@ static void test_put_run(void)
fd = open(port, O_RDWR | O_SYNC, 0666);
if (fd < 0) {
printf("ERROR: Failed to open lcd port : %s error:%d\n", port, fd);
return -1;
return;
}
struct lcddev_run_s run;
run.planeno = 0;
Expand All @@ -149,8 +149,8 @@ static void test_put_run(void)
run.npixels = NOPIXELS;

uint8_t spi_data[2 * NOPIXELS + 1];
run.data = &spi_data;
for (i = 0; i <= (NOPIXELS * 2); i += 2) {
run.data = spi_data;
for (i = 0; i < (NOPIXELS * 2); i += 2) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed the logical error. It will go out of bound of array.

spi_data[i + 1] = WHITE & 0X00FF;
spi_data[i] = (WHITE & 0xFF00) >> 8;
}
Expand All @@ -167,7 +167,7 @@ static void test_clear(void)
fd = open(port, O_RDWR | O_SYNC, 0666);
if (fd < 0) {
printf("ERROR: Failed to open lcd port : %s error:%d\n", port, fd);
return -1;
return;
}
struct fb_videoinfo_s vinfo;
ioctl(fd, LCDDEVIO_GETVIDEOINFO, (unsigned long)(uintptr_t)&vinfo);
Expand All @@ -187,7 +187,7 @@ static void test_init(void)
fd = open(port, O_RDWR | O_SYNC, 0666);
if (fd < 0) {
printf("ERROR: Failed to open lcd port : %s error:%d\n", port, fd);
return -1;
return;
}
ioctl(fd, LCDDEVIO_INIT, &ret);
close(fd);
Expand All @@ -202,7 +202,7 @@ static void test_orientation(void)
fd = open(port, O_RDWR | O_SYNC, 0666);
if (fd < 0) {
printf("ERROR: Failed to open lcd port : %s error:%d\n", port, fd);
return -1;
return;
}
ioctl(fd, LCDDEVIO_SETORIENTATION, LCD_RLANDSCAPE);

Expand Down Expand Up @@ -257,4 +257,5 @@ int lcd_test_main(int argc, char *argv[])
sleep(1);
count++;
}
return 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this due to warning message during build.

}
3 changes: 3 additions & 0 deletions os/arch/arm/src/amebasmart/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ EXTRA_LIBS += ${TOPDIR}/board/rtl8730e/src/libs/lib_btgap.a
#endif
endif

ifeq ($(CONFIG_AMEBASMART_MIPI),y)
CHIP_CSRCS += amebasmart_mipi.c
endif
ifeq ($(CONFIG_AMEBASMART_TRUSTZONE),y)
#CHIP_CSRCS += amebasmart_nsc.c

Expand Down
Loading