That would be a more appropriate name. And A31 is going to
implement this in a different way and give the SRAM back to
OpenRISC.

Signed-off-by: Siarhei Siamashka <[email protected]>
---
 fel.c | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/fel.c b/fel.c
index 0da3dc7..419f16a 100644
--- a/fel.c
+++ b/fel.c
@@ -479,12 +479,11 @@ sram_swap_buffers a10_a13_a20_sram_swap_buffers[] = {
 };
 
 /*
- * A31 is very similar to A10/A13/A20, except that it has no SRAM at 0x8000.
- * So we use the SRAM section at 0x44000 instead. This is the memory, which
- * is normally shared with the OpenRISC core (should we do an extra check to
- * ensure that this core is powered off and can't interfere?).
+ * Use the SRAM section at 0x44000 as the backup storage. This is the memory,
+ * which is normally shared with the OpenRISC core (should we do an extra check
+ * to ensure that this core is powered off and can't interfere?).
  */
-sram_swap_buffers a31_sram_swap_buffers[] = {
+sram_swap_buffers ar100_abusing_sram_swap_buffers[] = {
        { .buf1 = 0x01800, .buf2 = 0x44000, .size = 0x800 },
        { .buf1 = 0x05C00, .buf2 = 0x44800, .size = 0x8000 - 0x5C00 },
        { 0 }  /* End of the table */
@@ -515,32 +514,32 @@ soc_sram_info soc_sram_info_table[] = {
                .soc_id       = 0x1650, /* Allwinner A23 */
                .scratch_addr = 0x2000,
                .thunk_addr   = 0x46E00, .thunk_size = 0x200,
-               .swap_buffers = a31_sram_swap_buffers,
+               .swap_buffers = ar100_abusing_sram_swap_buffers,
        },
        {
                .soc_id       = 0x1633, /* Allwinner A31 */
                .scratch_addr = 0x2000,
                .thunk_addr   = 0x46E00, .thunk_size = 0x200,
-               .swap_buffers = a31_sram_swap_buffers,
+               .swap_buffers = ar100_abusing_sram_swap_buffers,
        },
        {
                .soc_id       = 0x1667, /* Allwinner A33 */
                .scratch_addr = 0x2000,
                .thunk_addr   = 0x46E00, .thunk_size = 0x200,
-               .swap_buffers = a31_sram_swap_buffers,
+               .swap_buffers = ar100_abusing_sram_swap_buffers,
        },
        {
                .soc_id       = 0x1673, /* Allwinner A83T */
                .scratch_addr = 0x2000,
                .thunk_addr   = 0x46E00, .thunk_size = 0x200,
-               .swap_buffers = a31_sram_swap_buffers,
+               .swap_buffers = ar100_abusing_sram_swap_buffers,
        },
        {
                .soc_id       = 0x1680, /* Allwinner H3 */
                .scratch_addr = 0x2000,
                .mmu_tt_addr  = 0x44000,
                .thunk_addr   = 0x46E00, .thunk_size = 0x200,
-               .swap_buffers = a31_sram_swap_buffers,
+               .swap_buffers = ar100_abusing_sram_swap_buffers,
        },
        { 0 } /* End of the table */
 };
-- 
2.4.10

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to