All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add quad & octal spi flash mini u-boot configuration files
@ 2022-10-12  7:05 Ashok Reddy Soma
  2022-10-12  7:05 ` [PATCH v2 1/2] arm64: versal: Add qspi flash mini u-boot configuration Ashok Reddy Soma
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ashok Reddy Soma @ 2022-10-12  7:05 UTC (permalink / raw)
  To: u-boot; +Cc: michal.simek, git, Ashok Reddy Soma

Add new configuration files for quad and octal spi flash mini u-boot.
With these configs's mini u-boot will run from on chip memory(OCM) and
uses DCC terminal for console output.

Changes in v2:
 - Removed configs/xilinx_* from MAINTAINERS as, it is already taken
 care.
 - Run savedefconfig and updated mini config to align with latest
 Kconfig layout
 - Run savedefconfig and updated mini config for ospi to align with
   latest Kconfig layout

Ashok Reddy Soma (2):
  arm64: versal: Add qspi flash mini u-boot configuration
  arm64: versal: Add octal spi flash mini u-boot configuration

 configs/xilinx_versal_mini_ospi_defconfig | 70 ++++++++++++++++++++++
 configs/xilinx_versal_mini_qspi_defconfig | 73 +++++++++++++++++++++++
 2 files changed, 143 insertions(+)
 create mode 100644 configs/xilinx_versal_mini_ospi_defconfig
 create mode 100644 configs/xilinx_versal_mini_qspi_defconfig

-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] arm64: versal: Add qspi flash mini u-boot configuration
  2022-10-12  7:05 [PATCH v2 0/2] Add quad & octal spi flash mini u-boot configuration files Ashok Reddy Soma
@ 2022-10-12  7:05 ` Ashok Reddy Soma
  2022-10-12  7:05 ` [PATCH v2 2/2] arm64: versal: Add octal spi " Ashok Reddy Soma
  2022-10-12  8:54 ` [PATCH v2 0/2] Add quad & octal spi flash mini u-boot configuration files Michal Simek
  2 siblings, 0 replies; 4+ messages in thread
From: Ashok Reddy Soma @ 2022-10-12  7:05 UTC (permalink / raw)
  To: u-boot; +Cc: michal.simek, git, Ashok Reddy Soma

Add configuration file for mini u-boot configuration which runs on a
smaller footprint from on chip memory(OCM). This configuration has
required CONFIG's enabled to support qspi flash and uses DCC terminal
for console output.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
---

Changes in v2:
 - Removed configs/xilinx_* from MAINTAINERS as, it is already taken
 care.
 - Run savedefconfig and updated mini config to align with latest
 Kconfig layout

 configs/xilinx_versal_mini_qspi_defconfig | 73 +++++++++++++++++++++++
 1 file changed, 73 insertions(+)
 create mode 100644 configs/xilinx_versal_mini_qspi_defconfig

diff --git a/configs/xilinx_versal_mini_qspi_defconfig b/configs/xilinx_versal_mini_qspi_defconfig
new file mode 100644
index 0000000000..43074e2e5e
--- /dev/null
+++ b/configs/xilinx_versal_mini_qspi_defconfig
@@ -0,0 +1,73 @@
+CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="xilinx_versal_mini_qspi"
+CONFIG_COUNTER_FREQUENCY=100000000
+CONFIG_ARCH_VERSAL=y
+CONFIG_SYS_TEXT_BASE=0xFFFC0000
+CONFIG_SYS_MALLOC_LEN=0x2000
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x80
+CONFIG_DEFAULT_DEVICE_TREE="versal-mini-qspi-single"
+CONFIG_SYS_PROMPT="Versal> "
+CONFIG_SYS_MEM_RSVD_FOR_MMU=y
+CONFIG_VERSAL_NO_DDR=y
+# CONFIG_PSCI_RESET is not set
+CONFIG_SYS_LOAD_ADDR=0x8000000
+# CONFIG_EXPERT is not set
+# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
+# CONFIG_AUTOBOOT is not set
+CONFIG_LOGLEVEL=0
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_BOARD_EARLY_INIT_R=y
+# CONFIG_BOARD_LATE_INIT is not set
+# CONFIG_CMDLINE_EDITING is not set
+# CONFIG_AUTO_COMPLETE is not set
+# CONFIG_SYS_LONGHELP is not set
+# CONFIG_SYS_XTRACE is not set
+# CONFIG_CMD_BDI is not set
+# CONFIG_CMD_CONSOLE is not set
+# CONFIG_CMD_BOOTD is not set
+# CONFIG_CMD_BOOTM is not set
+# CONFIG_CMD_BOOTI is not set
+# CONFIG_CMD_ELF is not set
+# CONFIG_CMD_FDT is not set
+# CONFIG_CMD_GO is not set
+# CONFIG_CMD_RUN is not set
+# CONFIG_CMD_IMI is not set
+# CONFIG_CMD_XIMG is not set
+# CONFIG_CMD_EXPORTENV is not set
+# CONFIG_CMD_IMPORTENV is not set
+# CONFIG_CMD_EDITENV is not set
+# CONFIG_CMD_SAVEENV is not set
+# CONFIG_CMD_ENV_EXISTS is not set
+# CONFIG_CMD_CRC32 is not set
+# CONFIG_CMD_LOADB is not set
+# CONFIG_CMD_LOADS is not set
+# CONFIG_CMD_ECHO is not set
+# CONFIG_CMD_ITEST is not set
+# CONFIG_CMD_SOURCE is not set
+# CONFIG_CMD_SETEXPR is not set
+# CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG is not set
+# CONFIG_NET is not set
+# CONFIG_DM_WARN is not set
+# CONFIG_DM_DEVICE_REMOVE is not set
+# CONFIG_GPIO is not set
+# CONFIG_I2C is not set
+# CONFIG_INPUT is not set
+# CONFIG_MMC is not set
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SF_DEFAULT_SPEED=30000000
+# CONFIG_SPI_FLASH_SMART_HWCAPS is not set
+# CONFIG_SPI_FLASH_UNLOCK_ALL is not set
+CONFIG_SPI_FLASH_ISSI=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_SPI_FLASH_WINBOND=y
+# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
+# CONFIG_POWER is not set
+CONFIG_ARM_DCC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_ZYNQMP_GQSPI=y
+# CONFIG_LMB is not set
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] arm64: versal: Add octal spi flash mini u-boot configuration
  2022-10-12  7:05 [PATCH v2 0/2] Add quad & octal spi flash mini u-boot configuration files Ashok Reddy Soma
  2022-10-12  7:05 ` [PATCH v2 1/2] arm64: versal: Add qspi flash mini u-boot configuration Ashok Reddy Soma
@ 2022-10-12  7:05 ` Ashok Reddy Soma
  2022-10-12  8:54 ` [PATCH v2 0/2] Add quad & octal spi flash mini u-boot configuration files Michal Simek
  2 siblings, 0 replies; 4+ messages in thread
From: Ashok Reddy Soma @ 2022-10-12  7:05 UTC (permalink / raw)
  To: u-boot; +Cc: michal.simek, git, Ashok Reddy Soma

Add configuration file for mini u-boot configuration which runs on a
smaller footprint from on chip memory(OCM). This configuration has
required CONFIG's enabled to support octal spi flash and uses DCC terminal
for console output.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
---

Changes in v2:
 - Run savedefconfig and updated mini config for ospi to align with
   latest Kconfig layout

 configs/xilinx_versal_mini_ospi_defconfig | 70 +++++++++++++++++++++++
 1 file changed, 70 insertions(+)
 create mode 100644 configs/xilinx_versal_mini_ospi_defconfig

diff --git a/configs/xilinx_versal_mini_ospi_defconfig b/configs/xilinx_versal_mini_ospi_defconfig
new file mode 100644
index 0000000000..037d63cd04
--- /dev/null
+++ b/configs/xilinx_versal_mini_ospi_defconfig
@@ -0,0 +1,70 @@
+CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="xilinx_versal_mini_qspi"
+CONFIG_COUNTER_FREQUENCY=100000000
+CONFIG_ARCH_VERSAL=y
+CONFIG_SYS_TEXT_BASE=0xFFFC0000
+CONFIG_SYS_MALLOC_LEN=0x2000
+CONFIG_SYS_MALLOC_F_LEN=0x500
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x80
+# CONFIG_DM_GPIO is not set
+CONFIG_DEFAULT_DEVICE_TREE="versal-mini-ospi-single"
+CONFIG_SYS_PROMPT="Versal> "
+CONFIG_SYS_MEM_RSVD_FOR_MMU=y
+CONFIG_VERSAL_NO_DDR=y
+# CONFIG_PSCI_RESET is not set
+CONFIG_SYS_LOAD_ADDR=0x8000000
+# CONFIG_EXPERT is not set
+# CONFIG_AUTOBOOT is not set
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_BOARD_EARLY_INIT_R=y
+# CONFIG_BOARD_LATE_INIT is not set
+# CONFIG_CMDLINE_EDITING is not set
+# CONFIG_AUTO_COMPLETE is not set
+# CONFIG_SYS_LONGHELP is not set
+# CONFIG_CMD_BDI is not set
+# CONFIG_CMD_CONSOLE is not set
+# CONFIG_CMD_BOOTD is not set
+# CONFIG_CMD_BOOTM is not set
+# CONFIG_CMD_BOOTI is not set
+# CONFIG_CMD_ELF is not set
+# CONFIG_CMD_FDT is not set
+# CONFIG_CMD_GO is not set
+# CONFIG_CMD_RUN is not set
+# CONFIG_CMD_IMI is not set
+# CONFIG_CMD_XIMG is not set
+# CONFIG_CMD_EXPORTENV is not set
+# CONFIG_CMD_IMPORTENV is not set
+# CONFIG_CMD_EDITENV is not set
+# CONFIG_CMD_SAVEENV is not set
+# CONFIG_CMD_ENV_EXISTS is not set
+# CONFIG_CMD_CRC32 is not set
+# CONFIG_CMD_LOADB is not set
+# CONFIG_CMD_LOADS is not set
+# CONFIG_CMD_ECHO is not set
+# CONFIG_CMD_ITEST is not set
+# CONFIG_CMD_SOURCE is not set
+# CONFIG_CMD_SETEXPR is not set
+# CONFIG_NET is not set
+# CONFIG_DM_WARN is not set
+# CONFIG_DM_DEVICE_REMOVE is not set
+# CONFIG_MMC is not set
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SF_DEFAULT_SPEED=30000000
+CONFIG_SPI_FLASH_SOFT_RESET=y
+CONFIG_SPI_FLASH_SOFT_RESET_ON_BOOT=y
+CONFIG_SPI_FLASH_GIGADEVICE=y
+CONFIG_SPI_FLASH_ISSI=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_SPI_FLASH_MT35XU=y
+CONFIG_ARM_DCC=y
+CONFIG_SOC_XILINX_VERSAL=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_CADENCE_QSPI=y
+CONFIG_HAS_CQSPI_REF_CLK=y
+CONFIG_CQSPI_REF_CLK=200000000
+CONFIG_CADENCE_OSPI_VERSAL=y
+# CONFIG_LMB is not set
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 0/2] Add quad & octal spi flash mini u-boot configuration files
  2022-10-12  7:05 [PATCH v2 0/2] Add quad & octal spi flash mini u-boot configuration files Ashok Reddy Soma
  2022-10-12  7:05 ` [PATCH v2 1/2] arm64: versal: Add qspi flash mini u-boot configuration Ashok Reddy Soma
  2022-10-12  7:05 ` [PATCH v2 2/2] arm64: versal: Add octal spi " Ashok Reddy Soma
@ 2022-10-12  8:54 ` Michal Simek
  2 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2022-10-12  8:54 UTC (permalink / raw)
  To: Ashok Reddy Soma, u-boot; +Cc: git



On 10/12/22 09:05, Ashok Reddy Soma wrote:
> Add new configuration files for quad and octal spi flash mini u-boot.
> With these configs's mini u-boot will run from on chip memory(OCM) and
> uses DCC terminal for console output.
> 
> Changes in v2:
>   - Removed configs/xilinx_* from MAINTAINERS as, it is already taken
>   care.
>   - Run savedefconfig and updated mini config to align with latest
>   Kconfig layout
>   - Run savedefconfig and updated mini config for ospi to align with
>     latest Kconfig layout
> 
> Ashok Reddy Soma (2):
>    arm64: versal: Add qspi flash mini u-boot configuration
>    arm64: versal: Add octal spi flash mini u-boot configuration
> 
>   configs/xilinx_versal_mini_ospi_defconfig | 70 ++++++++++++++++++++++
>   configs/xilinx_versal_mini_qspi_defconfig | 73 +++++++++++++++++++++++
>   2 files changed, 143 insertions(+)
>   create mode 100644 configs/xilinx_versal_mini_ospi_defconfig
>   create mode 100644 configs/xilinx_versal_mini_qspi_defconfig
> 


you should also add dtses
And this series creates compilation error

arch/arm/lib/crt0_64.S: Assembler messages:
arch/arm/lib/crt0_64.S:85: Error: constant expression expected at operand 2 -- 
`ldr x0,=((CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_SIZE-400))'
make[1]: *** [scripts/Makefile.build:293: arch/arm/lib/crt0_64.o] Error 1

You should define
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xfffe0000

Thanks,
Michal

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-12  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12  7:05 [PATCH v2 0/2] Add quad & octal spi flash mini u-boot configuration files Ashok Reddy Soma
2022-10-12  7:05 ` [PATCH v2 1/2] arm64: versal: Add qspi flash mini u-boot configuration Ashok Reddy Soma
2022-10-12  7:05 ` [PATCH v2 2/2] arm64: versal: Add octal spi " Ashok Reddy Soma
2022-10-12  8:54 ` [PATCH v2 0/2] Add quad & octal spi flash mini u-boot configuration files Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.