On Tue, 18 Aug 2015 01:53:24 +0800
Vishnu Patekar <[email protected]> wrote:

> Add soc id for A33, A83T, and H3.
> Also updated sram table info.
> 
> Signed-off-by: VishnuPatekar <[email protected]>
> ---
>  fel.c | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/fel.c b/fel.c
> index c53be60..42c69eb 100644
> --- a/fel.c
> +++ b/fel.c
> @@ -194,6 +194,9 @@ void aw_fel_print_version(libusb_device_handle *usb)
>       case 0x1651: soc_name="A20";break;
>       case 0x1650: soc_name="A23";break;
>       case 0x1639: soc_name="A80";break;
> +     case 0x1667: soc_name="A33";break;
> +     case 0x1673: soc_name="A83T";break;
> +     case 0x1680: soc_name="H3";break;
>       }
>  
>       printf("%.8s soc=%08x(%s) %08x ver=%04x %02x %02x scratchpad=%08x %08x 
> %08x\n",
> @@ -408,6 +411,21 @@ soc_sram_info soc_sram_info_table[] = {
>               .thunk_addr   = 0x46E00, .thunk_size = 0x200,
>               .swap_buffers = a31_sram_swap_buffers,
>       },
> +     {
> +             .soc_id       = 0x1667, /* Allwinner A33 */
> +             .thunk_addr   = 0x46E00, .thunk_size = 0x200,
> +             .swap_buffers = a31_sram_swap_buffers,
> +     },
> +     {
> +             .soc_id       = 0x1673, /* Allwinner A83T */
> +             .thunk_addr   = 0x46E00, .thunk_size = 0x200,
> +             .swap_buffers = a31_sram_swap_buffers,
> +     },
> +     {
> +             .soc_id       = 0x1680, /* Allwinner H3 */
> +             .thunk_addr   = 0x46E00, .thunk_size = 0x200,
> +             .swap_buffers = a31_sram_swap_buffers,
> +     },
>       { 0 } /* End of the table */
>  };
>  

If I understand it correctly, you have only tested this yourself on A33?
We should only add the table entries for the tested hardware.

It would be great if people could confirm FEL boot working on Allwinner
A83T and Allwinner H3. Even though there is no SPL support in U-Boot
for some of the SoC variants, it is still possible to use boot0 blobs
for testing. And here we are interested in the SD or NAND variants of
the boot0 blob (not the FEL boot0 blob!). Basically you need to run
"fel spl <sd_or_nand_boot0_blob>" and check if you get reasonably
looking messages from boot0 on the serial console.

And as we have discussed on IRC, I'm working on the changes which are
necessary to support Allwinner A80. Basically, so far it looks like
we just need to allow it to use 0x10000 base address instead of the
currently hardcoded 0x0. Most likely the FEL stacks are located
at 0x12000 and 0x17000 there (instead of 0x2000 and 0x7000 on older
SoCs): https://gist.github.com/ssvb/e395652fc5a3012f8f4b

-- 
Best regards,
Siarhei Siamashka

-- 
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