Commit ac432c4c authored by Andre Przywara's avatar Andre Przywara
Browse files

wdreset: Add remaining SoCs



The "wdreset" command so far only covered a few SoCs.

Add the watchdog data for the other ones as well.
Signed-off-by: default avatarAndre Przywara <osp@andrep.de>
parent 14ff3e36
...@@ -141,6 +141,16 @@ const watchdog_info wd_h3_compat = { ...@@ -141,6 +141,16 @@ const watchdog_info wd_h3_compat = {
.reg_mode_value = 1, .reg_mode_value = 1,
}; };
const watchdog_info wd_a80 = {
.reg_mode = 0x06000CB8,
.reg_mode_value = 1,
};
const watchdog_info wd_h6_compat = {
.reg_mode = 0x030090b8,
.reg_mode_value = 1,
};
soc_info_t soc_info_table[] = { soc_info_t soc_info_table[] = {
{ {
.soc_id = 0x1623, /* Allwinner A10 */ .soc_id = 0x1623, /* Allwinner A10 */
...@@ -159,6 +169,7 @@ soc_info_t soc_info_table[] = { ...@@ -159,6 +169,7 @@ soc_info_t soc_info_table[] = {
.swap_buffers = a10_a13_a20_sram_swap_buffers, .swap_buffers = a10_a13_a20_sram_swap_buffers,
.needs_l2en = true, .needs_l2en = true,
.sid_base = 0x01C23800, .sid_base = 0x01C23800,
.watchdog = &wd_a10_compat,
},{ },{
.soc_id = 0x1651, /* Allwinner A20 */ .soc_id = 0x1651, /* Allwinner A20 */
.name = "A20", .name = "A20",
...@@ -174,12 +185,14 @@ soc_info_t soc_info_table[] = { ...@@ -174,12 +185,14 @@ soc_info_t soc_info_table[] = {
.thunk_addr = 0x46E00, .thunk_size = 0x200, .thunk_addr = 0x46E00, .thunk_size = 0x200,
.swap_buffers = ar100_abusing_sram_swap_buffers, .swap_buffers = ar100_abusing_sram_swap_buffers,
.sid_base = 0x01C23800, .sid_base = 0x01C23800,
.watchdog = &wd_h3_compat,
},{ },{
.soc_id = 0x1633, /* Allwinner A31 */ .soc_id = 0x1633, /* Allwinner A31 */
.name = "A31", .name = "A31",
.scratch_addr = 0x1000, .scratch_addr = 0x1000,
.thunk_addr = 0x22E00, .thunk_size = 0x200, .thunk_addr = 0x22E00, .thunk_size = 0x200,
.swap_buffers = a31_sram_swap_buffers, .swap_buffers = a31_sram_swap_buffers,
.watchdog = &wd_h3_compat,
},{ },{
.soc_id = 0x1667, /* Allwinner A33, R16 */ .soc_id = 0x1667, /* Allwinner A33, R16 */
.name = "A33", .name = "A33",
...@@ -187,6 +200,7 @@ soc_info_t soc_info_table[] = { ...@@ -187,6 +200,7 @@ soc_info_t soc_info_table[] = {
.thunk_addr = 0x46E00, .thunk_size = 0x200, .thunk_addr = 0x46E00, .thunk_size = 0x200,
.swap_buffers = ar100_abusing_sram_swap_buffers, .swap_buffers = ar100_abusing_sram_swap_buffers,
.sid_base = 0x01C23800, .sid_base = 0x01C23800,
.watchdog = &wd_h3_compat,
},{ },{
.soc_id = 0x1689, /* Allwinner A64 */ .soc_id = 0x1689, /* Allwinner A64 */
.name = "A64", .name = "A64",
...@@ -199,6 +213,7 @@ soc_info_t soc_info_table[] = { ...@@ -199,6 +213,7 @@ soc_info_t soc_info_table[] = {
.rvbar_reg = 0x017000A0, .rvbar_reg = 0x017000A0,
/* Check L.NOP in the OpenRISC reset vector */ /* Check L.NOP in the OpenRISC reset vector */
.needs_smc_workaround_if_zero_word_at_addr = 0x40004, .needs_smc_workaround_if_zero_word_at_addr = 0x40004,
.watchdog = &wd_h3_compat,
},{ },{
.soc_id = 0x1639, /* Allwinner A80 */ .soc_id = 0x1639, /* Allwinner A80 */
.name = "A80", .name = "A80",
...@@ -208,6 +223,7 @@ soc_info_t soc_info_table[] = { ...@@ -208,6 +223,7 @@ soc_info_t soc_info_table[] = {
.swap_buffers = a80_sram_swap_buffers, .swap_buffers = a80_sram_swap_buffers,
.sid_base = 0X01C0E000, .sid_base = 0X01C0E000,
.sid_offset = 0x200, .sid_offset = 0x200,
.watchdog = &wd_a80,
},{ },{
.soc_id = 0x1673, /* Allwinner A83T */ .soc_id = 0x1673, /* Allwinner A83T */
.name = "A83T", .name = "A83T",
...@@ -217,6 +233,7 @@ soc_info_t soc_info_table[] = { ...@@ -217,6 +233,7 @@ soc_info_t soc_info_table[] = {
.swap_buffers = ar100_abusing_sram_swap_buffers, .swap_buffers = ar100_abusing_sram_swap_buffers,
.sid_base = 0x01C14000, .sid_base = 0x01C14000,
.sid_offset = 0x200, .sid_offset = 0x200,
.watchdog = &wd_h3_compat,
},{ },{
.soc_id = 0x1680, /* Allwinner H3, H2+ */ .soc_id = 0x1680, /* Allwinner H3, H2+ */
.name = "H3", .name = "H3",
...@@ -238,6 +255,7 @@ soc_info_t soc_info_table[] = { ...@@ -238,6 +255,7 @@ soc_info_t soc_info_table[] = {
.thunk_addr = 0xA200, .thunk_size = 0x200, .thunk_addr = 0xA200, .thunk_size = 0x200,
.swap_buffers = a10_a13_a20_sram_swap_buffers, .swap_buffers = a10_a13_a20_sram_swap_buffers,
.sid_base = 0x01C23800, .sid_base = 0x01C23800,
.watchdog = &wd_h3_compat,
},{ },{
.soc_id = 0x1718, /* Allwinner H5 */ .soc_id = 0x1718, /* Allwinner H5 */
.name = "H5", .name = "H5",
...@@ -259,6 +277,7 @@ soc_info_t soc_info_table[] = { ...@@ -259,6 +277,7 @@ soc_info_t soc_info_table[] = {
.swap_buffers = a10_a13_a20_sram_swap_buffers, .swap_buffers = a10_a13_a20_sram_swap_buffers,
.sid_base = 0x01C1B000, .sid_base = 0x01C1B000,
.sid_offset = 0x200, .sid_offset = 0x200,
.watchdog = &wd_a10_compat,
},{ },{
.soc_id = 0x1728, /* Allwinner H6 */ .soc_id = 0x1728, /* Allwinner H6 */
.name = "H6", .name = "H6",
...@@ -271,6 +290,7 @@ soc_info_t soc_info_table[] = { ...@@ -271,6 +290,7 @@ soc_info_t soc_info_table[] = {
.rvbar_reg = 0x09010040, .rvbar_reg = 0x09010040,
/* Check L.NOP in the OpenRISC reset vector */ /* Check L.NOP in the OpenRISC reset vector */
.needs_smc_workaround_if_zero_word_at_addr = 0x100004, .needs_smc_workaround_if_zero_word_at_addr = 0x100004,
.watchdog = &wd_h6_compat,
},{ },{
.soc_id = 0x1817, /* Allwinner V831 */ .soc_id = 0x1817, /* Allwinner V831 */
.name = "V831", .name = "V831",
...@@ -280,6 +300,7 @@ soc_info_t soc_info_table[] = { ...@@ -280,6 +300,7 @@ soc_info_t soc_info_table[] = {
.swap_buffers = v831_sram_swap_buffers, .swap_buffers = v831_sram_swap_buffers,
.sid_base = 0x03006000, .sid_base = 0x03006000,
.sid_offset = 0x200, .sid_offset = 0x200,
.watchdog = &wd_h6_compat,
},{ },{
.soc_id = 0x1823, /* Allwinner H616 */ .soc_id = 0x1823, /* Allwinner H616 */
.name = "H616", .name = "H616",
...@@ -290,6 +311,7 @@ soc_info_t soc_info_table[] = { ...@@ -290,6 +311,7 @@ soc_info_t soc_info_table[] = {
.sid_base = 0x03006000, .sid_base = 0x03006000,
.sid_offset = 0x200, .sid_offset = 0x200,
.rvbar_reg = 0x09010040, .rvbar_reg = 0x09010040,
.watchdog = &wd_h6_compat,
},{ },{
.swap_buffers = NULL /* End of the table */ .swap_buffers = NULL /* End of the table */
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment