[PATCH] ddr: socfpga: stratix10: Use phys_size_t for memory size

2020-08-04 Thread tien . fong . chee
From: Tien Fong Chee Replace with phys_size_t for better scalable. phys_size_t is defined in arch/arm/include/asm/types.h . Signed-off-by: Tien Fong Chee --- drivers/ddr/altera/sdram_s10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/altera/sdram_s10.c b

[PATCH] ddr: socfpga: Fix integer overflow that caused DDR size mismatched

2020-08-04 Thread tien . fong . chee
From: Tien Fong Chee Convert the constant integer to 'phys_size_t' to avoid overflow when calculating the SDRAM size. Signed-off-by: Tien Fong Chee --- drivers/ddr/altera/sdram_soc64.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/

[PATCH] mtd: spi-nor-ids: add Macronix flash entry

2022-04-26 Thread tien . fong . chee
From: Tien Fong Chee Add Macronix mx25u51245g flash entry, so this can be used on SoCFPGA devices. Signed-off-by: Tien Fong Chee --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index

[PATCH] ddr: altera: Ignore bit[7-4] for both seq2core & core2seq handshake in HPS

2022-04-26 Thread tien . fong . chee
From: Tien Fong Chee Bit[7-4] for both register seq2core and core2seq handshake in HPS are not required for triggering DDR re-calibration or resetting EMIF. So, ignoring these bits just for playing it safe. Signed-off-by: Tien Fong Chee --- drivers/ddr/altera/sdram_soc64.h | 2 +- 1 file

[PATCH] ddr: altera: Stratix10: Use phys_size_t for memory size

2022-04-26 Thread tien . fong . chee
From: Tien Fong Chee Replace with phys_size_t for all memory size variables declaration for the sake of scalability. phys_size_t is defined in /arch/arm/include/asm/types.h. Signed-off-by: Tien Fong Chee --- drivers/ddr/altera/sdram_s10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH] intel: n5x: ddr: update license

2022-06-10 Thread tien . fong . chee
From: Tien Fong Chee All the source code of sdram_n5x.c are from Intel, update the license to use both GPL2.0 and BSD-3 Clause because this copy of code may used for open source and internal project. Signed-off-by: Tien Fong Chee --- drivers/ddr/altera/sdram_n5x.c | 4 ++-- 1 file changed, 2

[U-Boot] [PATCH] misc: fs_loader: Switching private data allocation to DM auto allocation

2018-12-10 Thread tien . fong . chee
From: Tien Fong Chee Switching private data manual allocation to driver model auto allocation so users no longer need to deallocate themself because this would be deallocated by driver model when the device is no longer required. Signed-off-by: Tien Fong Chee --- doc/driver-model

[U-Boot] [PATCH] Add support for initializing MMC

2018-12-13 Thread tien . fong . chee
From: Tien Fong Chee Firmware loader would encounter problem if the MMC is accessed before initializing it. This patch would adding the support of initializing MMC before the MMC is accessed by firmware loader. Signed-off-by: Tien Fong Chee --- drivers/misc/fs_loader.c | 33

[U-Boot] [PATCH] Add support for initializing MMC

2018-12-13 Thread tien . fong . chee
From: Tien Fong Chee Firmware loader would encounter problem if the MMC is accessed before initializing it. This patch would adding the support of initializing MMC before the MMC is accessed by firmware loader. Signed-off-by: Tien Fong Chee --- drivers/misc/fs_loader.c | 31

[U-Boot] [PATCH 0/5] Add DMA driver for DMA330 controller

2018-05-31 Thread tien . fong . chee
From: Tien Fong Chee This patchset contains dm driver for DMA330 controller. This series is working on top of u-boot-socfpga.git - http://git.denx.de/u-boot.git . Tien Fong Chee (5): drivers: dma: Enable DMA-330 driver support drivers: dma: Add function to zeroes a range of destination

[U-Boot] [PATCH 1/5] drivers: dma: Enable DMA-330 driver support

2018-05-31 Thread tien . fong . chee
From: Tien Fong Chee Enable DMAC driver support for DMA-330 controller. The driver is also compatible to PL330 product. Signed-off-by: Tien Fong Chee --- drivers/dma/Kconfig |9 +- drivers/dma/Makefile |1 + drivers/dma/dma330.c | 1514

[U-Boot] [PATCH 2/5] drivers: dma: Add function to zeroes a range of destination such as memory

2018-05-31 Thread tien . fong . chee
From: Tien Fong Chee This new DMA class function enables DMA being used for initializing a range of destination such as memory to zeros. This is quite useful to help accelerating the performance in scrubbing memory when ECC is enabled. Signed-off-by: Tien Fong Chee --- drivers/dma/dma

[U-Boot] [PATCH 3/5] drivers: dma: Factor out dma_get_device from DMA class function

2018-05-31 Thread tien . fong . chee
From: Tien Fong Chee Factor out the dma_get_device from DMA class function so caller can set some configuration and changes on the DMA device structure which is return by calling dma_get_device before device instance is processed by DMA class functions. Signed-off-by: Tien Fong Chee

[U-Boot] [PATCH 5/5] arm: dts: socfpga: stratix10: update pdma

2018-05-31 Thread tien . fong . chee
From: Tien Fong Chee Update pdma properties for Stratix 10 Signed-off-by: Tien Fong Chee --- arch/arm/dts/socfpga_stratix10.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/socfpga_stratix10.dtsi b/arch/arm/dts/socfpga_stratix10.dtsi index ccd3f32

[U-Boot] [PATCH 4/5] include: dma: Update the function description for dma_memcpy

2018-05-31 Thread tien . fong . chee
From: Tien Fong Chee Update the dma_memcpy description on return argument for DMA330 driver. Signed-off-by: Tien Fong Chee --- include/dma.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dma.h b/include/dma.h index 0a0c9dd..b825c1e 100644 --- a/include/dma.h

[U-Boot] [PATCH] common/memsize.c: Increase save array for supporting memory size > 4GB

2018-06-13 Thread tien . fong . chee
From: Tien Fong Chee In ARM 64-bits, memory size can be supported is more than 4GB, hence increasing save array is needed to cope with testing larger memory. Signed-off-by: Tien Fong Chee --- common/memsize.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common

[U-Boot] [PATCH v2] common/memsize.c: Increase save array for supporting memory size > 4GB

2018-06-20 Thread tien . fong . chee
From: Tien Fong Chee In ARM 64-bits, memory size can be supported is more than 4GB, hence increasing save array is needed to cope with testing larger memory. Signed-off-by: Tien Fong Chee --- Changes in v2: - Change save array size to save[BITS_PER_LONG - 1] --- common/memsize.c | 2 +- 1

[U-Boot] [PATCH v3 1/3] doc: Add new doc for file system firmware loader driver model

2018-06-25 Thread tien . fong . chee
From: Tien Fong Chee Provide information about - overview of file system firmware loader driver model - describe storage device and partition in device tree source - describe fie system firmware loader API Signed-off-by: Tien Fong Chee --- doc/driver-model/fs_firmware_loader.txt | 129

[U-Boot] [PATCH v3 0/3] Generic file system firmware loader DM

2018-06-25 Thread tien . fong . chee
From: Tien Fong Chee This patchset contains generic file system loader DM which is very close to Linux firmware loader but for U-Boot framework. Generic file system firmware loader can be used load whatever into target location, and then consumer driver would use it to program whatever, ie. the

[U-Boot] [PATCH v3 3/3] common: Generic loader for file system

2018-06-25 Thread tien . fong . chee
From: Tien Fong Chee This is file system generic loader which can be used to load the file image from the storage into target such as memory. The consumer driver would then use this loader to program whatever, ie. the FPGA device. Signed-off-by: Tien Fong Chee --- drivers/misc/Kconfig

[U-Boot] [PATCH v3 2/3] doc: dtbinding: Add file system firmware loader binding document

2018-06-25 Thread tien . fong . chee
From: Tien Fong Chee Add a document to describe file system firmware loader binding information. Signed-off-by: Tien Fong Chee --- doc/device-tree-bindings/chosen.txt | 22 doc/device-tree-bindings/misc/fs_loader.txt | 52 + 2 files changed, 74

[U-Boot] [PATCH v4 0/6] Generic file system firmware loader DM

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee This patchset contains generic file system loader DM which is very close to Linux firmware loader but for U-Boot framework. Generic file system firmware loader can be used load whatever into target location, and then consumer driver would use it to program whatever, ie. the

[U-Boot] [PATCH v4 1/6] cmd: ubifs: Move ubifs_initialized checking into cmd_ubifs_umount()

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee cmd_ubifs_umount() function would be called directly instead of involving whole command machinery in generic firmware loader, so checking on ubifs_initialized status need to be done in cmd_ubifs_umount() without breaking original functionality design. Signed-off-by: Tien

[U-Boot] [PATCH v4 2/6] cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount()

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee cmd_ubifs_mount() function would be called directly instead of involving whole command machinery for mounting ubifs in generic firmware loader, so some checking codes need to be factored out into cmd_ubifs_mount() without breaking original functionality design. Signed-off

[U-Boot] [PATCH v4 3/6] block: Add a function to find block device descriptor

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee Add a function to find the block device descriptor of the parent device. Signed-off-by: Tien Fong Chee --- drivers/block/blk-uclass.c | 23 +++ include/blk.h | 9 + 2 files changed, 32 insertions(+) diff --git a/drivers/block/blk

[U-Boot] [PATCH v4 4/6] doc: Add new doc for file system firmware loader driver model

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee Provide information about - overview of file system firmware loader driver model - describe storage device and partition in device tree source - describe fie system firmware loader API Signed-off-by: Tien Fong Chee --- doc/driver-model/fs_firmware_loader.txt | 133

[U-Boot] [PATCH v4 5/6] doc: dtbinding: Add file system firmware loader binding document

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee Add a document to describe file system firmware loader binding information. Signed-off-by: Tien Fong Chee --- doc/device-tree-bindings/chosen.txt | 21 + doc/device-tree-bindings/misc/fs_loader.txt | 48 + 2 files changed

[U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee This is file system generic loader which can be used to load the file image from the storage into target such as memory. The consumer driver would then use this loader to program whatever, ie. the FPGA device. Signed-off-by: Tien Fong Chee --- drivers/misc/Kconfig

[U-Boot] [PATCH] ddr: altera: Add ECC DRAM scrubbing support for Stratix 10

2018-07-23 Thread tien . fong . chee
From: Tien Fong Chee The SDRAM must first be rewritten by zeroes if ECC is used to initialize the ECC metadata. Make the CPU overwrite the DRAM with zeroes in such a case. This scrubbing implementation turns the caches on temporarily, then overwrites the whole RAM with zeroes, flushes the caches

[U-Boot] [PATCH 0/3] Example of using generic FS loader with FPGA manager

2018-07-26 Thread tien . fong . chee
From: Tien Fong Chee The purpose of this patchset provides example of using the generic FS loader which is currently under review at /data/tfchee/a10_upstreaming/mainstream/17_1_18/patches/firmware_loader_usage . Basically, the whole machanism is working in two ways: 1. SPL -> spl_board_i

[U-Boot] [PATCH 1/3] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA loadfs

2018-07-26 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA drivers to support FPGA loadfs to program FPGA. The drivers are designed based on generic firmware loader framework, specific firmware loader handling is defined in fpga_manager_arria10.c. These drivers can handle FPGA program operation from loading RBF image in

[U-Boot] [PATCH 3/3] arm: socfpga: Add Arria 10 SoCFPGA programming interface

2018-07-26 Thread tien . fong . chee
From: Tien Fong Chee Add code necessary into the FPGA driver framework in U-Boot so it can be used via the 'fpga' command for programing Arria 10 SoCFPGA. Signed-off-by: Tien Fong Chee --- cmd/fpga.c|2 +- drivers/fpga/alter

[U-Boot] [PATCH 2/3] enable fpga loadfs

2018-07-26 Thread tien . fong . chee
From: Tien Fong Chee Signed-off-by: Tien Fong Chee --- arch/arm/dts/socfpga_arria10.dtsi| 12 arch/arm/dts/socfpga_arria10_socdk_sdmmc.dts |6 ++ configs/socfpga_arria10_defconfig| 12 3 files changed, 30 insertions(+), 0 deletions

[U-Boot] [PATCH v2 1/4] spl: Kconfig: Replace CONFIG_SPL_FAT_SUPPORT with CONFIG_SPL_FS_FAT

2019-01-22 Thread tien . fong . chee
From: Tien Fong Chee Replace CONFIG_SPL_FAT_SUPPORT with CONFIG_SPL_FS_FAT so obj-$(CONFIG_$(SPL_)FS_FAT) can be used to control the build in both SPL and U-Boot. Signed-off-by: Tien Fong Chee --- arch/arm/cpu/armv8/zynqmp/Kconfig| 2 +- arch/arm/mach-imx/spl.c

[U-Boot] [PATCH v2 2/4] spl: fat/fs: Add option to include/exclude FAT write build in SPL

2019-01-22 Thread tien . fong . chee
From: Tien Fong Chee Most of the time SPL only needs very simple FAT reading, so having CONFIG_IS_ENABLED(FAT_WRITE) to exclude it from SPL build would help to save 64KiB default max clustersize from memory. Signed-off-by: Tien Fong Chee --- Changes in v2: - Changed to CONFIG_IS_ENABLED

[U-Boot] [PATCH v2 3/4] spl: Kconfig: Replace CONFIG_SPL_EXT_SUPPORT to CONFIG_SPL_FS_EXT4

2019-01-22 Thread tien . fong . chee
From: Tien Fong Chee Replace CONFIG_SPL_EXT_SUPPORT to CONFIG_SPLY_FS_EXT4 so both obj-$(CONFIG_$(SPL_)FS_EXT4) and CONFIG_IS_ENABLED(FS_EXT4) can be used to control the build in both SPL and U-Boot. Signed-off-by: Tien Fong Chee --- arch/arm/mach-k3/am6_init.c| 2 +- arch/arm

[U-Boot] [PATCH v2 4/4] spl: fat/fs: Add control to build FS EXT4 in SPL

2019-01-22 Thread tien . fong . chee
From: Tien Fong Chee CONFIG_SPL_FS_EXT4 can be used to include/exclude the FS EXT4 from SPL build. Excluding the FS EXT4 from SPL build can help to save 20KiB memory. Signed-off-by: Tien Fong Chee --- changes in v2: - Changed both config checking SPL_BUILD and FS_EXT4 to CONFIG_IS_ENABLED

[U-Boot] [PATCH v3] misc: fs_loader: Add support for initializing block device

2019-01-24 Thread tien . fong . chee
From: Tien Fong Chee Firmware loader would encounter problem if the block device is accessed before initializing it. This patch would adding the support of probing block device and initializing block before the block device is accessed by firmware loader. Signed-off-by: Tien Fong Chee

[U-Boot] [PATCH v4] misc: fs_loader: Add support for initializing block device

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Firmware loader would encounter problem if the block device is accessed before initializing it. This patch would adding the support of probing block device and initializing block before the block device is accessed by firmware loader. Signed-off-by: Tien Fong Chee

[U-Boot] [PATCH v2 2/2] fs: fat: Reduce default max clustersize 64KiB from malloc pool

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Release cluster block immediately when no longer use would help to reduce 64KiB memory allocated to the memory pool. Signed-off-by: Tien Fong Chee --- changes for v2 - Assigned NULL to itr after free. - Added NULL checking to itr, avoid freeing twice. --- fs/fat/fat.c

[U-Boot] [PATCH v2 1/2] fs: fat: dynamically allocate memory for temporary buffer

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Drop the statically allocated get_contents_vfatname_block and dynamically allocate a buffer only if required. This saves 64KiB of memory. Signed-off-by: Stefan Agner Signed-off-by: Tien Fong Chee --- changes for v2 - Removed the change for debug message. - Set

[U-Boot] [PATCH v7 2/7] ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Add default fitImage file bundling FPGA bitstreams for Arria10. Signed-off-by: Tien Fong Chee --- board/altera/arria10-socdk/fit_spl_fpga.its | 31 + 1 file changed, 31 insertions(+) create mode 100644 board/altera/arria10-socdk

[U-Boot] [PATCH v7 6/7] ARM: socfpga: Synchronize the configuration for A10 SoCDK

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Update the default configuration file to enable the necessary functionality the get the kit working. Signed-off-by: Tien Fong Chee --- changes for v7 - Keep minimal configs --- configs/socfpga_arria10_defconfig | 17 +++-- 1 file changed, 11 insertions(+), 6

[U-Boot] [PATCH v7 0/7] Add support for loading FPGA bitstream

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee These series of patches enable peripheral bitstream being programmed into FPGA to get the DDR up running. This's also called early IO release, because the peripheral bitstream is only initializing FPGA IOs, PLL, IO48 and DDR. Once DDR is up running, core bitstream fro

[U-Boot] [PATCH v7 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee This patch adds description on properties about file name used for both peripheral bitstream and core bitstream. Signed-off-by: Tien Fong Chee --- changes for v7 - Provided example of setting FPGA FIT image for both early IO release and full release FPGA configuration

[U-Boot] [PATCH v7 7/7] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee After some series of patches to maximise reusable of memory pool, here come to result of reasonable size required for whole SDMMC boot working on A10 SoCDK. Size required come from default max cluster(0x10) + others(0x2000) + additional memory for headroom(0x3000

[U-Boot] [PATCH v7 4/7] ARM: socfpga: Add the configuration for FPGA SoCFPGA A10 SoCDK

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Update the default configuration file to enable the necessary functionality to get the SoCFPGA loadfs driver support. This would enable the implementation of programming bitstream into FPGA from MMC. Signed-off-by: Tien Fong Chee --- changes for v7 - Removed limit set

[U-Boot] [PATCH v7 3/7] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA driver to support program FPGA with FPGA bitstream loading from filesystem. The driver are designed based on generic firmware loader framework. The driver can handle FPGA program operation from loading FPGA bitstream in flash to memory and then to program FPGA

[U-Boot] [PATCH v7 5/7] spl : socfpga: Implement fpga bitstream loading with socfpga loadfs

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Add support for loading FPGA bitstream to get DDR up running before U-Boot is loaded into DDR. Boot device initialization, generic firmware loader and SPL FAT support are required for this whole mechanism to work. Signed-off-by: Tien Fong Chee --- changes for v7

[U-Boot] [PATCH v3 1/2] fs: fat: dynamically allocate memory for temporary buffer

2019-02-10 Thread tien . fong . chee
From: Tien Fong Chee Drop the statically allocated get_contents_vfatname_block and dynamically allocate a buffer only if required. This saves 64KiB of memory. Signed-off-by: Stefan Agner Signed-off-by: Tien Fong Chee --- changes for v3 - Removed the cast on actsize --- fs/fat/fat.c | 18

[U-Boot] [PATCH v3 2/2] fs: fat: Reduce default max clustersize 64KiB from malloc pool

2019-02-10 Thread tien . fong . chee
From: Tien Fong Chee Release cluster block immediately when no longer use would help to reduce 64KiB memory allocated to the memory pool. Signed-off-by: Tien Fong Chee --- changes for v3 - Dropped the if conditional because free(NULL) is valid. --- fs/fat/fat.c | 10 +- 1 file

[U-Boot] [PATCH v2] Add support for initializing MMC

2018-12-29 Thread tien . fong . chee
From: Tien Fong Chee Firmware loader would encounter problem if the MMC is accessed before initializing it. This patch would adding the support of probing block device and initializing MMC before the MMC is accessed by firmware loader. Signed-off-by: Tien Fong Chee --- Changes in v2

[U-Boot] [PATCH v2] misc: fs_loader: Add support for initializing MMC

2018-12-29 Thread tien . fong . chee
From: Tien Fong Chee Firmware loader would encounter problem if the MMC is accessed before initializing it. This patch would adding the support of probing block device and initializing MMC before the MMC is accessed by firmware loader. Signed-off-by: Tien Fong Chee --- Changes in v2

[U-Boot] [PATCH 0/6] Add support for loading FPGA bitstream

2018-12-30 Thread tien . fong . chee
From: Tien Fong Chee These series of patches enable peripheral bitstream being programmed into FPGA to get the DDR up running. This's also called early IO release, because the peripheral bitstream is only initializing FPGA IOs, PLL, IO48 and DDR. Once DDR is up running, core bitstream fro

[U-Boot] [PATCH 1/6] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2018-12-30 Thread tien . fong . chee
From: Tien Fong Chee This patch adds description on properties about file name used for both peripheral bitstream and core bitstream. Signed-off-by: Tien Fong Chee --- .../fpga/altera-socfpga-a10-fpga-mgr.txt | 21 1 files changed, 21 insertions(+), 0

[U-Boot] [PATCH 2/6] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2018-12-30 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA driver to support program FPGA with FPGA bitstream loading from filesystem. The driver are designed based on generic firmware loader framework. The driver can handle FPGA program operation from loading FPGA bitstream in flash to memory and then to program FPGA

[U-Boot] [PATCH 5/6] spl : socfpga: Implement fpga bitstream loading with socfpga loadfs

2018-12-30 Thread tien . fong . chee
From: Tien Fong Chee Add support for loading FPGA bitstream to get DDR up running before U-Boot is loaded into DDR. Boot device initialization, generic firmware loader and SPL FAT support are required for this whole mechanism to work. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga

[U-Boot] [PATCH 4/6] ARM: dts: socfpga: Add missing SDMMC reset

2018-12-30 Thread tien . fong . chee
From: Tien Fong Chee The SDMMC reset is missing from DT, so the reset manager cannot unreset the SDMMC. Add the missing DT reset entry. Signed-off-by: Tien Fong Chee --- arch/arm/dts/socfpga_arria10.dtsi |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts

[U-Boot] [PATCH 6/6] ARM: socfpga: Synchronize the configuration for A10 SoCDK

2018-12-30 Thread tien . fong . chee
From: Marek Vasut Update the default configuration file to enable the necessary functionality the get the kit working. That includes SPL SD/MMC support, USB, and I2C. Signed-off-by: Marek Vasut Signed-off-by: Tien Fong Chee --- configs/socfpga_arria10_defconfig | 38

[U-Boot] [PATCH 3/6] ARM: socfpga: Add the configuration for FPGA SoCFPGA A10 SoCDK

2018-12-30 Thread tien . fong . chee
From: Tien Fong Chee Update the default configuration file to enable the necessary functionality to get the SoCFPGA loadfs driver support. This would enable the implementation of programming bitstream into FPGA from MMC. Signed-off-by: Tien Fong Chee --- configs/socfpga_arria10_defconfig

[U-Boot] [PATCH 1/2] fs: fat: dynamically allocate memory for temporary buffer

2019-01-16 Thread tien . fong . chee
From: Stefan Agner Drop the statically allocated get_contents_vfatname_block and dynamically allocate a buffer only if required. This saves 64KiB of memory. Signed-off-by: Stefan Agner Signed-off-by: Tien Fong Chee --- fs/fat/fat.c | 19 +-- 1 files changed, 13 insertions

[U-Boot] [PATCH 2/2] fs: fat: Reduce default max clustersize 64KiB from malloc pool

2019-01-16 Thread tien . fong . chee
From: Tien Fong Chee Release cluster block immediately when no longer use would help to reduce 64KiB memory allocated to the memory pool. Signed-off-by: Tien Fong Chee --- fs/fat/fat.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/fs/fat/fat.c b/fs/fat

[U-Boot] [PATCH] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-01-16 Thread tien . fong . chee
From: Tien Fong Chee This is minimum memory pool size required to get SPL booting to U-Boot, such as FPGA program and loading U-Boot image from FAT. Signed-off-by: Tien Fong Chee --- include/configs/socfpga_common.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a

[U-Boot] [PATCH] spl: fat/fs: Add control to build FS EXT4 in SPL

2019-01-16 Thread tien . fong . chee
From: Tien Fong Chee CONFIG_SPL_EXT_SUPPORT can be used to include/exclude the FS EXT4 from SPL build. Excluding the FS EXT4 from SPL build can help to save 20KiB memory. Signed-off-by: Tien Fong Chee --- fs/fs.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs

[U-Boot] [PATCH] spl: fat/fs: Add option to include/exclude FAT write build in SPL

2019-01-16 Thread tien . fong . chee
From: Tien Fong Chee Most of the time SPL only needs very simple FAT reading, so having CONFIG_SPL_FAT_WRITE to exclude or undefined would help to save 64KiB default max clustersize from memory. Signed-off-by: Tien Fong Chee --- common/spl/Kconfig |7 +++ fs/fat/Makefile|7

[U-Boot] [PATCH 0/9] Add support for loading FPGA bitstream

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee These series of patches enable peripheral bitstream being programmed into FPGA to get the DDR up running. This's also called early IO release, because the peripheral bitstream is only initializing FPGA IOs, PLL, IO48 and DDR. Once DDR is up running, core bitstream fro

[U-Boot] [PATCH 1/9] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee This patch adds description on properties about file name used for both peripheral bitstream and core bitstream. Signed-off-by: Tien Fong Chee --- .../fpga/altera-socfpga-a10-fpga-mgr.txt |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH 2/9] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA driver to support program FPGA with FPGA bitstream loading from filesystem. The driver are designed based on generic firmware loader framework. The driver can handle FPGA program operation from loading FPGA bitstream in flash to memory and then to program FPGA

[U-Boot] [PATCH 4/9] ARM: socfpga: Bundle U-Boot fitImage into SFP on Arria10

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee Bundle U-Boot fitImage containing U-Boot and FPGA bitstream into the u-boot-with-spl.sfp on Arria10. This lets U-Boot operate in a very similar fashion to Gen5, where the U-Boot binary got loaded by the SPL from a uImage concatenated at the end of the SPL SFP image. On Gen10

[U-Boot] [PATCH 3/9] spl : socfpga: Implement fpga bitstream loading with socfpga loadfs

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee Add support for loading FPGA bitstream to get DDR up running before U-Boot is loaded into DDR. Boot device initialization, generic firmware loader and SPL FAT support are required for this whole mechanism to work. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga

[U-Boot] [PATCH 8/9] ARM: socfpga: Add default fitImage for Arria10 SoCDK

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee Add default fitImage file bundling U-Boot and FPGA bitstream for Arria10. Signed-off-by: Marek Vasut Signed-off-by: Tien Fong Chee --- board/altera/arria10-socdk/fit_spl_fpga.its | 54 +++ 1 files changed, 54 insertions(+), 0 deletions

[U-Boot] [PATCH 6/9] ARM: socfpga: Set default DTB address on A10

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee Set default DT blob address on A10 SoCDK, since this SoC uses OF separate configuration. The 0xf address is just below the text base and still leaves enough room for the DT to grow. Signed-off-by: Marek Vasut Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga

[U-Boot] [PATCH 9/9] ARM: socfpga: Synchronize the configuration for A10 SoCDK

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee Update the default configuration file to enable the necessary functionality the get the kit working. That includes fitImage loading in SPL, SPL SD/MMC support, USB, I2C. Signed-off-by: Marek Vasut Signed-off-by: Tien Fong Chee --- configs/socfpga_arria10_defconfig | 42

[U-Boot] [PATCH 5/9] ARM: socfpga: Add SPL fitImage config match

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee Add empty SPL fitImage configuration match. This can be extended if there is ever need to support multiple boards with single SFP image. Signed-off-by: Marek Vasut --- arch/arm/mach-socfpga/spl_a10.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions

[U-Boot] [PATCH 7/9] ARM: socfpga: Use custom header target buffer in SPL

2018-11-21 Thread tien . fong . chee
From: Tien Fong Chee Allocate buffers from OCRAM heap for the image headers in SPL on Arria10, since DRAM is not available at that point. This allows U-Boot to load the fitImage header, parse it, extract the FPGA bitstream section from it, program the FPGA and make DRAM available. Signed-off-by

[U-Boot] [PATCH 1/2] fs/fat/fatwrite: Local variable as buffer to store dir_slot entries

2016-07-14 Thread Tien Fong Chee
file name entry, each entry use 32 bytes, one entry can store up to 13 characters. The maximum number of entry possible is 20. So, total size is 32*20=640bytes. Signed-off-by: Genevieve Chan Signed-off-by: Tien Fong Chee Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: ChinLiang Cc: Vagrant Cascadian Cc

[U-Boot] [PATCH 2/2] fs/fat/fat: Optimizes memory size with single global variable instead of 3

2016-07-14 Thread Tien Fong Chee
Single 64KB get_contents_vfatname_block global variable would be used for all FAT implementation instead of allocating additional two global variables which are get_denfromdir_block and do_fat_read_at_block. This implementation can help in saving up 128KB memory space. Signed-off-by: Tien Fong

[U-Boot] [PATCH 1/2] fs/fat/fatwrite: Local variable as buffer to store dir_slot entries

2016-07-14 Thread Tien Fong Chee
file name entry, each entry use 32 bytes, one entry can store up to 13 characters. The maximum number of entry possible is 20. So, total size is 32*20=640bytes. Signed-off-by: Genevieve Chan Signed-off-by: Tien Fong Chee Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: ChinLiang Cc: Vagrant Cascadian Cc

Re: [U-Boot] [PATCH 2/2] fs/fat/fat: Optimizes memory size with single global variable instead of 3

2016-07-14 Thread Tien Fong Chee
Dear Benoît, On Wed, 2016-07-13 at 12:56 +0200, Benoît Thébaudeau wrote: > Dear Tien Fong Chee, > > On Jul 13, 2016 at 11:01 AM, Tien Fong Chee wrote: > > Single 64KB get_contents_vfatname_block global variable would be > > used for > > all FAT implementation instead o

Re: [U-Boot] [PATCH 2/2] fs/fat/fat: Optimizes memory size with single global variable instead of 3

2016-07-18 Thread Tien Fong Chee
On Fri, 2016-07-15 at 01:37 +0200, Benoît Thébaudeau wrote: > Dear Tien Fong, > > On Thu, Jul 14, 2016 at 12:48 PM, Tien Fong Chee > wrote: > > Dear Benoît, > > > > On Wed, 2016-07-13 at 12:56 +0200, Benoît Thébaudeau wrote: > > > Dear Tien Fong Chee, > &

Re: [U-Boot] [PATCH 1/2] fs/fat/fatwrite: Local variable as buffer to store dir_slot entries

2016-07-18 Thread Tien Fong Chee
On Thu, 2016-07-14 at 15:00 -0600, Stephen Warren wrote: > On 07/13/2016 03:01 AM, Tien Fong Chee wrote: > > fill_dir_slot use get_contents_vfatname_block as a temporary buffer > > for > > constructing a list of dir_slot entries. To save the memory and > > providing >

[U-Boot] [PATCH] ARM:dts: Added device tree for socfpga arria10 development kit sdmmc

2016-09-30 Thread Tien Fong Chee
This is initial version of device tree for the Intel socfpga arria10 development kit with sdmmc. Signed-off-by: Tien Fong Chee Cc: Marek Vasut Cc: Stefan Roese Cc: Dinh Nguyen Cc: Chin Liang See Cc: Tien Fong --- arch/arm/dts/socfpga_arria10.dtsi | 866

[U-Boot] [PATCH] ARM:dts: Added device tree for socfpga arria10 development kit sdmmc

2016-10-04 Thread Tien Fong Chee
This is initial version of device tree for the Intel socfpga arria10 development kit with sdmmc. Signed-off-by: Tien Fong Chee Cc: Marek Vasut Cc: Stefan Roese Cc: Dinh Nguyen Cc: Chin Liang See Cc: Tien Fong --- arch/arm/dts/socfpga_arria10.dtsi | 858

Re: [U-Boot] [PATCH] ARM:dts: Added device tree for socfpga arria10 development kit sdmmc

2016-10-04 Thread Tien Fong Chee
On Fri, 2016-09-30 at 19:29 +0200, Marek Vasut wrote: > On 09/30/2016 10:12 AM, Tien Fong Chee wrote: > > This is initial version of device tree for the Intel socfpga > > arria10 > > development kit with sdmmc. > > > > Signed-off-by: Tien Fong Chee > >

Re: [U-Boot] [PATCH] ARM:dts: Added device tree for socfpga arria10 development kit sdmmc

2016-10-04 Thread Tien Fong Chee
On Fri, 2016-09-30 at 10:28 -0500, Dinh Nguyen wrote: > > On 09/30/2016 03:12 AM, Tien Fong Chee wrote: > > This is initial version of device tree for the Intel socfpga > > arria10 > > I would think that it's still an Altera SOCFPGA. > Okay. > > development

[U-Boot] [PATCH] serial: Enable checking UART is ready for console based on device tree

2016-07-26 Thread Tien Fong Chee
This patch would do checking on device tree to ensure the UART exist in the system and ready for console before setting have_console to true. This is required to avoid unexpected behavior such as hang during UART initialization. Signed-off-by: Tien Fong Chee Cc: Dinh Nguyen Cc: Dinh Nguyen Cc

Re: [U-Boot] [PATCH] serial: Enable checking UART is ready for console based on device tree

2016-07-26 Thread Tien Fong Chee
On Tue, 2016-07-26 at 15:20 +0200, Marek Vasut wrote: > On 07/26/2016 12:55 PM, Tien Fong Chee wrote: > > This patch would do checking on device tree to ensure the UART > > exist > > in the system and ready for console before setting have_console to > > true. &g

[U-Boot] [PATCH 1/2] fs/fat/fatwrite: Local variable as buffer to store dir_slot entries

2016-07-27 Thread Tien Fong Chee
file name entry, each entry use 32 bytes, one entry can store up to 13 characters. The maximum number of entry possible is 20. So, total size is 32*20=640bytes. Signed-off-by: Genevieve Chan Signed-off-by: Tien Fong Chee --- Changes for V2 - Removed extra space Cc: Dinh Nguyen Cc: Dinh Nguyen

[U-Boot] [PATCH 2/2] fs/fat: Optimizes memory size with single global variable instead of 3

2016-07-27 Thread Tien Fong Chee
Single 64KB get_contents_vfatname_block global variable would be used for all FAT implementation instead of allocating additional two global variables which are get_denfromdir_block and do_fat_read_at_block. This implementation can help in saving up 128KB memory space. Signed-off-by: Tien Fong

[U-Boot] [PATCH] ARM: socfpga: Fix broken implementation and enhancing boot header

2017-03-28 Thread tien . fong . chee
From: "Chee, Tien Fong" Fixing the broken implementation caused by the patch commit:ce62e57fc57177352a02b76dace0173bd13404b6, ARM: boot0 hook: remove macro, include whole header file. This patch also enhances boot header to contain more special data. Signed-off-by: Chee, Tien Fong --- arch/arm

[U-Boot] [PATCH] ARM: socfpga: boot0 hook: remove macro from boot0 header file

2017-03-28 Thread tien . fong . chee
From: "Chee, Tien Fong" Commit ce62e57fc571 ("ARM: boot0 hook: remove macro, include whole header file") miss out cleaning macro in this header file, and this has broken implementation of a boot header capability in socfpga SPL. Remove the macro in this file, and recovering it back to proper func

[U-Boot] [PATCH] ARM: socfpga: boot0 hook: remove macro from boot0 header file

2017-03-28 Thread tien . fong . chee
From: "Chee, Tien Fong" Commit ce62e57fc571 ("ARM: boot0 hook: remove macro, include whole header file") miss out cleaning macro in this header file, and this has broken implementation of a boot header capability in socfpga SPL. Remove the macro in this file, and recovering it back to proper func

[U-Boot] [PATCH v11 0/6] Add Intel Arria 10 SoC FPGA driver

2017-07-03 Thread tien . fong . chee
From: Tien Fong Chee This is the 11th version of patchset to adds support for Intel Arria 10 SoC FPGA driver. This version mainly resolved comments from Dinh in [v10]. This series is working on top of u-boot-socfpga.git - http://git.denx.de/u-boot-socfpga.git [v10]: https://www.mail-archive.com

[U-Boot] [PATCH v11 0/6] Add Intel Arria 10 SoC FPGA driver

2017-07-03 Thread tien . fong . chee
From: Tien Fong Chee This is the 11th version of patchset to adds support for Intel Arria 10 SoC FPGA driver. This version mainly resolved comments from Dinh in [v10]. This series is working on top of u-boot-socfpga.git - http://git.denx.de/u-boot-socfpga.git [v10]: https://www.mail-archive.com

[U-Boot] [PATCH v11 1/6] arm: socfpga: Remove unused passing parameter of socfpga_bridges_reset

2017-07-03 Thread tien . fong . chee
From: Tien Fong Chee Remove parameter from socfpga_bridges_reset(), and keeping this function for single purpose which is just triggering reset on bridges. socfpga_reset_deassert_bridges_handoff() can be called for releasing reset on any bridges based on the bridge setting defined in fdt

[U-Boot] [PATCH v11 6/6] arm: socfpga: Add FPGA driver support for Arria 10

2017-07-03 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA driver support for Arria 10. Signed-off-by: Tien Fong Chee Reviewed-by: Ley Foon Tan Reviewed-by: Dinh Nguyen --- arch/arm/mach-socfpga/include/mach/fpga_manager.h | 2 + .../include/mach/fpga_manager_arria10.h| 100 + configs

[U-Boot] [PATCH v11 2/6] arm: socfpga: Restructure FPGA driver in the preparation to support A10

2017-07-03 Thread tien . fong . chee
From: Tien Fong Chee Move FPGA driver which is Gen5 specific code into Gen5 driver file and keeping common FPGA driver intact. All the changes are still keeping in driver/fpga/ and no functional change. Subsequent patch would move FPGA manager driver from arch/arm into driver/fpga/. Signed-off

[U-Boot] [PATCH v11 4/6] kconfig: Convert FPGA_SOCFPGA configuration to Kconfig

2017-07-03 Thread tien . fong . chee
From: Tien Fong Chee This converts the following to Kconfig: CONFIG_FPGA_SOCFPGA Signed-off-by: Tien Fong Chee Reviewed-by: Ley Foon Tan Reviewed-by: Dinh Nguyen --- configs/socfpga_arria5_defconfig | 1 + configs/socfpga_cyclone5_defconfig | 1 + configs

[U-Boot] [PATCH v11 3/6] kconfig: Convert FPGA and FPGA_ALTERA configuration to Kconfig

2017-07-03 Thread tien . fong . chee
From: Tien Fong Chee This converts the following to Kconfig: CONFIG_FPGA CONFIG_FPGA_ALTERA Signed-off-by: Tien Fong Chee Reviewed-by: Ley Foon Tan Reviewed-by: Dinh Nguyen --- configs/astro_mcf5373l_defconfig| 1 + configs/theadorable_debug_defconfig | 1 + configs

[U-Boot] [PATCH v11 5/6] drivers: Enable FPGA driver build on SPL

2017-07-03 Thread tien . fong . chee
From: Tien Fong Chee Enable FPGA driver build for SPL because FPGA driver is needed for SPL to configure and getting DDR up before loading U-boot into DDR and booting from there. Signed-off-by: Tien Fong Chee Reviewed-by: Ley Foon Tan Reviewed-by: Dinh Nguyen --- drivers/Makefile | 1 + 1

  1   2   3   4   5   >