]> git.sur5r.net Git - u-boot/commitdiff
ARM: socfpga: Add DRAM bank size initialization function
authorTien Fong Chee <tien.fong.chee@intel.com>
Tue, 5 Dec 2017 07:58:01 +0000 (15:58 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 18 May 2018 08:30:47 +0000 (10:30 +0200)
Add function for both multiple DRAM bank and single DRAM bank size
initialization. This common functionality could be used by every single
SOCFPGA board.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Tested-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/arm/mach-socfpga/board.c

index c23ac4ead3ed44a433b259cb308ff63e3554699e..38e12a41a305cc7d956c3980b3cab0bece0c946c 100644 (file)
@@ -28,6 +28,13 @@ int board_init(void)
        return 0;
 }
 
+int dram_init_banksize(void)
+{
+       fdtdec_setup_memory_banksize();
+
+       return 0;
+}
+
 #ifdef CONFIG_USB_GADGET
 struct dwc2_plat_otg_data socfpga_otg_data = {
        .usb_gusbcfg    = 0x1417,