mbox series

[U-Boot,00/13] Allwinner H6 support (w/ SPL)

Message ID 20180625103723.24760-1-icenowy@aosc.io
Headers show
Series Allwinner H6 support (w/ SPL) | expand

Message

Icenowy Zheng June 25, 2018, 10:37 a.m. UTC
This patch trys to add support for Allwinner H6 SoC to U-Boot.

Allwinner H6 is a quite new Allwinner SoC, with several parts changed a
lot (memory map, DRAM controller, CCU, so on). The position which SPL
will be loaded (SRAM A1) also changed to 0x20000.

The Pine H64 board support comes with this patchset, as this is the
first H6 board that I can get (being early bird).

Icenowy Zheng (13):
  sunxi: change SUNXI_HIGH_SRAM option to SUNXI_SRAM_ADDRESS
  sunxi: add basical memory map definitions of H6 SoC
  sunxi: change RMR64's RVBAR address for H6
  sunxi: change ATF position for H6
  sunxi: add config for SPL at 0x20000 on H6
  sunxi: change GIC address on H6
  sunxi: add clock code for H6
  sunxi: use sun6i-style watchdog for H6
  sunxi: add UART0 setup for H6
  sunxi: add MMC support for H6
  sunxi: add DRAM support to H6
  sunxi: add support for Allwinner H6 SoC
  sunxi: add support for Pine H64 board

 arch/arm/dts/Makefile                         |   2 +
 arch/arm/dts/sun50i-h6-pine-h64.dts           |  64 ++
 arch/arm/dts/sun50i-h6.dtsi                   | 140 ++++
 arch/arm/include/asm/arch-sunxi/boot0.h       |   4 +
 arch/arm/include/asm/arch-sunxi/clock.h       |   2 +
 .../include/asm/arch-sunxi/clock_sun50i_h6.h  | 320 ++++++++
 arch/arm/include/asm/arch-sunxi/cpu.h         |   2 +
 .../include/asm/arch-sunxi/cpu_sun50i_h6.h    |  73 ++
 arch/arm/include/asm/arch-sunxi/dram.h        |   2 +
 .../include/asm/arch-sunxi/dram_sun50i_h6.h   | 276 +++++++
 arch/arm/include/asm/arch-sunxi/gpio.h        |   1 +
 arch/arm/include/asm/arch-sunxi/mmc.h         |   2 +-
 arch/arm/include/asm/arch-sunxi/spl.h         |   6 +-
 arch/arm/include/asm/arch-sunxi/timer.h       |   2 +-
 arch/arm/mach-sunxi/Kconfig                   |  37 +-
 arch/arm/mach-sunxi/Makefile                  |   2 +
 arch/arm/mach-sunxi/board.c                   |   6 +-
 arch/arm/mach-sunxi/clock_sun50i_h6.c         |  94 +++
 arch/arm/mach-sunxi/cpu_info.c                |   2 +
 arch/arm/mach-sunxi/dram_sun50i_h6.c          | 708 ++++++++++++++++++
 arch/arm/mach-sunxi/rmr_switch.S              |   6 +
 board/sunxi/MAINTAINERS                       |   5 +
 board/sunxi/board.c                           |   7 +
 board/sunxi/mksunxi_fit_atf.sh                |  10 +-
 common/spl/Kconfig                            |   2 +-
 configs/pine_h64_defconfig                    |  15 +
 drivers/mmc/sunxi_mmc.c                       |  13 +-
 include/configs/sun50i.h                      |   5 +
 include/configs/sunxi-common.h                |  24 +-
 29 files changed, 1802 insertions(+), 30 deletions(-)
 create mode 100644 arch/arm/dts/sun50i-h6-pine-h64.dts
 create mode 100644 arch/arm/dts/sun50i-h6.dtsi
 create mode 100644 arch/arm/include/asm/arch-sunxi/clock_sun50i_h6.h
 create mode 100644 arch/arm/include/asm/arch-sunxi/cpu_sun50i_h6.h
 create mode 100644 arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h
 create mode 100644 arch/arm/mach-sunxi/clock_sun50i_h6.c
 create mode 100644 arch/arm/mach-sunxi/dram_sun50i_h6.c
 create mode 100644 configs/pine_h64_defconfig

Comments

Jagan Teki June 25, 2018, 12:40 p.m. UTC | #1
On Mon, Jun 25, 2018 at 4:07 PM, Icenowy Zheng <icenowy@aosc.io> wrote:
> This patch trys to add support for Allwinner H6 SoC to U-Boot.
>
> Allwinner H6 is a quite new Allwinner SoC, with several parts changed a
> lot (memory map, DRAM controller, CCU, so on). The position which SPL
> will be loaded (SRAM A1) also changed to 0x20000.
>
> The Pine H64 board support comes with this patchset, as this is the
> first H6 board that I can get (being early bird).
>
> Icenowy Zheng (13):
>   sunxi: change SUNXI_HIGH_SRAM option to SUNXI_SRAM_ADDRESS
>   sunxi: add basical memory map definitions of H6 SoC
>   sunxi: change RMR64's RVBAR address for H6
>   sunxi: change ATF position for H6
>   sunxi: add config for SPL at 0x20000 on H6
>   sunxi: change GIC address on H6
>   sunxi: add clock code for H6
>   sunxi: use sun6i-style watchdog for H6
>   sunxi: add UART0 setup for H6
>   sunxi: add MMC support for H6
>   sunxi: add DRAM support to H6
>   sunxi: add support for Allwinner H6 SoC
>   sunxi: add support for Pine H64 board

is it on top of master? unable to apply for testing on master, point
me the branch would help.
Icenowy Zheng June 25, 2018, 12:49 p.m. UTC | #2
于 2018年6月25日 GMT+08:00 下午8:40:21, Jagan Teki <jagan@amarulasolutions.com> 写到:
>On Mon, Jun 25, 2018 at 4:07 PM, Icenowy Zheng <icenowy@aosc.io> wrote:
>> This patch trys to add support for Allwinner H6 SoC to U-Boot.
>>
>> Allwinner H6 is a quite new Allwinner SoC, with several parts changed
>a
>> lot (memory map, DRAM controller, CCU, so on). The position which SPL
>> will be loaded (SRAM A1) also changed to 0x20000.
>>
>> The Pine H64 board support comes with this patchset, as this is the
>> first H6 board that I can get (being early bird).
>>
>> Icenowy Zheng (13):
>>   sunxi: change SUNXI_HIGH_SRAM option to SUNXI_SRAM_ADDRESS
>>   sunxi: add basical memory map definitions of H6 SoC
>>   sunxi: change RMR64's RVBAR address for H6
>>   sunxi: change ATF position for H6
>>   sunxi: add config for SPL at 0x20000 on H6
>>   sunxi: change GIC address on H6
>>   sunxi: add clock code for H6
>>   sunxi: use sun6i-style watchdog for H6
>>   sunxi: add UART0 setup for H6
>>   sunxi: add MMC support for H6
>>   sunxi: add DRAM support to H6
>>   sunxi: add support for Allwinner H6 SoC
>>   sunxi: add support for Pine H64 board
>
>is it on top of master? unable to apply for testing on master, point
>me the branch would help.

sunxi/next.
Jagan Teki June 25, 2018, 1:02 p.m. UTC | #3
On Mon, Jun 25, 2018 at 6:19 PM, Icenowy Zheng <icenowy@aosc.io> wrote:
>
>
> 于 2018年6月25日 GMT+08:00 下午8:40:21, Jagan Teki <jagan@amarulasolutions.com> 写到:
>>On Mon, Jun 25, 2018 at 4:07 PM, Icenowy Zheng <icenowy@aosc.io> wrote:
>>> This patch trys to add support for Allwinner H6 SoC to U-Boot.
>>>
>>> Allwinner H6 is a quite new Allwinner SoC, with several parts changed
>>a
>>> lot (memory map, DRAM controller, CCU, so on). The position which SPL
>>> will be loaded (SRAM A1) also changed to 0x20000.
>>>
>>> The Pine H64 board support comes with this patchset, as this is the
>>> first H6 board that I can get (being early bird).
>>>
>>> Icenowy Zheng (13):
>>>   sunxi: change SUNXI_HIGH_SRAM option to SUNXI_SRAM_ADDRESS
>>>   sunxi: add basical memory map definitions of H6 SoC
>>>   sunxi: change RMR64's RVBAR address for H6
>>>   sunxi: change ATF position for H6
>>>   sunxi: add config for SPL at 0x20000 on H6
>>>   sunxi: change GIC address on H6
>>>   sunxi: add clock code for H6
>>>   sunxi: use sun6i-style watchdog for H6
>>>   sunxi: add UART0 setup for H6
>>>   sunxi: add MMC support for H6
>>>   sunxi: add DRAM support to H6
>>>   sunxi: add support for Allwinner H6 SoC
>>>   sunxi: add support for Pine H64 board
>>
>>is it on top of master? unable to apply for testing on master, point
>>me the branch would help.
>
> sunxi/next.

please send it, on top of master
Jagan Teki July 19, 2018, 6:14 p.m. UTC | #4
On Mon, Jun 25, 2018 at 6:32 PM, Jagan Teki <jagan@amarulasolutions.com> wrote:
> On Mon, Jun 25, 2018 at 6:19 PM, Icenowy Zheng <icenowy@aosc.io> wrote:
>>
>>
>> 于 2018年6月25日 GMT+08:00 下午8:40:21, Jagan Teki <jagan@amarulasolutions.com> 写到:
>>>On Mon, Jun 25, 2018 at 4:07 PM, Icenowy Zheng <icenowy@aosc.io> wrote:
>>>> This patch trys to add support for Allwinner H6 SoC to U-Boot.
>>>>
>>>> Allwinner H6 is a quite new Allwinner SoC, with several parts changed
>>>a
>>>> lot (memory map, DRAM controller, CCU, so on). The position which SPL
>>>> will be loaded (SRAM A1) also changed to 0x20000.
>>>>
>>>> The Pine H64 board support comes with this patchset, as this is the
>>>> first H6 board that I can get (being early bird).
>>>>
>>>> Icenowy Zheng (13):
>>>>   sunxi: change SUNXI_HIGH_SRAM option to SUNXI_SRAM_ADDRESS
>>>>   sunxi: add basical memory map definitions of H6 SoC
>>>>   sunxi: change RMR64's RVBAR address for H6
>>>>   sunxi: change ATF position for H6
>>>>   sunxi: add config for SPL at 0x20000 on H6
>>>>   sunxi: change GIC address on H6
>>>>   sunxi: add clock code for H6
>>>>   sunxi: use sun6i-style watchdog for H6
>>>>   sunxi: add UART0 setup for H6
>>>>   sunxi: add MMC support for H6
>>>>   sunxi: add DRAM support to H6
>>>>   sunxi: add support for Allwinner H6 SoC
>>>>   sunxi: add support for Pine H64 board
>>>
>>>is it on top of master? unable to apply for testing on master, point
>>>me the branch would help.
>>
>> sunxi/next.
>
> please send it, on top of master

Are you planning to send v2, if so please rebase it on master.