Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/linux-sunxi/sunxi-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2022-03-29 16:10:25 +0300
committerGitHub <noreply@github.com>2022-03-29 16:10:25 +0300
commitcf942c0293ca0e783d770638952ee0bff5e08f05 (patch)
tree04b1e1d9eb2c1411ee0ec39acf658f6530c5ed3c
parent8c62bba66098dc18c2e254f35151edc9ccd61cc1 (diff)
parent458a2c6d259895b5346613ab746e1f55ff639d34 (diff)
Merge pull request #164 from danielkucera/v536
Add V536 SoC support
-rw-r--r--fel-spiflash.c4
-rw-r--r--soc_info.c11
2 files changed, 15 insertions, 0 deletions
diff --git a/fel-spiflash.c b/fel-spiflash.c
index fa728f9..eb47a6c 100644
--- a/fel-spiflash.c
+++ b/fel-spiflash.c
@@ -122,6 +122,7 @@ static uint32_t gpio_base(feldev_handle *dev)
{
soc_info_t *soc_info = dev->soc_info;
switch (soc_info->soc_id) {
+ case 0x1816: /* V536 */
case 0x1817: /* V831 */
case 0x1728: /* H6 */
case 0x1823: /* H616 */
@@ -140,6 +141,7 @@ static uint32_t spi_base(feldev_handle *dev)
case 0x1651: /* A20 */
case 0x1701: /* R40 */
return 0x01C05000;
+ case 0x1816: /* V536 */
case 0x1817: /* V831 */
case 0x1728: /* H6 */
case 0x1823: /* H616 */
@@ -181,6 +183,7 @@ static bool soc_is_h6_style(feldev_handle *dev)
{
soc_info_t *soc_info = dev->soc_info;
switch (soc_info->soc_id) {
+ case 0x1816: /* V536 */
case 0x1817: /* V831 */
case 0x1728: /* H6 */
case 0x1823: /* H616 */
@@ -228,6 +231,7 @@ static bool spi0_init(feldev_handle *dev)
gpio_set_cfgpin(dev, PC, 2, SUN50I_GPC_SPI0);
gpio_set_cfgpin(dev, PC, 3, SUN50I_GPC_SPI0);
break;
+ case 0x1816: /* Allwinner V536 */
case 0x1817: /* Allwinner V831 */
gpio_set_cfgpin(dev, PC, 1, SUN50I_GPC_SPI0); /* SPI0-CS */
/* fall-through */
diff --git a/soc_info.c b/soc_info.c
index 20c982b..7eea45d 100644
--- a/soc_info.c
+++ b/soc_info.c
@@ -320,6 +320,17 @@ soc_info_t soc_info_table[] = {
.needs_smc_workaround_if_zero_word_at_addr = 0x100004,
.watchdog = &wd_h6_compat,
},{
+ .soc_id = 0x1816, /* Allwinner V536 */
+ .name = "V536",
+ .spl_addr = 0x20000,
+ .scratch_addr = 0x21000,
+ .thunk_addr = 0x2A200, .thunk_size = 0x200,
+ .swap_buffers = v831_sram_swap_buffers,
+ .sram_size = 228 * 1024,
+ .sid_base = 0x03006000,
+ .sid_offset = 0x200,
+ .watchdog = &wd_h6_compat,
+ },{
.soc_id = 0x1817, /* Allwinner V831 */
.name = "V831",
.spl_addr = 0x20000,