Add support for sam9x60_curiosity
v3 cover Add support for sam9x60_curiosity
---
v2 -> v3:
- Few symbols defined in the board specific header file (i.e) sam9x60_curiosity.h are no longer accepted by the u-boot mainline. So the below changes has been done.
- NAND symbols are no longer accepted by the u-boot mainline. This shall be migrated to device tree model. So, this patch series contains only SDMMC support. NAND support will be added once device tree model is implemented.
- Removed sam9x60_curiosity_nand_hw_init function from the board specific C file.
- Removed the NAND config support in the SDMMC defconfig.
- Converted CONFIG_BOOTP_BOOTFILESIZE to Kconfig
---
v1 -> v2:
- This patch series adds support for sam9x60_curiosity.
- Converted CONFIG_ATMEL_LEGACY to Kconfig. Previosly sent patch series from u-boot/master branch now sending the patch series on top of u-boot/next branch as v2.
Durai Manickam KR (3):
board: Add sam9x60_curiosity support
ARM: dts: Add device tree files for sam9x60_curiosity
configs: Add sam9x60_curiosity_mmc_defconfig
arch/arm/dts/Makefile | 2 + .../dts/at91-sam9x60_curiosity-u-boot.dtsi | 79 +++++++++++++++++++ arch/arm/dts/at91-sam9x60_curiosity.dts | 74 +++++++++++++++++ arch/arm/mach-at91/Kconfig | 7 ++ board/atmel/sam9x60_curiosity/Kconfig | 15 ++++ board/atmel/sam9x60_curiosity/MAINTAINERS | 7 ++ board/atmel/sam9x60_curiosity/Makefile | 7 ++ .../sam9x60_curiosity/sam9x60_curiosity.c | 75 ++++++++++++++++++ configs/sam9x60_curiosity_mmc_defconfig | 74 +++++++++++++++++ include/configs/sam9x60_curiosity.h | 31 ++++++++ 10 files changed, 371 insertions(+) create mode 100644 arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi create mode 100644 arch/arm/dts/at91-sam9x60_curiosity.dts create mode 100644 board/atmel/sam9x60_curiosity/Kconfig create mode 100644 board/atmel/sam9x60_curiosity/MAINTAINERS create mode 100644 board/atmel/sam9x60_curiosity/Makefile create mode 100644 board/atmel/sam9x60_curiosity/sam9x60_curiosity.c create mode 100644 configs/sam9x60_curiosity_mmc_defconfig create mode 100644 include/configs/sam9x60_curiosity.h
Signature · 1 line
2.25.1
PATCH v3 1/3 board: Add sam9x60_curiosity support
Add board files, Kconfig, Makefile and MAINTAINERS.
--- arch/arm/mach-at91/Kconfig | 7 ++ board/atmel/sam9x60_curiosity/Kconfig | 15 ++++ board/atmel/sam9x60_curiosity/MAINTAINERS | 6 ++ board/atmel/sam9x60_curiosity/Makefile | 7 ++ .../sam9x60_curiosity/sam9x60_curiosity.c | 75 +++++++++++++++++++ include/configs/sam9x60_curiosity.h | 31 ++++++++ 6 files changed, 141 insertions(+) create mode 100644 board/atmel/sam9x60_curiosity/Kconfig create mode 100644 board/atmel/sam9x60_curiosity/MAINTAINERS create mode 100644 board/atmel/sam9x60_curiosity/Makefile create mode 100644 board/atmel/sam9x60_curiosity/sam9x60_curiosity.c create mode 100644 include/configs/sam9x60_curiosity.h
arch/arm/mach-at91/Kconfig +7 -0
@@ -164,6 +164,12 @@ config TARGET_SAM9X60EK select BOARD_EARLY_INIT_F select BOARD_LATE_INIT +config TARGET_SAM9X60_CURIOSITY + bool "SAM9X60 CURIOSITY board" + select SAM9X60 + select BOARD_EARLY_INIT_F + select BOARD_LATE_INIT + config TARGET_SAMA5D2_PTC_EK bool "SAMA5D2 PTC EK board" select BOARD_EARLY_INIT_F
@@ -335,6 +341,7 @@ source "board/atmel/at91sam9n12ek/Kconfig" source "board/atmel/at91sam9rlek/Kconfig" source "board/atmel/at91sam9x5ek/Kconfig" source "board/atmel/sam9x60ek/Kconfig" +source "board/atmel/sam9x60_curiosity/Kconfig" source "board/atmel/sama7g5ek/Kconfig" source "board/atmel/sama5d2_ptc_ek/Kconfig" source "board/atmel/sama5d2_xplained/Kconfig"
board/atmel/sam9x60_curiosity/Kconfig new file +15 -0
@@ -0,0 +1,15 @@ +if TARGET_SAM9X60_CURIOSITY + +config SYS_BOARD + default "sam9x60_curiosity" + +config SYS_VENDOR + default "atmel" + +config SYS_SOC + default "at91" + +config SYS_CONFIG_NAME + default "sam9x60_curiosity" + +endif
board/atmel/sam9x60_curiosity/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +SAM9X60 CURIOSITY BOARD +M: Durai Manickam KR <[email protected]> +M: Eugen Hristev <[email protected]> +S: Maintained +F: board/atmel/sam9x60_curiosity/ +F: include/configs/sam9x60_curiosity.h
board/atmel/sam9x60_curiosity/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries +# +# Author: Durai Manickam KR <[email protected]> + +obj-y += sam9x60_curiosity.o
board/atmel/sam9x60_curiosity/sam9x60_curiosity.c new file +75 -0
75 lines not on this page · raw message
include/configs/sam9x60_curiosity.h new file +31 -0
@@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Configuration settings for the SAM9X60 CURIOSITY board. +* +* Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries +* +* Author: Durai Manickam KR <[email protected]> +*/ + +#ifndef __CONFIG_H__ +#define __CONFIG_H__ + +#define CONFIG_SYS_AT91_SLOW_CLOCK 32768 +#define CONFIG_SYS_AT91_MAIN_CLOCK 24000000/* 24 MHz crystal */ + +#define CONFIG_USART_BASE ATMEL_BASE_DBGU +#define CONFIG_USART_ID 0/* ignored in arm */ + +/* SDRAM */ +#define CONFIG_SYS_SDRAM_BASE 0x20000000 +#define CONFIG_SYS_SDRAM_SIZE 0x8000000/* 128 MB */ + +#ifdef CONFIG_SPL_BUILD +#define CONFIG_SYS_INIT_SP_ADDR 0x218000 +#else +#define CONFIG_SYS_INIT_SP_ADDR \ + (CONFIG_SYS_SDRAM_BASE + 16 * 1024 + CONFIG_SYS_MALLOC_F_LEN - \ + GENERATED_GBL_DATA_SIZE) +#endif + +#endif
Signature · 1 line
2.25.1
PATCH v3 2/3 ARM: dts: Add device tree files for sam9x60_curiosity
In reply to Durai Manickam KRAdd dts and dtsi files.
--- arch/arm/dts/Makefile | 2 + .../dts/at91-sam9x60_curiosity-u-boot.dtsi | 79 +++++++++++++++++++ arch/arm/dts/at91-sam9x60_curiosity.dts | 74 +++++++++++++++++ 3 files changed, 155 insertions(+) create mode 100644 arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi create mode 100644 arch/arm/dts/at91-sam9x60_curiosity.dts
arch/arm/dts/Makefile +2 -0
@@ -1007,6 +1007,8 @@ dtb-$(CONFIG_TARGET_AT91SAM9X5EK) += \ dtb-$(CONFIG_TARGET_SAM9X60EK) += sam9x60ek.dtb +dtb-$(CONFIG_TARGET_SAM9X60_CURIOSITY) += at91-sam9x60_curiosity.dtb + dtb-$(CONFIG_TARGET_AT91SAM9N12EK) += at91sam9n12ek.dtb dtb-$(CONFIG_TARGET_GARDENA_SMART_GATEWAY_AT91SAM) += \
arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi new file +79 -0
79 lines not on this page · raw message
arch/arm/dts/at91-sam9x60_curiosity.dts new file +74 -0
74 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v3 3/3 configs: Add sam9x60_curiosity_mmc_defconfig
In reply to Durai Manickam KRAdd boot from SDMMC (sdcard) support for sam9x60_curiosity.
--- board/atmel/sam9x60_curiosity/MAINTAINERS | 1 + configs/sam9x60_curiosity_mmc_defconfig | 74 +++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 configs/sam9x60_curiosity_mmc_defconfig
board/atmel/sam9x60_curiosity/MAINTAINERS +1 -0
@@ -4,3 +4,4 @@ M: Eugen Hristev <[email protected]> S: Maintained F: board/atmel/sam9x60_curiosity/ F: include/configs/sam9x60_curiosity.h +F: configs/sam9x60_curiosity_mmc_defconfig
configs/sam9x60_curiosity_mmc_defconfig new file +74 -0
74 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 44 lines · Durai Manickam KR
---
v2 -> v3:
- Few symbols defined in the board specific header file (i.e)sam9x60_curiosity.hare no longer accepted by the u-boot mainline. So the below changes has been done.
- NAND symbols are no longer accepted by the u-boot mainline. This shall be migrated to device tree model. So, this patch series contains only SDMMC support. NAND support will be added once device tree model is implemented.
- Removedsam9x60_curiosity_nand_hw_initfunction from the board specific C file.
- Removed the NAND config support in the SDMMC defconfig.
- ConvertedCONFIG_BOOTP_BOOTFILESIZEtoKconfig---
v1 -> v2:
- This patch series adds support forsam9x60_curiosity.
- ConvertedCONFIG_ATMEL_LEGACYtoKconfig. Previosly sent patch series from u-boot/master branch now sending the patch series on top of u-boot/next branch as v2.Durai Manickam KR (3):
board: Addsam9x60_curiositysupport
ARM: dts: Add device tree files forsam9x60_curiosity
configs: Addsam9x60_curiosity_mmc_defconfigarch/arm/dts/Makefile | 2 + .../dts/at91-sam9x60_curiosity-u-boot.dtsi | 79 +++++++++++++++++++ arch/arm/dts/at91-sam9x60_curiosity.dts | 74 +++++++++++++++++ arch/arm/mach-at91/Kconfig | 7 ++ board/atmel/sam9x60_curiosity/Kconfig | 15 ++++ board/atmel/sam9x60_curiosity/MAINTAINERS | 7 ++ board/atmel/sam9x60_curiosity/Makefile | 7 ++ .../sam9x60_curiosity/sam9x60_curiosity.c | 75 ++++++++++++++++++ configs/sam9x60_curiosity_mmc_defconfig | 74 +++++++++++++++++ include/configs/sam9x60_curiosity.h | 31 ++++++++ 10 files changed, 371 insertions(+)create mode 100644
arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsicreate mode 100644arch/arm/dts/at91-sam9x60_curiosity.dtscreate mode 100644 board/atmel/sam9x60_curiosity/Kconfig create mode 100644 board/atmel/sam9x60_curiosity/MAINTAINERS create mode 100644 board/atmel/sam9x60_curiosity/Makefile create mode 100644board/atmel/sam9x60_curiosity/sam9x60_curiosity.ccreate mode 100644 configs/sam9x60_curiosity_mmc_defconfig create mode 100644include/configs/sam9x60_curiosity.h
Quoted 3 lines
--
2.25.1
Applied to u-boot-at91/master , thanks !