Skip to content

Commit

Permalink
amebasmart: Add board revision 5th
Browse files Browse the repository at this point in the history
Add the revised 5th board.
The pin of UART1 has been changed. The ALC1019 I2C port has been changed.

Signed-off-by: eunwoo.nam <eunwoo.nam@samsung.com>
  • Loading branch information
ewoodev committed May 13, 2024
1 parent 31b76b5 commit 29a7219
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/configs/rtl8730e/audio/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ CONFIG_FLASH_SIZE=16777216
CONFIG_FLASH_VSTART=0x8000000
# CONFIG_BOARD_FLASH_8M is not set
CONFIG_BOARD_FLASH_16M=y
CONFIG_RTL8730E_REVISION=0

#
# SPI Flash driver
Expand Down
1 change: 1 addition & 0 deletions build/configs/rtl8730e/flat_apps/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ CONFIG_FLASH_SIZE=16777216
CONFIG_FLASH_VSTART=0x8000000
# CONFIG_BOARD_FLASH_8M is not set
CONFIG_BOARD_FLASH_16M=y
CONFIG_RTL8730E_REVISION=0

#
# SPI Flash driver
Expand Down
1 change: 1 addition & 0 deletions build/configs/rtl8730e/flat_dev/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ CONFIG_FLASH_SIZE=16777216
CONFIG_FLASH_VSTART=0x8000000
# CONFIG_BOARD_FLASH_8M is not set
CONFIG_BOARD_FLASH_16M=y
CONFIG_RTL8730E_REVISION=0

#
# SPI Flash driver
Expand Down
1 change: 1 addition & 0 deletions build/configs/rtl8730e/loadable_apps/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ CONFIG_FLASH_SIZE=16777216
CONFIG_FLASH_VSTART=0x8000000
# CONFIG_BOARD_FLASH_8M is not set
CONFIG_BOARD_FLASH_16M=y
CONFIG_RTL8730E_REVISION=0

#
# SPI Flash driver
Expand Down
1 change: 1 addition & 0 deletions build/configs/rtl8730e/loadable_apps_xip/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ CONFIG_FLASH_SIZE=16777216
CONFIG_FLASH_VSTART=0x8000000
# CONFIG_BOARD_FLASH_8M is not set
CONFIG_BOARD_FLASH_16M=y
CONFIG_RTL8730E_REVISION=0

#
# SPI Flash driver
Expand Down
1 change: 1 addition & 0 deletions build/configs/rtl8730e/loadable_ext/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ CONFIG_FLASH_SIZE=16777216
CONFIG_FLASH_VSTART=0x8000000
# CONFIG_BOARD_FLASH_8M is not set
CONFIG_BOARD_FLASH_16M=y
CONFIG_RTL8730E_REVISION=0

#
# SPI Flash driver
Expand Down
6 changes: 6 additions & 0 deletions os/arch/arm/src/amebasmart/amebasmart_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,14 @@ static struct rtl8730e_up_dev_s g_uart1priv = {
#endif
.baud = CONFIG_UART1_BAUD,
.irq = RTL8730E_UART1_IRQ,

#if CONFIG_RTL8730E_REVISION >= 5
.tx = PA_10,
.rx = PA_9,
#else
.tx = PA_5,
.rx = PA_4,
#endif
.FlowControl = FlowControlNone,
.txint_enable = false,
.rxint_enable = false,
Expand Down
5 changes: 5 additions & 0 deletions os/board/rtl8730e/src/rtl8730e_alc1019.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ extern FAR struct i2s_dev_s *amebasmart_i2s_initialize(uint16_t port);
* Pre-processor Definitions
****************************************************************************/
/* i2c config */
#if CONFIG_RTL8730E_REVISION >= 5
#define ALC1019_I2C_PORT 2
#else
#define ALC1019_I2C_PORT 1
#endif

#define ALC1019_I2C_FREQ 100000
#define ALC1019_I2C_ADDRLEN 7

Expand Down
4 changes: 4 additions & 0 deletions os/board/rtl8730e/src/rtl8730e_st7789.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@
#define CONFIG_LCD_ST7789_SPI_PORT 1
#endif

#if CONFIG_RTL8730E_REVISION >= 5
#error "ERROR, Not supported this revision"
#else
#define GPIO_PIN_RESET PB_11
#define GPIO_PIN_BACKLIGHT PA_9
#define GPIO_PIN_CMDDATA PA_10
#endif

/****************************************************************************
* Private Types
Expand Down

0 comments on commit 29a7219

Please sign in to comment.