dm: Move towards completing CONFIG_BLK migration
Subsystems (11)
PATCH 48/93 arm: Remove imx6q_logic board
In reply to Adam FordHi Adam,
Quoted 14 lines · Adam Ford
Quoted 4 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.NAK. I disagree with your assessment.
make
imx6q_logic_defconfig
cat .config | grep BLKCONFIG_BLK=yCONFIG_SPL_BLK=y
Quoted 5 lines
Like the other board, I think you're looking for
CONFIG_DM_BLKwhen you should be looking forCONFIG_BLKwhich is dependent on DMadam
Yes it is the latter one that changed, as per my other emails. I changed the default for SPL to n, which fixed some boards but unfortunately broke others.
Regards,
Simon
PATCH 49/93 arm: Remove zc5202 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/el/el6x/Kconfig | 25 -- board/el/el6x/MAINTAINERS | 8 - board/el/el6x/Makefile | 5 - board/el/el6x/el6x.c | 631 ---------------------------------- configs/zc5202_defconfig | 42 --- configs/zc5601_defconfig | 41 --- include/configs/zc5202.h | 30 -- include/configs/zc5601.h | 28 -- 9 files changed, 811 deletions(-) delete mode 100644 board/el/el6x/Kconfig delete mode 100644 board/el/el6x/MAINTAINERS delete mode 100644 board/el/el6x/Makefile delete mode 100644 board/el/el6x/el6x.c delete mode 100644 configs/zc5202_defconfig delete mode 100644 configs/zc5601_defconfig delete mode 100644 include/configs/zc5202.h delete mode 100644 include/configs/zc5601.h
arch/arm/mach-imx/mx6/Kconfig +0 -1
@@ -532,7 +532,6 @@ source "board/bticino/mamoj/Kconfig" source "board/compulab/cm_fx6/Kconfig" source "board/congatec/cgtqmx6eval/Kconfig" source "board/dhelectronics/dh_imx6/Kconfig" -source "board/el/el6x/Kconfig" source "board/embest/mx6boards/Kconfig" source "board/engicam/imx6q/Kconfig" source "board/engicam/imx6ul/Kconfig"
board/el/el6x/Kconfig deleted +0 -25
@@ -1,25 +0,0 @@ -if TARGET_ZC5202 - -config SYS_BOARD - default "el6x" - -config SYS_VENDOR - default "el" - -config SYS_CONFIG_NAME - default "zc5202" - -endif - -if TARGET_ZC5601 - -config SYS_BOARD - default "el6x" - -config SYS_VENDOR - default "el" - -config SYS_CONFIG_NAME - default "zc5601" - -endif
board/el/el6x/MAINTAINERS deleted +0 -8
@@ -1,8 +0,0 @@ -EL6X BOARD -M: Stefano Babic <[email protected]> -S: Maintained -F: board/el/el6x/ -F: include/configs/zc5202.h -F: include/configs/zc5601.h -F: configs/zc5202_defconfig -F: configs/zc5601_defconfig
board/el/el6x/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) Stefano Babic <[email protected]> - -obj-y := el6x.o
board/el/el6x/el6x.c deleted +0 -631
631 lines not on this page · raw message
configs/zc5202_defconfig deleted +0 -42
42 lines not on this page · raw message
configs/zc5601_defconfig deleted +0 -41
41 lines not on this page · raw message
include/configs/zc5202.h deleted +0 -30
@@ -1,30 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* Copyright (C) Stefano Babic <[email protected]> -* -* Configuration settings for the E+L i.MX6Q DO82 board. -*/ - -#ifndef __EL_ZC5202_H -#define __EL_ZC5202_H - -#define CONFIG_MXC_UART_BASE UART2_BASE -#define CONSOLE_DEV "ttymxc1" -#define CONFIG_MMCROOT "/dev/mmcblk0p2" - -#define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */ - -#include "el6x_common.h" - -/* Ethernet */ -#define CONFIG_FEC_MXC -#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE MII100 -#define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0 -#define CONFIG_MV88E6352_SWITCH - -#define CONFIG_PCI_SCAN_SHOW -#define CONFIG_PCIE_IMX - -#endif /*__EL6Q_CONFIG_H */
include/configs/zc5601.h deleted +0 -28
@@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* Copyright (C) Stefano Babic <[email protected]> -* -* Configuration settings for the E+L i.MX6Q DO82 board. -*/ - -#ifndef __EL_ZC5601_H -#define __EL_ZC5601_H - - -#define CONFIG_MXC_UART_BASE UART2_BASE -#define CONSOLE_DEV "ttymxc1" -#define CONFIG_MMCROOT "/dev/mmcblk0p1" - -#define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */ - -#include "el6x_common.h" - -/* Ethernet */ -#define CONFIG_FEC_MXC -#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII -#define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0x10 -#define CONFIG_FEC_FIXED_SPEED 1000/* No autoneg, fix Gb */ - -#endif /*__EL6Q_CONFIG_H */
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 50/93 arm: Remove imx6dl_mamoj board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/dts/imx6dl-mamoj-u-boot.dtsi | 14 -- arch/arm/dts/imx6dl-mamoj.dts | 225 -------------------------- arch/arm/mach-imx/mx6/Kconfig | 1 - board/bticino/mamoj/Kconfig | 12 -- board/bticino/mamoj/MAINTAINERS | 10 -- board/bticino/mamoj/Makefile | 8 - board/bticino/mamoj/README | 124 -------------- board/bticino/mamoj/mamoj.c | 26 --- board/bticino/mamoj/spl.c | 171 -------------------- configs/imx6dl_mamoj_defconfig | 46 ------ include/configs/imx6dl-mamoj.h | 99 ------------ 11 files changed, 736 deletions(-) delete mode 100644 arch/arm/dts/imx6dl-mamoj-u-boot.dtsi delete mode 100644 arch/arm/dts/imx6dl-mamoj.dts delete mode 100644 board/bticino/mamoj/Kconfig delete mode 100644 board/bticino/mamoj/MAINTAINERS delete mode 100644 board/bticino/mamoj/Makefile delete mode 100644 board/bticino/mamoj/README delete mode 100644 board/bticino/mamoj/mamoj.c delete mode 100644 board/bticino/mamoj/spl.c delete mode 100644 configs/imx6dl_mamoj_defconfig delete mode 100644 include/configs/imx6dl-mamoj.h
arch/arm/dts/imx6dl-mamoj-u-boot.dtsi deleted +0 -14
@@ -1,14 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright (C) 2018 Jagan Teki <[email protected]> - */ - -#include "imx6qdl-u-boot.dtsi" - -&usdhc3 { - u-boot,dm-spl; -}; - -&pinctrl_usdhc3 { - u-boot,dm-spl; -};
arch/arm/dts/imx6dl-mamoj.dts deleted +0 -225
225 lines not on this page · raw message
arch/arm/mach-imx/mx6/Kconfig +0 -1
@@ -528,7 +528,6 @@ source "board/bachmann/ot1200/Kconfig" source "board/barco/platinum/Kconfig" source "board/barco/titanium/Kconfig" source "board/boundary/nitrogen6x/Kconfig" -source "board/bticino/mamoj/Kconfig" source "board/compulab/cm_fx6/Kconfig" source "board/congatec/cgtqmx6eval/Kconfig" source "board/dhelectronics/dh_imx6/Kconfig"
board/bticino/mamoj/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_MX6DL_MAMOJ - -config SYS_BOARD - default "mamoj" - -config SYS_VENDOR - default "bticino" - -config SYS_CONFIG_NAME - default "imx6dl-mamoj" - -endif
board/bticino/mamoj/MAINTAINERS deleted +0 -10
@@ -1,10 +0,0 @@ -MX6DL_MAMOJ BOARD -M: Jagan Teki <[email protected]> -M: Raffaele RECALCATI <[email protected]> -M: Simone CIANNI <[email protected]> -S: Maintained -F: board/bticino/mamoj -F: include/configs/imx6dl-mamoj.h -F: configs/imx6dl_mamoj_defconfig -F: arch/arm/dts/imx6dl-mamoj.dts -F: arch/arm/dts/imx6dl-mamoj-u-boot.dtsi
board/bticino/mamoj/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# Copyright (C) 2018 BTicino -# Copyright (C) 2017 Amarula Solutions B.V. -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y := mamoj.o -obj-$(CONFIG_SPL_BUILD) += spl.o
board/bticino/mamoj/README deleted +0 -124
124 lines not on this page · raw message
board/bticino/mamoj/mamoj.c deleted +0 -26
@@ -1,26 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2018 Simone CIANNI <[email protected]> -* Copyright (C) 2018 Raffaele RECALCATI <[email protected]> -* Copyright (C) 2018 Jagan Teki <[email protected]> -*/ - -#include <common.h> -#include <asm/arch/sys_proto.h> - -DECLARE_GLOBAL_DATA_PTR ; - -int board_init (void ) -{ -/* Address of boot parameters */ - gd->bd->bi_boot_params =PHYS_SDRAM +0x100 ; - -return 0 ; -} - -int dram_init (void ) -{ - gd->ram_size =imx_ddr_size (); - -return 0 ; -}
board/bticino/mamoj/spl.c deleted +0 -171
171 lines not on this page · raw message
configs/imx6dl_mamoj_defconfig deleted +0 -46
46 lines not on this page · raw message
include/configs/imx6dl-mamoj.h deleted +0 -99
99 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 50/93 arm: Remove imx6dl_mamoj board
Quoted 3 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.
It is CONFIG_BLK right? which is driver model block layer and it's already enabled. Did I missed anything?
₹ ls drivers/block/*.odrivers/block/blkcache.o drivers/block/blk-uclass.o drivers/block/built-in.o
PATCH 50/93 arm: Remove imx6dl_mamoj board
Hi Jagan,
Quoted 11 lines · Jagan Teki
Quoted 3 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.It is
CONFIG_BLKright? which is driver model block layer and it's already enabled. Did I missed anything?₹ ls
drivers/block/*.odrivers/block/blkcache.odrivers/block/blk-uclass.odrivers/block/built-in.o
This was the result of my removing the default CONFIG_SPL_BLK=y in the Kconfig, since it produced a smaller list of broken boards. But having thought about it, it is not the right thing to do.
So this board should be fine. Sorry for the trouble.
Regards,
Simon
PATCH 51/93 arm: Remove omap3_logic_somlv board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-omap2/omap3/Kconfig | 1 - board/logicpd/omap3som/Kconfig | 14 -- board/logicpd/omap3som/MAINTAINERS | 9 - board/logicpd/omap3som/Makefile | 6 - board/logicpd/omap3som/README | 56 ----- board/logicpd/omap3som/omap3logic.c | 329 --------------------------- board/logicpd/omap3som/omap3logic.h | 236 ------------------- configs/omap35_logic_defconfig | 72 ------ configs/omap35_logic_somlv_defconfig | 78 ------- configs/omap3_logic_defconfig | 73 ------ configs/omap3_logic_somlv_defconfig | 78 ------- include/configs/omap3_logic.h | 210 ----------------- 12 files changed, 1162 deletions(-) delete mode 100644 board/logicpd/omap3som/Kconfig delete mode 100644 board/logicpd/omap3som/MAINTAINERS delete mode 100644 board/logicpd/omap3som/Makefile delete mode 100644 board/logicpd/omap3som/README delete mode 100644 board/logicpd/omap3som/omap3logic.c delete mode 100644 board/logicpd/omap3som/omap3logic.h delete mode 100644 configs/omap35_logic_defconfig delete mode 100644 configs/omap35_logic_somlv_defconfig delete mode 100644 configs/omap3_logic_defconfig delete mode 100644 configs/omap3_logic_somlv_defconfig delete mode 100644 include/configs/omap3_logic.h
arch/arm/mach-omap2/omap3/Kconfig +0 -1
@@ -203,7 +203,6 @@ source "board/ti/am3517crane/Kconfig" source "board/8dtech/eco5pk/Kconfig" source "board/corscience/tricorder/Kconfig" source "board/htkw/mcx/Kconfig" -source "board/logicpd/omap3som/Kconfig" source "board/nokia/rx51/Kconfig" source "board/technexion/tao3530/Kconfig" source "board/technexion/twister/Kconfig"
board/logicpd/omap3som/Kconfig deleted +0 -14
@@ -1,14 +0,0 @@ -if TARGET_OMAP3_LOGIC - -config SYS_BOARD - default "omap3som" - -config SYS_VENDOR - default "logicpd" - -config SYS_CONFIG_NAME - default "omap3_logic" - -source "board/ti/common/Kconfig" - -endif
board/logicpd/omap3som/MAINTAINERS deleted +0 -9
@@ -1,9 +0,0 @@ -OMAP3SOM BOARD -M: Adam Ford <[email protected]> -S: Maintained -F: board/logicpd/omap3som/ -F: include/configs/omap3_logic.h -F: configs/omap3_logic_defconfig -F: configs/omap35_logic_defconfig -F: configs/omap35_logic_somlv_defconfig -F: configs/omap3_logic_somlv_defconfig
board/logicpd/omap3som/Makefile deleted +0 -6
@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2000, 2001, 2002 -# Wolfgang Denk, DENX Software Engineering, wd at denx.de. - -obj-y := omap3logic.o
board/logicpd/omap3som/README deleted +0 -56
56 lines not on this page · raw message
board/logicpd/omap3som/omap3logic.c deleted +0 -329
329 lines not on this page · raw message
board/logicpd/omap3som/omap3logic.h deleted +0 -236
236 lines not on this page · raw message
configs/omap35_logic_defconfig deleted +0 -72
72 lines not on this page · raw message
configs/omap35_logic_somlv_defconfig deleted +0 -78
78 lines not on this page · raw message
configs/omap3_logic_defconfig deleted +0 -73
73 lines not on this page · raw message
configs/omap3_logic_somlv_defconfig deleted +0 -78
78 lines not on this page · raw message
include/configs/omap3_logic.h deleted +0 -210
210 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 51/93 arm: Remove omap3_logic_somlv board
Quoted 3 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.
NAK! This board does support BLK. I think your algorithm is looking for CONFIG_DM_BLK when it should be looking for CONFIG_BLK which depends on DM.
make omap3_logic_somlv_defconfig
cat .config | grep BLK
CONFIG_BLK=yCONFIG_SPL_BLK=y
Quoted 1,271 lines
Signed-off-by Simon Glass <[email protected]>---
arch/arm/mach-omap2/omap3/Kconfig | 1 - board/logicpd/omap3som/Kconfig | 14 -- board/logicpd/omap3som/MAINTAINERS | 9 - board/logicpd/omap3som/Makefile | 6 - board/logicpd/omap3som/README | 56 ----- board/logicpd/omap3som/omap3logic.c | 329 --------------------------- board/logicpd/omap3som/omap3logic.h | 236 ------------------- configs/omap35_logic_defconfig | 72 ------ configs/omap35_logic_somlv_defconfig | 78 ------- configs/omap3_logic_defconfig | 73 ------ configs/omap3_logic_somlv_defconfig | 78 ------- include/configs/omap3_logic.h | 210 ----------------- 12 files changed, 1162 deletions(-) delete mode 100644 board/logicpd/omap3som/Kconfig delete mode 100644 board/logicpd/omap3som/MAINTAINERS delete mode 100644 board/logicpd/omap3som/Makefile delete mode 100644 board/logicpd/omap3som/README delete mode 100644 board/logicpd/omap3som/omap3logic.c delete mode 100644 board/logicpd/omap3som/omap3logic.h delete mode 100644 configs/omap35_logic_defconfig delete mode 100644 configs/omap35_logic_somlv_defconfig delete mode 100644 configs/omap3_logic_defconfig delete mode 100644 configs/omap3_logic_somlv_defconfig delete mode 100644 include/configs/omap3_logic.harch/arm/mach-omap2/omap3/Kconfig +0
-1@@ -203,7 +203,6 @@ source "board/ti/am3517crane/Kconfig" source "board/8dtech/eco5pk/Kconfig" source "board/corscience/tricorder/Kconfig" source "board/htkw/mcx/Kconfig" -source "board/logicpd/omap3som/Kconfig" source "board/nokia/rx51/Kconfig" source "board/technexion/tao3530/Kconfig" source "board/technexion/twister/Kconfig"board/logicpd/omap3som/Kconfig deleted +0
-14@@ -1,14 +0,0 @@ -if TARGET_OMAP3_LOGIC - -config SYS_BOARD - default "omap3som" - -config SYS_VENDOR - default "logicpd" - -config SYS_CONFIG_NAME - default "omap3_logic" - -source "board/ti/common/Kconfig" - -endifboard/logicpd/omap3som/MAINTAINERS deleted +0
-9@@ -1,9 +0,0 @@ -OMAP3SOM BOARD -M: Adam Ford <[email protected]> -S: Maintained -F: board/logicpd/omap3som/ -F: include/configs/omap3_logic.h -F: configs/omap3_logic_defconfig -F: configs/omap35_logic_defconfig -F: configs/omap35_logic_somlv_defconfig -F: configs/omap3_logic_somlv_defconfigboard/logicpd/omap3som/Makefile deleted +0
-6@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2000, 2001, 2002 -# Wolfgang Denk, DENX Software Engineering, wd at denx.de. - -obj-y := omap3logic.oboard/logicpd/omap3som/README deleted +0
-56@@ -1,56 +0,0 @@ -Summary -======= - -The source for omap3logic.c encompases the OMAP35 and DM3730 SOM-LV and DM3730 Torpedo platforms, but there are device trees custom taylored to each board. - -omap3_logic_defconfig = DM37 Torpedo / Torpedo + Wireless -omap35_logic_defconfig = OMAP35 Torpedo -omap3_logic_somlv_defconfig = DM37 SOM-LV -omap35_logic_somlv_defconfig = OMAP35 SOM-LV - -The device tree included with each of the defconfig files will also direct the board as to which dtb file to load when loading the kernel, so it is not -recomended to mix and match the defconfig files. - -Falcon Mode: FAT SD cards -========================= - -In this case the additional file is written to the filesystem. In this -example we assume that the uImage and device tree to be used are already on -the FAT filesystem (only the uImage MUST be for this to function -afterwards) along with a Falcon Mode aware MLO and the FAT partition has -already been created and marked bootable: - -U-Boot # mmc rescan -# Load kernel and device tree into memory, perform export -U-Boot # fatload mmc 0 ${loadaddr} uImage -U-Boot # run loadfdt -U-Boot # setenv optargs quiet -U-Boot # run mmcargs -U-Boot # run common_bootargs -U-Boot # spl export fdt ${loadaddr} - ${fdtaddr} - -This will print a number of lines and then end with something like: - Loading Device Tree to 8dec9000, end 8dee0295 ... OK - -So then note the starting address and write the args to mmc/sd: - -U-Boot # fatwrite mmc 0:1 0x8dec9000 args 0x20000 - -The size of 0x20000 matches the CMD_SPL_WRITE_SIZE. - -Falcon Mode: NAND -================= - -In this case the additional data is written to another partition of the -NAND. In this example we assume that the uImage and device tree to be are -already located on the NAND somewhere (such as filesystem or mtd partition) -along with a Falcon Mode aware MLO written to the correct locations for -booting and mtdparts have been configured correctly for the board: - -U-Boot # nand read ${loadaddr} kernel -U-Boot # load nand rootfs ${fdtaddr} /boot/am335x-evm.dtb -U-Boot # run nandargs -U-Boot # run common_bootargs -U-Boot # spl export fdt ${loadaddr} - ${fdtaddr} -U-Boot # nand erase.part u-boot-spl-os -U-Boot # nand write ${fdtaddr} u-boot-spl-osboard/logicpd/omap3som/omap3logic.c deleted +0
-329@@ -1,329 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* (C) Copyright 2011 -* Logic Product Development <www.logicpd.com> -* -* Author : -* Peter Barada <[email protected]> -* -* Derived from Beagle Board and 3430 SDP code by -* Richard Woodruff <[email protected]> -* Syed Mohammed Khasim <[email protected]> -*/ -#include <common.h> -#include <dm.h> -#include <ns16550.h> -#include <netdev.h> -#include <flash.h> -#include <nand.h> -#include <i2c.h> -#include <twl4030.h> -#include <asm/io.h> -#include <asm/arch/mmc_host_def.h> -#include <asm/arch/mux.h> -#include <asm/arch/mem.h> -#include <asm/arch/sys_proto.h> -#include <asm/gpio.h> -#include <asm/omap_mmc.h> -#include <asm/mach-types.h> -#include <linux/mtd/rawnand.h> -#include <asm/omap_musb.h> -#include <linux/errno.h> -#include <linux/usb/ch9.h> -#include <linux/usb/gadget.h> -#include <linux/usb/musb.h> -#include "omap3logic.h" -#ifdef CONFIG_USB_EHCI_HCD -#include <usb.h> -#include <asm/ehci-omap.h> -#endif - -DECLARE_GLOBAL_DATA_PTR ; - -#define LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG1 0x00011203 -#define LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG2 0x000A1302 -#define LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG3 0x000F1302 -#define LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG4 0x0A021303 -#define LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG5 0x00120F18 -#define LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG6 0x0A030000 -#define LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG7 0x00000C50 - -#define LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG1 0x00011203 -#define LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG2 0x00091102 -#define LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG3 0x000D1102 -#define LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG4 0x09021103 -#define LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG5 0x00100D15 -#define LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG6 0x09030000 -#define LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG7 0x00000C50 - -/* This is only needed until SPL gets OF support */ -#ifdef CONFIG_SPL_BUILD -static const struct ns16550_platdata omap3logic_serial = { - .base =OMAP34XX_UART1 , - .reg_shift =2 , - .clock =V_NS16550_CLK , - .fcr =UART_FCR_DEFVAL , -}; - -U_BOOT_DEVICE (omap3logic_uart) = { -"omap_serial" , - &omap3logic_serial -}; - -static const struct omap_hsmmc_plat omap3_logic_mmc0_platdata = { - .base_addr = (struct hsmmc *)OMAP_HSMMC1_BASE , - .cfg.host_caps = MMC_MODE_HS_52MHz |MMC_MODE_HS |MMC_MODE_4BIT , - .cfg.f_min =400000 , - .cfg.f_max =52000000 , - .cfg.voltages =MMC_VDD_32_33 |MMC_VDD_33_34 |MMC_VDD_165_195 , - .cfg.b_max =CONFIG_SYS_MMC_MAX_BLK_COUNT , -}; - -U_BOOT_DEVICE (omap3_logic_mmc0) = { - .name ="omap_hsmmc" , - .platdata = &omap3_logic_mmc0_platdata, -}; - -#endif - -#ifdef CONFIG_SPL_OS_BOOT -int spl_start_uboot (void ) -{ -/* break into full u-boot on 'c' */ -return serial_tstc () &&serial_getc () =='c' ; -} -#endif - -#if defined(CONFIG_SPL_BUILD ) -/* -* Routine: get_board_mem_timings -* Description: If we use SPL then there is no x-loader nor config header -* so we have to setup the DDR timings ourself on the first bank. This -* provides the timing values back to the function that configures -* the memory. -*/ -void get_board_mem_timings (struct board_sdrc_timings *timings) -{ - timings->mr =MICRON_V_MR_165 ; - -if (get_cpu_family () ==CPU_OMAP36XX ) { -/* 200 MHz works for OMAP36/DM37 */ -/* 256MB DDR */ - timings->mcfg =MICRON_V_MCFG_200 (256 <<20 ); - timings->ctrla =MICRON_V_ACTIMA_200 ; - timings->ctrlb =MICRON_V_ACTIMB_200 ; - timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_200MHz; - }else { -/* 165 MHz works for OMAP35 */ - timings->mcfg =MICRON_V_MCFG_165 (256 <<20 ); - timings->ctrla =MICRON_V_ACTIMA_165 ; - timings->ctrlb =MICRON_V_ACTIMB_165 ; - timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; - } -} - -#define GPMC_NAND_COMMAND_0 (OMAP34XX_GPMC_BASE + 0x7c) -#define GPMC_NAND_DATA_0 (OMAP34XX_GPMC_BASE + 0x84) -#define GPMC_NAND_ADDRESS_0 (OMAP34XX_GPMC_BASE + 0x80) - -void spl_board_prepare_for_linux (void ) -{ -/* The Micron NAND starts locked which -* prohibits mounting the NAND as RW -* The following commands are what unlocks -* the NAND to become RW Falcon Mode does not -* have as many smarts as U-Boot, but Logic PD -* only makes NAND with 512MB so these hard coded -* values should work for all current models -*/ - -writeb (0x70 ,GPMC_NAND_COMMAND_0 ); -writeb (-1 ,GPMC_NAND_DATA_0 ); -writeb (0x7a ,GPMC_NAND_COMMAND_0 ); -writeb (0x00 ,GPMC_NAND_ADDRESS_0 ); -writeb (0x00 ,GPMC_NAND_ADDRESS_0 ); -writeb (0x00 ,GPMC_NAND_ADDRESS_0 ); -writeb (-1 ,GPMC_NAND_COMMAND_0 ); - -/* Begin address 0 */ -writeb (NAND_CMD_UNLOCK1 ,0x6e00007c ); -writeb (0x00 ,GPMC_NAND_ADDRESS_0 ); -writeb (0x00 ,GPMC_NAND_ADDRESS_0 ); -writeb (0x00 ,GPMC_NAND_ADDRESS_0 ); -writeb (-1 ,GPMC_NAND_DATA_0 ); - -/* Ending address at the end of Flash */ -writeb (NAND_CMD_UNLOCK2 ,GPMC_NAND_COMMAND_0 ); -writeb (0xc0 ,GPMC_NAND_ADDRESS_0 ); -writeb (0xff ,GPMC_NAND_ADDRESS_0 ); -writeb (0x03 ,GPMC_NAND_ADDRESS_0 ); -writeb (-1 ,GPMC_NAND_DATA_0 ); -writeb (0x79 ,GPMC_NAND_COMMAND_0 ); -writeb (-1 ,GPMC_NAND_DATA_0 ); -writeb (-1 ,GPMC_NAND_DATA_0 ); -} -#endif - -#if !CONFIG_IS_ENABLED (DM_USB ) -#ifdef CONFIG_USB_MUSB_OMAP2PLUS -static struct musb_hdrc_config musb_config = { - .multipoint =1 , - .dyn_fifo =1 , - .num_eps =16 , - .ram_bits =12 , -}; - -static struct omap_musb_board_data musb_board_data = { - .interface_type =MUSB_INTERFACE_ULPI , -}; - -static struct musb_hdrc_platform_data musb_plat = { -#if defined(CONFIG_USB_MUSB_HOST ) - .mode = MUSB_HOST, -#elif defined(CONFIG_USB_MUSB_GADGET ) - .mode = MUSB_PERIPHERAL, -#else -#error "Please define either CONFIG_USB_MUSB_HOST or CONFIG_USB_MUSB_GADGET" -#endif - .config = &musb_config, - .power = 100, - .platform_ops = &omap2430_ops, - .board_data = &musb_board_data, -}; -#endif - -#if defined(CONFIG_USB_EHCI_HCD ) && !defined(CONFIG_SPL_BUILD ) -/* Call usb_stop() before starting the kernel */ -void show_boot_progress (int val) -{ -if (val ==BOOTSTAGE_ID_RUN_OS ) -usb_stop (); -} - -static struct omap_usbhs_board_data usbhs_bdata = { - .port_mode[0 ] =OMAP_EHCI_PORT_MODE_PHY , - .port_mode[1 ] =OMAP_EHCI_PORT_MODE_PHY , - .port_mode[2 ] =OMAP_USBHS_PORT_MODE_UNUSED -}; - -int ehci_hcd_init (int index,enum usb_init_type init, -struct ehci_hccr **hccr,struct ehci_hcor **hcor) -{ -return omap_ehci_hcd_init (index, &usbhs_bdata, hccr, hcor); -} - -int ehci_hcd_stop (int index) -{ -return omap_ehci_hcd_stop (); -} - -#endif /* CONFIG_USB_EHCI_HCD */ -#endif /* !DM_USB*/ -/* -* Routine: misc_init_r -* Description: Configure board specific parts -*/ -int misc_init_r (void ) -{ -twl4030_power_init (); -omap_die_id_display (); - -#if !CONFIG_IS_ENABLED (DM_USB ) -#ifdef CONFIG_USB_MUSB_OMAP2PLUS -musb_register (&musb_plat, &musb_board_data, (void *)MUSB_BASE ); -#endif -#endif -return 0 ; -} - -#if defined(CONFIG_FLASH_CFI_DRIVER ) -static const u32 gpmc_dm37_c2nor_config[] = { -LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG1 , -LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG2 , -LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG3 , -LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG4 , -LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG5 , -LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG6 , -LOGIC_MT28_DM37_ASYNC_GPMC_CONFIG7 -}; - -static const u32 gpmc_omap35_c2nor_config[] = { -LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG1 , -LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG2 , -LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG3 , -LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG4 , -LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG5 , -LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG6 , -LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG7 -}; -#endif - -/* -* Routine: board_init -* Description: Early hardware init. -*/ -int board_init (void ) -{ -gpmc_init ();/* in SRAM or SDRAM, finish GPMC */ - -/* boot param addr */ - gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 +0x100 ); -#if defined(CONFIG_FLASH_CFI_DRIVER ) -if (get_cpu_family () ==CPU_OMAP36XX ) { -/* Enable CS2 for NOR Flash */ -enable_gpmc_cs_config (gpmc_dm37_c2nor_config, &gpmc_cfg->cs[2 ], -0x10000000 ,GPMC_SIZE_64M ); - }else { -enable_gpmc_cs_config (gpmc_omap35_c2nor_config, &gpmc_cfg->cs[2 ], -0x10000000 ,GPMC_SIZE_64M ); - } -#endif -return 0 ; -} - -#ifdef CONFIG_BOARD_LATE_INIT - -static void unlock_nand (void ) -{ -int dev = nand_curr_device; -struct mtd_info *mtd; - - mtd =get_nand_dev_by_index (dev); -nand_unlock (mtd,0 , mtd->size,0 ); -} - -int board_late_init (void ) -{ -#ifdef CONFIG_CMD_NAND_LOCK_UNLOCK -unlock_nand (); -#endif -return 0 ; -} -#endif - -#if defined(CONFIG_MMC ) -void board_mmc_power_init (void ) -{ -twl4030_power_mmc_init (0 ); -} -#endif - -#ifdef CONFIG_SMC911X -/* GPMC CS1 settings for Logic SOM LV/Torpedo LAN92xx Ethernet chip */ -static const u32 gpmc_lan92xx_config[] = { -NET_LAN92XX_GPMC_CONFIG1 , -NET_LAN92XX_GPMC_CONFIG2 , -NET_LAN92XX_GPMC_CONFIG3 , -NET_LAN92XX_GPMC_CONFIG4 , -NET_LAN92XX_GPMC_CONFIG5 , -NET_LAN92XX_GPMC_CONFIG6 , -}; - -int board_eth_init (bd_t *bis) -{ -enable_gpmc_cs_config (gpmc_lan92xx_config, &gpmc_cfg->cs[1 ], -CONFIG_SMC911X_BASE ,GPMC_SIZE_16M ); - -return smc911x_initialize (0 ,CONFIG_SMC911X_BASE ); -} -#endif board/logicpd/omap3som/omap3logic.h deleted +0
-236@@ -1,236 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* (C) Copyright 2011 -* Logic Product Development <www.logicpd.com> -* -* Author: -* Peter Barada <[email protected]> -*/ -#ifndef _OMAP3LOGIC_H_ -#define _OMAP3LOGIC_H_ - -/* -* OMAP3 GPMC register settings for CS1 LAN922x -*/ -#define NET_LAN92XX_GPMC_CONFIG1 0x00001000 -#define NET_LAN92XX_GPMC_CONFIG2 0x00080801 -#define NET_LAN92XX_GPMC_CONFIG3 0x00000000 -#define NET_LAN92XX_GPMC_CONFIG4 0x08010801 -#define NET_LAN92XX_GPMC_CONFIG5 0x00080a0a -#define NET_LAN92XX_GPMC_CONFIG6 0x03000280 - - -const omap3_sysinfo sysinfo = { -DDR_DISCRETE , -"Logic DM37x/OMAP35x reference board" , -"NAND" , -}; - -/* -* IEN - Input Enable -* IDIS - Input Disable -* PTD - Pull type Down -* PTU - Pull type Up -* DIS - Pull type selection is inactive -* EN - Pull type selection is active -* M0 - Mode 0 -* The commented string gives the final mux configuration for that pin -*/ - -/* -* Routine: set_muxconf_regs -* Description: Setting up the configuration Mux registers specific to the -* hardware. Many pins need to be moved from protect to primary -* mode. -*/ -void set_muxconf_regs (void ) -{ -MUX_VAL (CP (SDRC_D0 ), (IEN |PTD |DIS |M0 ));/*SDRC_D0*/ -MUX_VAL (CP (SDRC_D1 ), (IEN |PTD |DIS |M0 ));/*SDRC_D1*/ -MUX_VAL (CP (SDRC_D2 ), (IEN |PTD |DIS |M0 ));/*SDRC_D2*/ -MUX_VAL (CP (SDRC_D3 ), (IEN |PTD |DIS |M0 ));/*SDRC_D3*/ -MUX_VAL (CP (SDRC_D4 ), (IEN |PTD |DIS |M0 ));/*SDRC_D4*/ -MUX_VAL (CP (SDRC_D5 ), (IEN |PTD |DIS |M0 ));/*SDRC_D5*/ -MUX_VAL (CP (SDRC_D6 ), (IEN |PTD |DIS |M0 ));/*SDRC_D6*/ -MUX_VAL (CP (SDRC_D7 ), (IEN |PTD |DIS |M0 ));/*SDRC_D7*/ -MUX_VAL (CP (SDRC_D8 ), (IEN |PTD |DIS |M0 ));/*SDRC_D8*/ -MUX_VAL (CP (SDRC_D9 ), (IEN |PTD |DIS |M0 ));/*SDRC_D9*/ -MUX_VAL (CP (SDRC_D10 ), (IEN |PTD |DIS |M0 ));/*SDRC_D10*/ -MUX_VAL (CP (SDRC_D11 ), (IEN |PTD |DIS |M0 ));/*SDRC_D11*/ -MUX_VAL (CP (SDRC_D12 ), (IEN |PTD |DIS |M0 ));/*SDRC_D12*/ -MUX_VAL (CP (SDRC_D13 ), (IEN |PTD |DIS |M0 ));/*SDRC_D13*/ -MUX_VAL (CP (SDRC_D14 ), (IEN |PTD |DIS |M0 ));/*SDRC_D14*/ -MUX_VAL (CP (SDRC_D15 ), (IEN |PTD |DIS |M0 ));/*SDRC_D15*/ -MUX_VAL (CP (SDRC_D16 ), (IEN |PTD |DIS |M0 ));/*SDRC_D16*/ -MUX_VAL (CP (SDRC_D17 ), (IEN |PTD |DIS |M0 ));/*SDRC_D17*/ -MUX_VAL (CP (SDRC_D18 ), (IEN |PTD |DIS |M0 ));/*SDRC_D18*/ -MUX_VAL (CP (SDRC_D19 ), (IEN |PTD |DIS |M0 ));/*SDRC_D19*/ -MUX_VAL (CP (SDRC_D20 ), (IEN |PTD |DIS |M0 ));/*SDRC_D20*/ -MUX_VAL (CP (SDRC_D21 ), (IEN |PTD |DIS |M0 ));/*SDRC_D21*/ -MUX_VAL (CP (SDRC_D22 ), (IEN |PTD |DIS |M0 ));/*SDRC_D22*/ -MUX_VAL (CP (SDRC_D23 ), (IEN |PTD |DIS |M0 ));/*SDRC_D23*/ -MUX_VAL (CP (SDRC_D24 ), (IEN |PTD |DIS |M0 ));/*SDRC_D24*/ -MUX_VAL (CP (SDRC_D25 ), (IEN |PTD |DIS |M0 ));/*SDRC_D25*/ -MUX_VAL (CP (SDRC_D26 ), (IEN |PTD |DIS |M0 ));/*SDRC_D26*/ -MUX_VAL (CP (SDRC_D27 ), (IEN |PTD |DIS |M0 ));/*SDRC_D27*/ -MUX_VAL (CP (SDRC_D28 ), (IEN |PTD |DIS |M0 ));/*SDRC_D28*/ -MUX_VAL (CP (SDRC_D29 ), (IEN |PTD |DIS |M0 ));/*SDRC_D29*/ -MUX_VAL (CP (SDRC_D30 ), (IEN |PTD |DIS |M0 ));/*SDRC_D30*/ -MUX_VAL (CP (SDRC_D31 ), (IEN |PTD |DIS |M0 ));/*SDRC_D31*/ -MUX_VAL (CP (SDRC_CLK ), (IEN |PTD |DIS |M0 ));/*SDRC_CLK*/ -MUX_VAL (CP (SDRC_DQS0 ), (IEN |PTD |DIS |M0 ));/*SDRC_DQS0*/ -MUX_VAL (CP (SDRC_DQS1 ), (IEN |PTD |DIS |M0 ));/*SDRC_DQS1*/ -MUX_VAL (CP (SDRC_DQS2 ), (IEN |PTD |DIS |M0 ));/*SDRC_DQS2*/ -MUX_VAL (CP (SDRC_DQS3 ), (IEN |PTD |DIS |M0 ));/*SDRC_DQS3*/ -MUX_VAL (CP (SDRC_CKE0 ), (IDIS |PTU |EN |M0 ));/*SDRC_CKE0*/ -MUX_VAL (CP (SDRC_CKE1 ), (IDIS |PTU |DIS |M0 ));/*SDRC_CKE1*/ - -MUX_VAL (CP (GPMC_A1 ), (IDIS |PTU |EN |M0 ));/*GPMC_A1*/ -MUX_VAL (CP (GPMC_A2 ), (IDIS |PTU |EN |M0 ));/*GPMC_A2*/ -MUX_VAL (CP (GPMC_A3 ), (IDIS |PTU |EN |M0 ));/*GPMC_A3*/ -MUX_VAL (CP (GPMC_A4 ), (IDIS |PTU |EN |M0 ));/*GPMC_A4*/ -MUX_VAL (CP (GPMC_A5 ), (IDIS |PTU |EN |M0 ));/*GPMC_A5*/ -MUX_VAL (CP (GPMC_A6 ), (IDIS |PTU |EN |M0 ));/*GPMC_A6*/ -MUX_VAL (CP (GPMC_A7 ), (IDIS |PTU |EN |M0 ));/*GPMC_A7*/ -MUX_VAL (CP (GPMC_A8 ), (IDIS |PTU |EN |M0 ));/*GPMC_A8*/ -MUX_VAL (CP (GPMC_A9 ), (IDIS |PTU |EN |M0 ));/*GPMC_A9*/ -MUX_VAL (CP (GPMC_A10 ), (IDIS |PTU |EN |M0 ));/*GPMC_A10*/ -MUX_VAL (CP (GPMC_D0 ), (IEN |PTU |EN |M0 ));/*GPMC_D0*/ -MUX_VAL (CP (GPMC_D1 ), (IEN |PTU |EN |M0 ));/*GPMC_D1*/ -MUX_VAL (CP (GPMC_D2 ), (IEN |PTU |EN |M0 ));/*GPMC_D2*/ -MUX_VAL (CP (GPMC_D3 ), (IEN |PTU |EN |M0 ));/*GPMC_D3*/ -MUX_VAL (CP (GPMC_D4 ), (IEN |PTU |EN |M0 ));/*GPMC_D4*/ -MUX_VAL (CP (GPMC_D5 ), (IEN |PTU |EN |M0 ));/*GPMC_D5*/ -MUX_VAL (CP (GPMC_D6 ), (IEN |PTU |EN |M0 ));/*GPMC_D6*/ -MUX_VAL (CP (GPMC_D7 ), (IEN |PTU |EN |M0 ));/*GPMC_D7*/ -MUX_VAL (CP (GPMC_D8 ), (IEN |PTU |EN |M0 ));/*GPMC_D8*/ -MUX_VAL (CP (GPMC_D9 ), (IEN |PTU |EN |M0 ));/*GPMC_D9*/ -MUX_VAL (CP (GPMC_D10 ), (IEN |PTU |EN |M0 ));/*GPMC_D10*/ -MUX_VAL (CP (GPMC_D11 ), (IEN |PTU |EN |M0 ));/*GPMC_D11*/ -MUX_VAL (CP (GPMC_D12 ), (IEN |PTU |EN |M0 ));/*GPMC_D12*/ -MUX_VAL (CP (GPMC_D13 ), (IEN |PTU |EN |M0 ));/*GPMC_D13*/ -MUX_VAL (CP (GPMC_D14 ), (IEN |PTU |EN |M0 ));/*GPMC_D14*/ -MUX_VAL (CP (GPMC_D15 ), (IEN |PTU |EN |M0 ));/*GPMC_D15*/ -MUX_VAL (CP (GPMC_NCS0 ), (IDIS |PTU |EN |M0 ));/*GPMC_nCS0*/ -MUX_VAL (CP (GPMC_NCS1 ), (IDIS |PTU |EN |M0 ));/*GPMC_nCS1*/ -MUX_VAL (CP (GPMC_NCS2 ), (IDIS |PTU |EN |M0 ));/*GPMC_nCS2*/ -MUX_VAL (CP (GPMC_NCS3 ), (IDIS |PTU |EN |M0 ));/*GPMC_nCS3*/ -MUX_VAL (CP (GPMC_NCS4 ), (IEN |PTU |EN |M0 ));/*GPMC_nCS4*/ -MUX_VAL (CP (GPMC_NCS5 ), (IDIS |PTU |EN |M0 ));/*GPMC_nCS5*/ -MUX_VAL (CP (GPMC_NCS6 ), (IEN |PTU |EN |M0 ));/*GPMC_nCS6*/ -MUX_VAL (CP (GPMC_NCS7 ), (IEN |PTU |EN |M0 ));/*GPMC_nCS7*/ -MUX_VAL (CP (GPMC_CLK ), (IDIS |PTU |EN |M0 ));/*GPMC_CLK*/ -MUX_VAL (CP (GPMC_NADV_ALE ), (IDIS |PTD |DIS |M0 ));/*GPMC_nADV_ALE*/ -MUX_VAL (CP (GPMC_NOE ), (IDIS |PTD |DIS |M0 ));/*GPMC_nOE*/ -MUX_VAL (CP (GPMC_NWE ), (IDIS |PTD |DIS |M0 ));/*GPMC_nWE*/ -MUX_VAL (CP (GPMC_NBE0_CLE ), (IDIS |PTU |EN |M0 ));/*GPMC_nBE0_CLE*/ -MUX_VAL (CP (GPMC_NBE1 ), (IEN |PTU |EN |M0 ));/*GPMC_nBE1*/ -MUX_VAL (CP (GPMC_NWP ), (IEN |PTD |DIS |M0 ));/*GPMC_nWP*/ -MUX_VAL (CP (GPMC_WAIT0 ), (IEN |PTU |EN |M0 ));/*GPMC_WAIT0*/ -MUX_VAL (CP (GPMC_WAIT1 ), (IEN |PTU |EN |M0 ));/*GPMC_WAIT1*/ -MUX_VAL (CP (GPMC_WAIT2 ), (IEN |PTU |EN |M4 ));/*GPIO_64*/ -MUX_VAL (CP (GPMC_WAIT3 ), (IEN |PTU |EN |M0 ));/*GPMC_WAIT3*/ - -MUX_VAL (CP (MMC1_CLK ), (IDIS |PTU |EN |M0 ));/*MMC1_CLK*/ -MUX_VAL (CP (MMC1_CMD ), (IEN |PTU |EN |M0 ));/*MMC1_CMD*/ -MUX_VAL (CP (MMC1_DAT0 ), (IEN |PTU |EN |M0 ));/*MMC1_DAT0*/ -MUX_VAL (CP (MMC1_DAT1 ), (IEN |PTU |EN |M0 ));/*MMC1_DAT1*/ -MUX_VAL (CP (MMC1_DAT2 ), (IEN |PTU |EN |M0 ));/*MMC1_DAT2*/ -MUX_VAL (CP (MMC1_DAT3 ), (IEN |PTU |EN |M0 ));/*MMC1_DAT3*/ - -MUX_VAL (CP (UART1_TX ), (IDIS |PTD |DIS |M0 ));/*UART1_TX*/ -MUX_VAL (CP (UART1_RTS ), (IDIS |PTD |DIS |M0 ));/*UART1_RTS*/ -MUX_VAL (CP (UART1_CTS ), (IEN |PTU |DIS |M0 ));/*UART1_CTS*/ -MUX_VAL (CP (UART1_RX ), (IEN |PTD |DIS |M0 ));/*UART1_RX*/ - -MUX_VAL (CP (JTAG_TCK ), (IEN |PTD |DIS |M0 ));/*JTAG_TCK*/ -MUX_VAL (CP (JTAG_TMS ), (IEN |PTD |DIS |M0 ));/*JTAG_TMS*/ -MUX_VAL (CP (JTAG_TDI ), (IEN |PTD |DIS |M0 ));/*JTAG_TDI*/ -MUX_VAL (CP (JTAG_EMU0 ), (IEN |PTD |DIS |M0 ));/*JTAG_EMU0*/ -MUX_VAL (CP (JTAG_EMU1 ), (IEN |PTD |DIS |M0 ));/*JTAG_EMU1*/ - -MUX_VAL (CP (ETK_CLK_ES2 ), (IDIS |PTU |EN |M0 ));/*ETK_CLK*/ -MUX_VAL (CP (ETK_CTL_ES2 ), (IDIS |PTD |DIS |M0 ));/*ETK_CTL*/ -MUX_VAL (CP (ETK_D0_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D0*/ -MUX_VAL (CP (ETK_D1_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D1*/ -MUX_VAL (CP (ETK_D2_ES2 ), (IEN |PTD |EN |M0 ));/*ETK_D2*/ -MUX_VAL (CP (ETK_D3_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D3*/ -MUX_VAL (CP (ETK_D4_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D4*/ -MUX_VAL (CP (ETK_D5_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D5*/ -MUX_VAL (CP (ETK_D6_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D6*/ -MUX_VAL (CP (ETK_D7_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D7*/ -MUX_VAL (CP (ETK_D8_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D8*/ -MUX_VAL (CP (ETK_D9_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D9*/ -MUX_VAL (CP (ETK_D10_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D10*/ -MUX_VAL (CP (ETK_D11_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D11*/ -MUX_VAL (CP (ETK_D12_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D12*/ -MUX_VAL (CP (ETK_D13_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D13*/ -MUX_VAL (CP (ETK_D14_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D14*/ -MUX_VAL (CP (ETK_D15_ES2 ), (IEN |PTD |DIS |M0 ));/*ETK_D15*/ - -MUX_VAL (CP (D2D_MCAD1 ), (IEN |PTD |EN |M0 ));/*d2d_mcad1*/ -MUX_VAL (CP (D2D_MCAD2 ), (IEN |PTD |EN |M0 ));/*d2d_mcad2*/ -MUX_VAL (CP (D2D_MCAD3 ), (IEN |PTD |EN |M0 ));/*d2d_mcad3*/ -MUX_VAL (CP (D2D_MCAD4 ), (IEN |PTD |EN |M0 ));/*d2d_mcad4*/ -MUX_VAL (CP (D2D_MCAD5 ), (IEN |PTD |EN |M0 ));/*d2d_mcad5*/ -MUX_VAL (CP (D2D_MCAD6 ), (IEN |PTD |EN |M0 ));/*d2d_mcad6*/ -MUX_VAL (CP (D2D_MCAD7 ), (IEN |PTD |EN |M0 ));/*d2d_mcad7*/ -MUX_VAL (CP (D2D_MCAD8 ), (IEN |PTD |EN |M0 ));/*d2d_mcad8*/ -MUX_VAL (CP (D2D_MCAD9 ), (IEN |PTD |EN |M0 ));/*d2d_mcad9*/ -MUX_VAL (CP (D2D_MCAD10 ), (IEN |PTD |EN |M0 ));/*d2d_mcad10*/ -MUX_VAL (CP (D2D_MCAD11 ), (IEN |PTD |EN |M0 ));/*d2d_mcad11*/ -MUX_VAL (CP (D2D_MCAD12 ), (IEN |PTD |EN |M0 ));/*d2d_mcad12*/ -MUX_VAL (CP (D2D_MCAD13 ), (IEN |PTD |EN |M0 ));/*d2d_mcad13*/ -MUX_VAL (CP (D2D_MCAD14 ), (IEN |PTD |EN |M0 ));/*d2d_mcad14*/ -MUX_VAL (CP (D2D_MCAD15 ), (IEN |PTD |EN |M0 ));/*d2d_mcad15*/ -MUX_VAL (CP (D2D_MCAD16 ), (IEN |PTD |EN |M0 ));/*d2d_mcad16*/ -MUX_VAL (CP (D2D_MCAD17 ), (IEN |PTD |EN |M0 ));/*d2d_mcad17*/ -MUX_VAL (CP (D2D_MCAD18 ), (IEN |PTD |EN |M0 ));/*d2d_mcad18*/ -MUX_VAL (CP (D2D_MCAD19 ), (IEN |PTD |EN |M0 ));/*d2d_mcad19*/ -MUX_VAL (CP (D2D_MCAD20 ), (IEN |PTD |EN |M0 ));/*d2d_mcad20*/ -MUX_VAL (CP (D2D_MCAD21 ), (IEN |PTD |EN |M0 ));/*d2d_mcad21*/ -MUX_VAL (CP (D2D_MCAD22 ), (IEN |PTD |EN |M0 ));/*d2d_mcad22*/ -MUX_VAL (CP (D2D_MCAD23 ), (IEN |PTD |EN |M0 ));/*d2d_mcad23*/ -MUX_VAL (CP (D2D_MCAD24 ), (IEN |PTD |EN |M0 ));/*d2d_mcad24*/ -MUX_VAL (CP (D2D_MCAD25 ), (IEN |PTD |EN |M0 ));/*d2d_mcad25*/ -MUX_VAL (CP (D2D_MCAD26 ), (IEN |PTD |EN |M0 ));/*d2d_mcad26*/ -MUX_VAL (CP (D2D_MCAD27 ), (IEN |PTD |EN |M0 ));/*d2d_mcad27*/ -MUX_VAL (CP (D2D_MCAD28 ), (IEN |PTD |EN |M0 ));/*d2d_mcad28*/ -MUX_VAL (CP (D2D_MCAD29 ), (IEN |PTD |EN |M0 ));/*d2d_mcad29*/ -MUX_VAL (CP (D2D_MCAD30 ), (IEN |PTD |EN |M0 ));/*d2d_mcad30*/ -MUX_VAL (CP (D2D_MCAD31 ), (IEN |PTD |EN |M0 ));/*d2d_mcad31*/ -MUX_VAL (CP (D2D_MCAD32 ), (IEN |PTD |EN |M0 ));/*d2d_mcad32*/ -MUX_VAL (CP (D2D_MCAD33 ), (IEN |PTD |EN |M0 ));/*d2d_mcad33*/ -MUX_VAL (CP (D2D_MCAD34 ), (IEN |PTD |EN |M0 ));/*d2d_mcad34*/ -MUX_VAL (CP (D2D_MCAD35 ), (IEN |PTD |EN |M0 ));/*d2d_mcad35*/ -MUX_VAL (CP (D2D_MCAD36 ), (IEN |PTD |EN |M0 ));/*d2d_mcad36*/ -MUX_VAL (CP (D2D_CLK26MI ), (IEN |PTD |DIS |M0 ));/*d2d_clk26mi*/ -MUX_VAL (CP (D2D_NRESPWRON ), (IEN |PTD |EN |M0 ));/*d2d_nrespwron*/ -MUX_VAL (CP (D2D_NRESWARM ), (IEN |PTU |EN |M0 ));/*d2d_nreswarm */ -MUX_VAL (CP (D2D_ARM9NIRQ ), (IEN |PTD |DIS |M0 ));/*d2d_arm9nirq */ -MUX_VAL (CP (D2D_UMA2P6FIQ ), (IEN |PTD |DIS |M0 ));/*d2d_uma2p6fiq*/ -MUX_VAL (CP (D2D_SPINT ), (IEN |PTD |EN |M0 ));/*d2d_spint*/ -MUX_VAL (CP (D2D_FRINT ), (IEN |PTD |EN |M0 ));/*d2d_frint*/ -MUX_VAL (CP (D2D_DMAREQ0 ), (IEN |PTD |DIS |M0 ));/*d2d_dmareq0*/ -MUX_VAL (CP (D2D_DMAREQ1 ), (IEN |PTD |DIS |M0 ));/*d2d_dmareq1*/ -MUX_VAL (CP (D2D_DMAREQ2 ), (IEN |PTD |DIS |M0 ));/*d2d_dmareq2*/ -MUX_VAL (CP (D2D_DMAREQ3 ), (IEN |PTD |DIS |M0 ));/*d2d_dmareq3*/ -MUX_VAL (CP (D2D_N3GTRST ), (IEN |PTD |DIS |M0 ));/*d2d_n3gtrst*/ -MUX_VAL (CP (D2D_N3GTDI ), (IEN |PTD |DIS |M0 ));/*d2d_n3gtdi*/ -MUX_VAL (CP (D2D_N3GTDO ), (IEN |PTD |DIS |M0 ));/*d2d_n3gtdo*/ -MUX_VAL (CP (D2D_N3GTMS ), (IEN |PTD |DIS |M0 ));/*d2d_n3gtms*/ -MUX_VAL (CP (D2D_N3GTCK ), (IEN |PTD |DIS |M0 ));/*d2d_n3gtck*/ -MUX_VAL (CP (D2D_N3GRTCK ), (IEN |PTD |DIS |M0 ));/*d2d_n3grtck*/ -MUX_VAL (CP (D2D_MSTDBY ), (IEN |PTU |EN |M0 ));/*d2d_mstdby*/ -MUX_VAL (CP (D2D_SWAKEUP ), (IEN |PTD |EN |M0 ));/*d2d_swakeup*/ -MUX_VAL (CP (D2D_IDLEREQ ), (IEN |PTD |DIS |M0 ));/*d2d_idlereq*/ -MUX_VAL (CP (D2D_IDLEACK ), (IEN |PTU |EN |M0 ));/*d2d_idleack*/ -MUX_VAL (CP (D2D_MWRITE ), (IEN |PTD |DIS |M0 ));/*d2d_mwrite*/ -MUX_VAL (CP (D2D_SWRITE ), (IEN |PTD |DIS |M0 ));/*d2d_swrite*/ -MUX_VAL (CP (D2D_MREAD ), (IEN |PTD |DIS |M0 ));/*d2d_mread*/ -MUX_VAL (CP (D2D_SREAD ), (IEN |PTD |DIS |M0 ));/*d2d_sread*/ -MUX_VAL (CP (D2D_MBUSFLAG ), (IEN |PTD |DIS |M0 ));/*d2d_mbusflag*/ -MUX_VAL (CP (D2D_SBUSFLAG ), (IEN |PTD |DIS |M0 ));/*d2d_sbusflag*/ -} - -#endif configs/omap35_logic_defconfig deleted +0
-72@@ -1,72 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_OMAP2PLUS=y -CONFIG_SYS_TEXT_BASE=0x80100000 -CONFIG_TI_COMMON_CMD_OPTIONS=y -# CONFIG_SPL_GPIO_SUPPORT is not set -CONFIG_SYS_MALLOC_F_LEN=0x2000 -CONFIG_TARGET_OMAP3_LOGIC=y -# CONFIG_SPL_OMAP3_ID_NAND is not set -CONFIG_SPL=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=2 -# CONFIG_USE_BOOTCOMMAND is not set -CONFIG_SYS_CONSOLE_INFO_QUIET=y -CONFIG_VERSION_VARIABLE=y -CONFIG_SPL_SYS_MALLOC_SIMPLE=y -CONFIG_SPL_MTD_SUPPORT=y -CONFIG_SPL_OS_BOOT=y -CONFIG_SYS_PROMPT="OMAP Logic # " -# CONFIG_CMD_IMI is not set -CONFIG_CMD_SPL=y -CONFIG_CMD_SPL_NAND_OFS=0x240000 -CONFIG_CMD_SPL_WRITE_SIZE=0x20000 -# CONFIG_CMD_EEPROM is not set -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_NAND=y -CONFIG_CMD_NAND_LOCK_UNLOCK=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_MTDPARTS=y -CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0" -CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(MLO),1792k(u-boot),128k(spl-os),128k(u-boot-env),6m(kernel),-(fs)" -CONFIG_CMD_UBI=y -CONFIG_OF_CONTROL=y -CONFIG_DEFAULT_DEVICE_TREE="logicpd-torpedo-35xx-devkit" -# CONFIG_ENV_IS_IN_FAT is not set -CONFIG_ENV_IS_IN_NAND=y -CONFIG_SPL_DM=y -CONFIG_USB_FUNCTION_FASTBOOT=y -CONFIG_FASTBOOT_BUF_ADDR=0x82000000 -CONFIG_DM_I2C=y -CONFIG_DM_MMC=y -CONFIG_MMC_OMAP_HS=y -CONFIG_NAND=y -CONFIG_SYS_NAND_BUSWIDTH_16BIT=y -CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y -CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000 -CONFIG_SPL_NAND_SIMPLE=y -CONFIG_SMC911X=y -CONFIG_SMC911X_BASE=0x08000000 -CONFIG_SMC911X_32_BIT=y -CONFIG_PINCTRL=y -CONFIG_PINCTRL_SINGLE=y -CONFIG_DM_PMIC=y -# CONFIG_SPL_PMIC_CHILDREN is not set -CONFIG_DM_REGULATOR=y -CONFIG_DM_REGULATOR_FIXED=y -CONFIG_DM_REGULATOR_GPIO=y -CONFIG_SPECIFY_CONSOLE_INDEX=y -CONFIG_SPI=y -CONFIG_DM_SPI=y -CONFIG_OMAP3_SPI=y -CONFIG_USB=y -CONFIG_USB_EHCI_HCD=y -CONFIG_USB_MUSB_GADGET=y -CONFIG_USB_MUSB_OMAP2PLUS=y -CONFIG_TWL4030_USB=y -CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="TI" -CONFIG_USB_GADGET_VENDOR_NUM=0x0451 -CONFIG_USB_GADGET_PRODUCT_NUM=0xd022 -CONFIG_USB_ETHER=y -CONFIG_BCH=y -# CONFIG_SPL_OF_LIBFDT is not setconfigs/omap35_logic_somlv_defconfig deleted +0
-78@@ -1,78 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_OMAP2PLUS=y -CONFIG_SYS_TEXT_BASE=0x80100000 -CONFIG_TI_COMMON_CMD_OPTIONS=y -# CONFIG_SPL_GPIO_SUPPORT is not set -CONFIG_SYS_MALLOC_F_LEN=0x2000 -CONFIG_TARGET_OMAP3_LOGIC=y -# CONFIG_SPL_OMAP3_ID_NAND is not set -CONFIG_SPL=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=2 -# CONFIG_USE_BOOTCOMMAND is not set -CONFIG_SYS_CONSOLE_INFO_QUIET=y -CONFIG_VERSION_VARIABLE=y -CONFIG_SPL_SYS_MALLOC_SIMPLE=y -CONFIG_SPL_MTD_SUPPORT=y -CONFIG_SPL_OS_BOOT=y -CONFIG_SYS_PROMPT="OMAP Logic # " -# CONFIG_CMD_IMI is not set -CONFIG_CMD_SPL=y -CONFIG_CMD_SPL_NAND_OFS=0x240000 -CONFIG_CMD_SPL_WRITE_SIZE=0x20000 -# CONFIG_CMD_EEPROM is not set -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_NAND=y -CONFIG_CMD_NAND_LOCK_UNLOCK=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_MTDPARTS=y -CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0,nor0=physmap-flash.0" -CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(MLO),1792k(u-boot),128k(spl-os),128k(u-boot-env),6m(kernel),-(fs);physmap-flash.0:-(nor)" -CONFIG_CMD_UBI=y -CONFIG_OF_CONTROL=y -CONFIG_DEFAULT_DEVICE_TREE="logicpd-som-lv-35xx-devkit" -# CONFIG_ENV_IS_IN_FAT is not set -CONFIG_ENV_IS_IN_NAND=y -CONFIG_SPL_DM=y -CONFIG_USB_FUNCTION_FASTBOOT=y -CONFIG_FASTBOOT_BUF_ADDR=0x82000000 -CONFIG_DM_I2C=y -CONFIG_DM_MMC=y -CONFIG_MMC_OMAP_HS=y -CONFIG_MTD_NOR_FLASH=y -CONFIG_FLASH_CFI_DRIVER=y -CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y -CONFIG_FLASH_CFI_MTD=y -CONFIG_SYS_FLASH_PROTECTION=y -CONFIG_SYS_FLASH_CFI=y -CONFIG_NAND=y -CONFIG_SYS_NAND_BUSWIDTH_16BIT=y -CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y -CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000 -CONFIG_SPL_NAND_SIMPLE=y -CONFIG_SMC911X=y -CONFIG_SMC911X_BASE=0x08000000 -CONFIG_SMC911X_32_BIT=y -CONFIG_PINCTRL=y -CONFIG_PINCTRL_SINGLE=y -CONFIG_DM_PMIC=y -# CONFIG_SPL_PMIC_CHILDREN is not set -CONFIG_DM_REGULATOR=y -CONFIG_DM_REGULATOR_FIXED=y -CONFIG_DM_REGULATOR_GPIO=y -CONFIG_SPECIFY_CONSOLE_INDEX=y -CONFIG_SPI=y -CONFIG_DM_SPI=y -CONFIG_OMAP3_SPI=y -CONFIG_USB=y -CONFIG_USB_EHCI_HCD=y -CONFIG_USB_MUSB_GADGET=y -CONFIG_USB_MUSB_OMAP2PLUS=y -CONFIG_TWL4030_USB=y -CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="TI" -CONFIG_USB_GADGET_VENDOR_NUM=0x0451 -CONFIG_USB_GADGET_PRODUCT_NUM=0xd022 -CONFIG_USB_ETHER=y -CONFIG_BCH=y -# CONFIG_SPL_OF_LIBFDT is not setconfigs/omap3_logic_defconfig deleted +0
-73@@ -1,73 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_OMAP2PLUS=y -CONFIG_SYS_TEXT_BASE=0x80100000 -CONFIG_TI_COMMON_CMD_OPTIONS=y -# CONFIG_SPL_GPIO_SUPPORT is not set -CONFIG_SYS_MALLOC_F_LEN=0x2000 -CONFIG_TARGET_OMAP3_LOGIC=y -# CONFIG_SPL_OMAP3_ID_NAND is not set -CONFIG_SPL=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=2 -# CONFIG_USE_BOOTCOMMAND is not set -CONFIG_SYS_CONSOLE_INFO_QUIET=y -CONFIG_VERSION_VARIABLE=y -CONFIG_SPL_SYS_MALLOC_SIMPLE=y -CONFIG_SPL_MTD_SUPPORT=y -CONFIG_SPL_OS_BOOT=y -CONFIG_SYS_PROMPT="OMAP Logic # " -# CONFIG_CMD_IMI is not set -CONFIG_CMD_SPL=y -CONFIG_CMD_SPL_NAND_OFS=0x240000 -CONFIG_CMD_SPL_WRITE_SIZE=0x20000 -# CONFIG_CMD_EEPROM is not set -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_NAND=y -CONFIG_CMD_NAND_LOCK_UNLOCK=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_MTDPARTS=y -CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0" -CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(MLO),1792k(u-boot),128k(spl-os),128k(u-boot-env),6m(kernel),-(fs)" -CONFIG_CMD_UBI=y -CONFIG_OF_CONTROL=y -CONFIG_DEFAULT_DEVICE_TREE="logicpd-torpedo-37xx-devkit" -# CONFIG_ENV_IS_IN_FAT is not set -CONFIG_ENV_IS_IN_NAND=y -CONFIG_SPL_DM=y -CONFIG_USB_FUNCTION_FASTBOOT=y -CONFIG_FASTBOOT_BUF_ADDR=0x82000000 -CONFIG_DM_I2C=y -CONFIG_DM_MMC=y -CONFIG_MMC_OMAP_HS=y -CONFIG_MMC_OMAP36XX_PINS=y -CONFIG_NAND=y -CONFIG_SYS_NAND_BUSWIDTH_16BIT=y -CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y -CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000 -CONFIG_SPL_NAND_SIMPLE=y -CONFIG_SMC911X=y -CONFIG_SMC911X_BASE=0x08000000 -CONFIG_SMC911X_32_BIT=y -CONFIG_PINCTRL=y -CONFIG_PINCTRL_SINGLE=y -CONFIG_DM_PMIC=y -# CONFIG_SPL_PMIC_CHILDREN is not set -CONFIG_DM_REGULATOR=y -CONFIG_DM_REGULATOR_FIXED=y -CONFIG_DM_REGULATOR_GPIO=y -CONFIG_SPECIFY_CONSOLE_INDEX=y -CONFIG_SPI=y -CONFIG_DM_SPI=y -CONFIG_OMAP3_SPI=y -CONFIG_USB=y -CONFIG_USB_EHCI_HCD=y -CONFIG_USB_MUSB_GADGET=y -CONFIG_USB_MUSB_OMAP2PLUS=y -CONFIG_TWL4030_USB=y -CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="TI" -CONFIG_USB_GADGET_VENDOR_NUM=0x0451 -CONFIG_USB_GADGET_PRODUCT_NUM=0xd022 -CONFIG_USB_ETHER=y -CONFIG_BCH=y -# CONFIG_SPL_OF_LIBFDT is not setconfigs/omap3_logic_somlv_defconfig deleted +0
-78@@ -1,78 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_OMAP2PLUS=y -CONFIG_SYS_TEXT_BASE=0x80100000 -CONFIG_TI_COMMON_CMD_OPTIONS=y -# CONFIG_SPL_GPIO_SUPPORT is not set -CONFIG_SYS_MALLOC_F_LEN=0x2000 -CONFIG_TARGET_OMAP3_LOGIC=y -# CONFIG_SPL_OMAP3_ID_NAND is not set -CONFIG_SPL=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=2 -# CONFIG_USE_BOOTCOMMAND is not set -CONFIG_SYS_CONSOLE_INFO_QUIET=y -CONFIG_VERSION_VARIABLE=y -CONFIG_SPL_SYS_MALLOC_SIMPLE=y -CONFIG_SPL_MTD_SUPPORT=y -CONFIG_SPL_OS_BOOT=y -CONFIG_SYS_PROMPT="OMAP Logic # " -# CONFIG_CMD_IMI is not set -CONFIG_CMD_SPL=y -CONFIG_CMD_SPL_NAND_OFS=0x240000 -CONFIG_CMD_SPL_WRITE_SIZE=0x20000 -# CONFIG_CMD_EEPROM is not set -CONFIG_CMD_NAND=y -CONFIG_CMD_NAND_LOCK_UNLOCK=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_MTDPARTS=y -CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0,nor0=physmap-flash.0" -CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(MLO),1792k(u-boot),128k(spl-os),128k(u-boot-env),6m(kernel),-(fs);physmap-flash.0:-(nor)" -CONFIG_CMD_UBI=y -CONFIG_OF_CONTROL=y -CONFIG_DEFAULT_DEVICE_TREE="logicpd-som-lv-37xx-devkit" -# CONFIG_ENV_IS_IN_FAT is not set -CONFIG_ENV_IS_IN_NAND=y -CONFIG_SPL_DM=y -CONFIG_USB_FUNCTION_FASTBOOT=y -CONFIG_FASTBOOT_BUF_ADDR=0x82000000 -CONFIG_DM_I2C=y -CONFIG_DM_MMC=y -CONFIG_MMC_OMAP_HS=y -CONFIG_MMC_OMAP36XX_PINS=y -CONFIG_MTD_NOR_FLASH=y -CONFIG_FLASH_CFI_DRIVER=y -CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y -CONFIG_FLASH_CFI_MTD=y -CONFIG_SYS_FLASH_PROTECTION=y -CONFIG_SYS_FLASH_CFI=y -CONFIG_NAND=y -CONFIG_SYS_NAND_BUSWIDTH_16BIT=y -CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y -CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000 -CONFIG_SPL_NAND_SIMPLE=y -CONFIG_SMC911X=y -CONFIG_SMC911X_BASE=0x08000000 -CONFIG_SMC911X_32_BIT=y -CONFIG_PINCTRL=y -CONFIG_PINCTRL_SINGLE=y -CONFIG_DM_PMIC=y -# CONFIG_SPL_PMIC_CHILDREN is not set -CONFIG_DM_REGULATOR=y -CONFIG_DM_REGULATOR_FIXED=y -CONFIG_DM_REGULATOR_GPIO=y -CONFIG_SPECIFY_CONSOLE_INDEX=y -CONFIG_SPI=y -CONFIG_DM_SPI=y -CONFIG_OMAP3_SPI=y -CONFIG_USB=y -CONFIG_USB_EHCI_HCD=y -CONFIG_USB_MUSB_GADGET=y -CONFIG_USB_MUSB_OMAP2PLUS=y -CONFIG_TWL4030_USB=y -CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="TI" -CONFIG_USB_GADGET_VENDOR_NUM=0x0451 -CONFIG_USB_GADGET_PRODUCT_NUM=0xd022 -CONFIG_USB_ETHER=y -CONFIG_BCH=y -# CONFIG_SPL_OF_LIBFDT is not setinclude/configs/omap3_logic.h deleted +0
-211@@ -1,210 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* (C) Copyright 2011 Logic Product Development <www.logicpd.com> -* Peter Barada <[email protected]> -* -* Configuration settings for the Logic OMAP35x/DM37x SOM LV/Torpedo -* reference boards. -*/ - -#ifndef __CONFIG_H -#define __CONFIG_H - -/* High Level Configuration Options */ - -#include <configs/ti_omap3_common.h> - -/* -* We are only ever GP parts and will utilize all of the "downloaded image" -* area in SRAM which starts at 0x40200000 and ends at 0x4020FFFF (64KB) in -* order to allow for BCH8 to fit in. -*/ -#undef CONFIG_SPL_TEXT_BASE -#define CONFIG_SPL_TEXT_BASE 0x40200000 - -#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ -#define CONFIG_SETUP_MEMORY_TAGS -#define CONFIG_INITRD_TAG -#define CONFIG_REVISION_TAG - -/* Hardware drivers */ - -/* I2C */ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* EEPROM AT24C64 */ - -/* Board NAND Info. */ -#ifdef CONFIG_NAND -#define CONFIG_SYS_MAX_NAND_DEVICE 1/* Max number of */ -/* NAND devices */ -#define CONFIG_SYS_NAND_5_ADDR_CYCLE -#define CONFIG_SYS_NAND_PAGE_COUNT 64 -#define CONFIG_SYS_NAND_PAGE_SIZE 2048 -#define CONFIG_SYS_NAND_OOBSIZE 64 -#define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024) -#define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS -#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, \ - 13, 14, 16, 17, 18, 19, 20, 21, 22, \ - 23, 24, 25, 26, 27, 28, 30, 31, 32, \ - 33, 34, 35, 36, 37, 38, 39, 40, 41, \ - 42, 44, 45, 46, 47, 48, 49, 50, 51, \ - 52, 53, 54, 55, 56} - -#define CONFIG_SYS_NAND_ECCSIZE 512 -#define CONFIG_SYS_NAND_ECCBYTES 13 -#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW_DETECTION_SW -#define CONFIG_SYS_NAND_MAX_OOBFREE 2 -#define CONFIG_SYS_NAND_MAX_ECCPOS 56 -#endif - -/* Environment information */ - -#define CONFIG_PREBOOT \ - "setenv preboot;" \ - "saveenv;" - -#define CONFIG_EXTRA_ENV_SETTINGS \ - DEFAULT_LINUX_BOOT_ENV \ - "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \ - "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ - "mmcdev=0\0" \ - "mmcroot=/dev/mmcblk0p2 rw\0" \ - "mmcrootfstype=ext4 rootwait\0" \ - "nandroot=ubi0:rootfs rw ubi.mtd=fs noinitrd\0" \ - "nandrootfstype=ubifs rootwait\0" \ - "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \ - "if run loadbootscript; then " \ - "run bootscript; " \ - "else " \ - "run defaultboot;" \ - "fi; " \ - "else run defaultboot; fi\0" \ - "defaultboot=run mmcramboot\0" \ - "consoledevice=ttyS0\0" \ - "setconsole=setenv console ${consoledevice},${baudrate}n8\0" \ - "dump_bootargs=echo 'Bootargs: '; echo $bootargs\0" \ - "rotation=0\0" \ - "vrfb_arg=if itest ${rotation} -ne 0; then " \ - "setenv bootargs ${bootargs} omapfb.vrfb=y " \ - "omapfb.rotate=${rotation}; " \ - "fi\0" \ - "optargs=ignore_loglevel early_printk no_console_suspend\0" \ - "common_bootargs=run setconsole; setenv bootargs " \ - "${bootargs} "\ - "console=${console} " \ - "${mtdparts} "\ - "${optargs}; " \ - "run vrfb_arg\0" \ - "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \ - "bootscript=echo 'Running bootscript from mmc ...'; " \ - "source ${loadaddr}\0" \ - "loadimage=mmc rescan; " \ - "load mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \ - "ramdisksize=64000\0" \ - "ramdiskimage=rootfs.ext2.gz.uboot\0" \ - "loadramdisk=mmc rescan; " \ - "load mmc ${mmcdev} ${rdaddr} ${ramdiskimage}\0" \ - "ramargs=setenv bootargs "\ - "root=/dev/ram rw ramdisk_size=${ramdisksize}\0" \ - "mmcargs=setenv bootargs "\ - "root=${mmcroot} rootfstype=${mmcrootfstype}\0" \ - "nandargs=setenv bootargs "\ - "root=${nandroot} " \ - "rootfstype=${nandrootfstype}\0" \ - "nfsargs=setenv serverip ${tftpserver}; " \ - "setenv bootargs root=/dev/nfs " \ - "nfsroot=${nfsrootpath} " \ - "ip=${ipaddr}:${tftpserver}:${gatewayip}:${netmask}::eth0:off\0" \ - "nfsrootpath=/opt/nfs-exports/omap\0" \ - "autoload=no\0" \ - "fdtimage=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ - "loadfdt=mmc rescan; " \ - "load mmc ${mmcdev} ${fdtaddr} ${fdtimage}\0" \ - "mmcbootcommon=echo Booting with DT from mmc${mmcdev} ...; " \ - "run mmcargs; " \ - "run common_bootargs; " \ - "run dump_bootargs; " \ - "run loadimage; " \ - "run loadfdt;\0 " \ - "mmcbootz=setenv bootfile zImage; " \ - "run mmcbootcommon; "\ - "bootz ${loadaddr} - ${fdtaddr}\0" \ - "mmcboot=setenv bootfile uImage; "\ - "run mmcbootcommon; "\ - "bootm ${loadaddr} - ${fdtaddr}\0" \ - "mmcrambootcommon=echo 'Booting kernel from MMC w/ramdisk...'; " \ - "run ramargs; " \ - "run common_bootargs; " \ - "run dump_bootargs; " \ - "run loadimage; " \ - "run loadfdt; " \ - "run loadramdisk\0" \ - "mmcramboot=setenv bootfile uImage; " \ - "run mmcrambootcommon; " \ - "bootm ${loadaddr} ${rdaddr} ${fdtaddr}\0" \ - "mmcrambootz=setenv bootfile zImage; " \ - "run mmcrambootcommon; " \ - "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \ - "tftpboot=echo 'Booting kernel/ramdisk rootfs from tftp...'; " \ - "run ramargs; " \ - "run common_bootargs; " \ - "run dump_bootargs; " \ - "tftpboot ${loadaddr} ${zimage}; " \ - "tftpboot ${rdaddr} ${ramdiskimage}; " \ - "bootm ${loadaddr} ${rdaddr}\0" \ - "tftpbootz=echo 'Booting kernel NFS rootfs...'; " \ - "dhcp;" \ - "run nfsargs;" \ - "run common_bootargs;" \ - "run dump_bootargs;" \ - "tftpboot $loadaddr zImage;" \ - "bootz $loadaddr\0" \ - "nandbootcommon=echo 'Booting kernel from NAND...';" \ - "run nandargs;" \ - "run common_bootargs;" \ - "run dump_bootargs;" \ - "nand read ${loadaddr} kernel;" \ - "nand read ${fdtaddr} spl-os;\0" \ - "nandbootz=run nandbootcommon; "\ - "bootz ${loadaddr} - ${fdtaddr}\0"\ - "nandboot=run nandbootcommon; "\ - "bootm ${loadaddr} - ${fdtaddr}\0"\ - -#define CONFIG_BOOTCOMMAND \ - "run autoboot" - -/* Miscellaneous configurable options */ - -/* memtest works on */ -#define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0) -#define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \ - 0x01F00000)/* 31MB */ - -/* FLASH and environment organization */ - -/* **** PISMO SUPPORT *** */ -#if defined(CONFIG_CMD_NAND ) -#define CONFIG_SYS_FLASH_BASE 0x10000000 -#endif - -#define CONFIG_SYS_MAX_FLASH_SECT 256 -#define CONFIG_SYS_MAX_FLASH_BANKS 1 -#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT -#define CONFIG_SYS_FLASH_SIZE 0x4000000 - -/* Monitor at start of flash */ -#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE - -#define CONFIG_ENV_SIZE (128 << 10)/* 128 KiB */ - -#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10)/* 128 KiB */ -#define CONFIG_ENV_OFFSET 0x260000 -#define CONFIG_ENV_ADDR 0x260000 - -/* Defines for SPL */ - -/* NAND: SPL falcon mode configs */ -#ifdef CONFIG_SPL_OS_BOOT -#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000 -#endif - -#endif /* __CONFIG_H */ --2.19.1.1215.g8438c0b245-goog
PATCH 51/93 arm: Remove omap3_logic_somlv board
Hi Adam,
Quoted 10 lines · Adam Ford
Quoted 3 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.NAK! This board does support BLK. I think your algorithm is looking for
CONFIG_DM_BLKwhen it should be looking forCONFIG_BLKwhich depends on DM.
Quoted 6 lines
make
omap3_logic_somlv_defconfig
cat .config | grep BLK
CONFIG_BLK=yCONFIG_SPL_BLK=y
Yes it is the latter one that changed, as per my other emails. I changed the default for SPL to n, which fixed some boards but unfortunately broke others.
Regards,
Simon
PATCH 52/93 arm: Remove cm_t335 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-omap2/Kconfig | 1 - board/compulab/cm_t335/Kconfig | 15 --- board/compulab/cm_t335/MAINTAINERS | 6 -- board/compulab/cm_t335/Makefile | 8 -- board/compulab/cm_t335/cm_t335.c | 162 ----------------------------- board/compulab/cm_t335/mux.c | 116 --------------------- board/compulab/cm_t335/spl.c | 113 -------------------- board/compulab/cm_t335/u-boot.lds | 110 -------------------- configs/cm_t335_defconfig | 51 --------- include/configs/cm_t335.h | 152 --------------------------- 10 files changed, 734 deletions(-) delete mode 100644 board/compulab/cm_t335/Kconfig delete mode 100644 board/compulab/cm_t335/MAINTAINERS delete mode 100644 board/compulab/cm_t335/Makefile delete mode 100644 board/compulab/cm_t335/cm_t335.c delete mode 100644 board/compulab/cm_t335/mux.c delete mode 100644 board/compulab/cm_t335/spl.c delete mode 100644 board/compulab/cm_t335/u-boot.lds delete mode 100644 configs/cm_t335_defconfig delete mode 100644 include/configs/cm_t335.h
arch/arm/mach-omap2/Kconfig +0 -1
@@ -183,7 +183,6 @@ source "board/siemens/rut/Kconfig" source "board/ti/ti814x/Kconfig" source "board/ti/ti816x/Kconfig" source "board/ti/am43xx/Kconfig" -source "board/compulab/cm_t335/Kconfig" config SPL_LDSCRIPT default "arch/arm/mach-omap2/u-boot-spl.lds"
board/compulab/cm_t335/Kconfig deleted +0 -15
@@ -1,15 +0,0 @@ -if TARGET_CM_T335 - -config SYS_BOARD - default "cm_t335" - -config SYS_VENDOR - default "compulab" - -config SYS_SOC - default "am33xx" - -config SYS_CONFIG_NAME - default "cm_t335" - -endif
board/compulab/cm_t335/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -CM_T335 BOARD -M: Igor Grinberg <[email protected]> -S: Maintained -F: board/compulab/cm_t335/ -F: include/configs/cm_t335.h -F: configs/cm_t335_defconfig
board/compulab/cm_t335/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2013 Compulab Ltd - http://compulab.co.il/ -# -# Author: Ilya Ledvich <[email protected]> - -obj-y += cm_t335.o -obj-$(CONFIG_SPL_BUILD) += mux.o spl.o
board/compulab/cm_t335/cm_t335.c deleted +0 -162
162 lines not on this page · raw message
board/compulab/cm_t335/mux.c deleted +0 -116
116 lines not on this page · raw message
board/compulab/cm_t335/spl.c deleted +0 -113
113 lines not on this page · raw message
board/compulab/cm_t335/u-boot.lds deleted +0 -110
110 lines not on this page · raw message
configs/cm_t335_defconfig deleted +0 -51
51 lines not on this page · raw message
include/configs/cm_t335.h deleted +0 -152
152 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 53/93 arm: Remove liteboard board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/grinn/liteboard/Kconfig | 12 -- board/grinn/liteboard/MAINTAINERS | 6 - board/grinn/liteboard/Makefile | 4 - board/grinn/liteboard/README | 31 ---- board/grinn/liteboard/board.c | 286 ------------------------------ configs/liteboard_defconfig | 38 ---- include/configs/liteboard.h | 155 ---------------- 8 files changed, 533 deletions(-) delete mode 100644 board/grinn/liteboard/Kconfig delete mode 100644 board/grinn/liteboard/MAINTAINERS delete mode 100644 board/grinn/liteboard/Makefile delete mode 100644 board/grinn/liteboard/README delete mode 100644 board/grinn/liteboard/board.c delete mode 100644 configs/liteboard_defconfig delete mode 100644 include/configs/liteboard.h
arch/arm/mach-imx/mx6/Kconfig +0 -1
@@ -543,7 +543,6 @@ source "board/freescale/mx6sxsabresd/Kconfig" source "board/freescale/mx6sxsabreauto/Kconfig" source "board/freescale/mx6ul_14x14_evk/Kconfig" source "board/freescale/mx6ullevk/Kconfig" -source "board/grinn/liteboard/Kconfig" source "board/kosagi/novena/Kconfig" source "board/liebherr/display5/Kconfig" source "board/seco/Kconfig"
board/grinn/liteboard/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_LITEBOARD - -config SYS_BOARD - default "liteboard" - -config SYS_VENDOR - default "grinn" - -config SYS_CONFIG_NAME - default "liteboard" - -endif
board/grinn/liteboard/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -LITEBOARD -M: Marcin Niestroj <[email protected]> -S: Maintained -F: board/grinn/liteboard/ -F: include/configs/liteboard.h -F: configs/liteboard_defconfig
board/grinn/liteboard/Makefile deleted +0 -4
@@ -1,4 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# (C) Copyright 2016 Grinn - -obj-y := board.o
board/grinn/liteboard/README deleted +0 -31
@@ -1,31 +0,0 @@ -How to use U-Boot on Grinn's liteBoard --------------------------------------- - -- Build U-Boot for liteBoard: - -$ make mrproper -$ make liteboard_defconfig -$ make - -This will generate the SPL image called SPL and the u-boot.img. - -- Flash the SPL image into the micro SD card: - -sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync - -- Flash the u-boot.img image into the micro SD card: - -sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync - -- Jumper settings: - -S1: 0 1 0 1 1 1 - -where 0 means bottom position and 1 means top position (from the -switch label numbers reference). - -- Insert the micro SD card in the board. - -- Connect USB cable between liteBoard and the PC for the power and console. - -- U-Boot messages should come up.
board/grinn/liteboard/board.c deleted +0 -286
286 lines not on this page · raw message
configs/liteboard_defconfig deleted +0 -38
@@ -1,38 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x87800000 -CONFIG_SPL_GPIO_SUPPORT=y -CONFIG_SPL_LIBCOMMON_SUPPORT=y -CONFIG_SPL_LIBGENERIC_SUPPORT=y -CONFIG_TARGET_LITEBOARD=y -CONFIG_SPL_MMC_SUPPORT=y -CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_SPL=y -CONFIG_NR_DRAM_BANKS=1 -CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg" -CONFIG_BOOTDELAY=1 -CONFIG_SUPPORT_RAW_INITRD=y -CONFIG_DEFAULT_FDT_FILE="imx6ul-liteboard.dtb" -CONFIG_BOARD_EARLY_INIT_F=y -CONFIG_SPL_WATCHDOG_SUPPORT=y -CONFIG_HUSH_PARSER=y -CONFIG_CMD_BOOTZ=y -CONFIG_CMD_MEMTEST=y -CONFIG_CMD_GPIO=y -CONFIG_CMD_MMC=y -CONFIG_CMD_USB=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_PING=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_EXT2=y -CONFIG_CMD_EXT4=y -CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_FAT=y -CONFIG_CMD_FS_GENERIC=y -CONFIG_ENV_IS_IN_MMC=y -CONFIG_FSL_ESDHC=y -CONFIG_PHYLIB=y -CONFIG_MII=y -CONFIG_USB=y -CONFIG_USB_STORAGE=y -CONFIG_OF_LIBFDT=y
include/configs/liteboard.h deleted +0 -155
155 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 54/93 arm: Remove am43xx_evm_usbhost_boot board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-omap2/Kconfig | 1 - board/ti/am43xx/Kconfig | 17 - board/ti/am43xx/MAINTAINERS | 11 - board/ti/am43xx/Makefile | 11 - board/ti/am43xx/board.c | 957 ---------------------- board/ti/am43xx/board.h | 62 -- board/ti/am43xx/mux.c | 153 ---- configs/am43xx_evm_defconfig | 61 -- configs/am43xx_evm_ethboot_defconfig | 65 -- configs/am43xx_evm_qspiboot_defconfig | 63 -- configs/am43xx_evm_rtconly_defconfig | 62 -- configs/am43xx_evm_usbhost_boot_defconfig | 75 -- configs/am43xx_hs_evm_defconfig | 72 -- include/configs/am43xx_evm.h | 292 ------- 14 files changed, 1902 deletions(-) delete mode 100644 board/ti/am43xx/Kconfig delete mode 100644 board/ti/am43xx/MAINTAINERS delete mode 100644 board/ti/am43xx/Makefile delete mode 100644 board/ti/am43xx/board.c delete mode 100644 board/ti/am43xx/board.h delete mode 100644 board/ti/am43xx/mux.c delete mode 100644 configs/am43xx_evm_defconfig delete mode 100644 configs/am43xx_evm_ethboot_defconfig delete mode 100644 configs/am43xx_evm_qspiboot_defconfig delete mode 100644 configs/am43xx_evm_rtconly_defconfig delete mode 100644 configs/am43xx_evm_usbhost_boot_defconfig delete mode 100644 configs/am43xx_hs_evm_defconfig delete mode 100644 include/configs/am43xx_evm.h
arch/arm/mach-omap2/Kconfig +0 -1
@@ -182,7 +182,6 @@ source "board/siemens/pxm2/Kconfig" source "board/siemens/rut/Kconfig" source "board/ti/ti814x/Kconfig" source "board/ti/ti816x/Kconfig" -source "board/ti/am43xx/Kconfig" config SPL_LDSCRIPT default "arch/arm/mach-omap2/u-boot-spl.lds"
board/ti/am43xx/Kconfig deleted +0 -17
@@ -1,17 +0,0 @@ -if TARGET_AM43XX_EVM - -config SYS_BOARD - default "am43xx" - -config SYS_VENDOR - default "ti" - -config SYS_SOC - default "am33xx" - -config SYS_CONFIG_NAME - default "am43xx_evm" - -source "board/ti/common/Kconfig" - -endif
board/ti/am43xx/MAINTAINERS deleted +0 -11
@@ -1,11 +0,0 @@ -AM43XX BOARD -M: Lokesh Vutla <[email protected]> -S: Maintained -F: board/ti/am43xx/ -F: include/configs/am43xx_evm.h -F: configs/am43xx_evm_defconfig -F: configs/am43xx_evm_ethboot_defconfig -F: configs/am43xx_evm_qspiboot_defconfig -F: configs/am43xx_evm_usbhost_boot_defconfig -F: configs/am43xx_evm_rtconly_defconfig -F: configs/am43xx_hs_evm_defconfig
board/ti/am43xx/Makefile deleted +0 -11
@@ -1,11 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Makefile -# -# Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ - -ifeq ($(CONFIG_SKIP_LOWLEVEL_INIT),) -obj-y := mux.o -endif - -obj-y += board.o
board/ti/am43xx/board.c deleted +0 -957
957 lines not on this page · raw message
board/ti/am43xx/board.h deleted +0 -62
62 lines not on this page · raw message
board/ti/am43xx/mux.c deleted +0 -153
153 lines not on this page · raw message
configs/am43xx_evm_defconfig deleted +0 -61
61 lines not on this page · raw message
configs/am43xx_evm_ethboot_defconfig deleted +0 -65
65 lines not on this page · raw message
configs/am43xx_evm_qspiboot_defconfig deleted +0 -63
63 lines not on this page · raw message
configs/am43xx_evm_rtconly_defconfig deleted +0 -62
62 lines not on this page · raw message
configs/am43xx_evm_usbhost_boot_defconfig deleted +0 -75
75 lines not on this page · raw message
configs/am43xx_hs_evm_defconfig deleted +0 -72
72 lines not on this page · raw message
include/configs/am43xx_evm.h deleted +0 -292
292 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 55/93 arm: Remove chiliboard board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/Kconfig | 1 - arch/arm/include/asm/arch-am33xx/chilisom.h | 14 -- arch/arm/mach-omap2/am33xx/chilisom.c | 184 ------------------ board/grinn/chiliboard/Kconfig | 15 -- board/grinn/chiliboard/MAINTAINERS | 8 - board/grinn/chiliboard/Makefile | 4 - board/grinn/chiliboard/README | 31 --- board/grinn/chiliboard/board.c | 205 -------------------- configs/chiliboard_defconfig | 47 ----- include/configs/chiliboard.h | 180 ----------------- 10 files changed, 689 deletions(-) delete mode 100644 arch/arm/include/asm/arch-am33xx/chilisom.h delete mode 100644 arch/arm/mach-omap2/am33xx/chilisom.c delete mode 100644 board/grinn/chiliboard/Kconfig delete mode 100644 board/grinn/chiliboard/MAINTAINERS delete mode 100644 board/grinn/chiliboard/Makefile delete mode 100644 board/grinn/chiliboard/README delete mode 100644 board/grinn/chiliboard/board.c delete mode 100644 configs/chiliboard_defconfig delete mode 100644 include/configs/chiliboard.h
arch/arm/Kconfig +0 -1
@@ -1515,7 +1515,6 @@ source "board/freescale/ls1012aqds/Kconfig" source "board/freescale/ls1012ardb/Kconfig" source "board/freescale/ls1012afrdm/Kconfig" source "board/freescale/mx35pdk/Kconfig" -source "board/grinn/chiliboard/Kconfig" source "board/gumstix/pepper/Kconfig" source "board/h2200/Kconfig" source "board/hisilicon/hikey/Kconfig"
arch/arm/include/asm/arch-am33xx/chilisom.h deleted +0 -14
@@ -1,14 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* Copyright (C) 2017 Grinn -*/ - -#ifndef __ARCH_ARM_MACH_CHILISOM_SOM_H__ -#define __ARCH_ARM_MACH_CHILISOM_SOM_H__ - -#ifndef CONFIG_SKIP_LOWLEVEL_INIT -void chilisom_enable_pin_mux (void ); -void chilisom_spl_board_init (void ); -#endif - -#endif
arch/arm/mach-omap2/am33xx/chilisom.c deleted +0 -184
184 lines not on this page · raw message
board/grinn/chiliboard/Kconfig deleted +0 -15
@@ -1,15 +0,0 @@ -if TARGET_CHILIBOARD - -config SYS_BOARD - default "chiliboard" - -config SYS_VENDOR - default "grinn" - -config SYS_CONFIG_NAME - default "chiliboard" - -config SYS_SOC - default "am33xx" - -endif
board/grinn/chiliboard/MAINTAINERS deleted +0 -8
@@ -1,8 +0,0 @@ -CHILIBOARD -M: Marcin Niestroj <[email protected]> -S: Maintained -F: arch/arm/include/asm/arch-am33xx/chilisom.h -F: arch/arm/mach-omap2/am33xx/chilisom.c -F: board/grinn/chiliboard/ -F: include/configs/chiliboard.h -F: configs/chiliboard_defconfig
board/grinn/chiliboard/Makefile deleted +0 -4
@@ -1,4 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# (C) Copyright 2017 Grinn - -obj-y := board.o
board/grinn/chiliboard/README deleted +0 -31
@@ -1,31 +0,0 @@ -How to use U-Boot on Grinn's chiliBoard --------------------------------------- - -- Build U-Boot for chiliBoard: - -$ make mrproper -$ make chiliboard_defconfig -$ make - -This will generate the SPL image called MLO and the u-boot.img. - -- Flash the SPL image into the micro SD card: - -sudo dd if=MLO of=/dev/mmcblk0 bs=128k; sync - -- Flash the u-boot.img image into the micro SD card: - -sudo dd if=u-boot.img of=/dev/mmcblk0 bs=128k seek=3; sync - -- Jumper settings: - -S2: 1 1 1 0 1 0 - -where 0 means bottom position and 1 means top position (from the -switch label numbers reference). - -- Insert the micro SD card in the board. - -- Connect USB cable between chiliBoard and the PC for the power and console. - -- U-Boot messages should come up.
board/grinn/chiliboard/board.c deleted +0 -205
205 lines not on this page · raw message
configs/chiliboard_defconfig deleted +0 -47
47 lines not on this page · raw message
include/configs/chiliboard.h deleted +0 -180
180 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 55/93 arm: Remove chiliboard board
Hi Simon, All,
Quoted 2 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.
I just got my hands on chiliboard to start using device-model drivers. Unfortunately this board does not boot already on master branch. git bisect returned d0851c8937067ad396f2bdafc46d0326bf3317db ("blk: Call part_init() in the post_probe() method") as the first bad commit. It would not be a big problem if we would switch after 1-2 weeks anyway, but I am not sure that will happen based on the discussions. Anyway, it is better you know about that problem. Below you can find logs from boot process.
After bad commit:
U-Boot SPL 2018.11 (Nov 21 2018 - 13:35:44 +0100) Trying to boot from MMC1
U-Boot 2018.11 (Nov 21 2018 - 13:35:44 +0100)
CPU : AM335X-GP rev 2.1
I2C: ready DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: cpsw
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** No partition table - mmc 0 **
** No partition table - mmc 0 **
Booting from nand ...
Before bad commit:
U-Boot SPL 2018.11 (Nov 21 2018 - 13:36:26 +0100) Trying to boot from MMC1
U-Boot 2018.11 (Nov 21 2018 - 13:36:26 +0100)
CPU : AM335X-GP rev 2.1
I2C: ready DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: cpsw
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
5892272 bytes read in 370 ms (15.2 MiB/s) 32494 bytes read in 4 ms (7.7 MiB/s)
## Flattened Device Tree blob at 87800000
Booting using the fdt blob at 0x87800000 Loading Device Tree to 8df48000, end 8df52eed ... OK
Starting kernel ...
--
Regards,
Marcin
PATCH 55/93 arm: Remove chiliboard board
Hi Marcin,
Quoted 69 lines · Marcin Niestrój
Hi Simon, All,
Quoted 2 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.I just got my hands on chiliboard to start using device-model drivers. Unfortunately this board does not boot already on master branch.
git bisectreturnedd0851c8937067ad396f2bdafc46d0326bf3317db("blk: Callpart_init()in thepost_probe()method") as the first bad commit. It would not be a big problem if we would switch after 1-2 weeks anyway, but I am not sure that will happen based on the discussions. Anyway, it is better you know about that problem. Below you can find logs from boot process.After bad commit:
U-Boot SPL 2018.11 (Nov 21 2018 - 13:35:44 +0100) Trying to boot from MMC1
U-Boot 2018.11 (Nov 21 2018 - 13:35:44 +0100)
CPU : AM335X-GP rev 2.1
I2C: ready DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1Loading Environment from MMC... *** Warning - bad CRC, using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: cpsw
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** No partition table - mmc 0 **
** No partition table - mmc 0 **
Booting from nand ...Before bad commit:
U-Boot SPL 2018.11 (Nov 21 2018 - 13:36:26 +0100) Trying to boot from MMC1
U-Boot 2018.11 (Nov 21 2018 - 13:36:26 +0100)
CPU : AM335X-GP rev 2.1
I2C: ready DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1Loading Environment from MMC... *** Warning - bad CRC, using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: cpsw
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
5892272 bytes read in 370 ms (15.2 MiB/s) 32494 bytes read in 4 ms (7.7 MiB/s)
## Flattened Device Tree blob at 87800000
Booting using the fdt blob at0x87800000Loading Device Tree to8df48000, end8df52eed... OK
Quoted 1 line
Starting kernel ...
I am not sure what is wrong. Does it hang in part_init()? It looks like you don't have a partition table, but it should still be OK to probe for it.
Regards,
Simon
PATCH 56/93 arm: Remove am335x_baltos board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/Kconfig | 1 - board/vscom/baltos/Kconfig | 15 - board/vscom/baltos/MAINTAINERS | 6 - board/vscom/baltos/Makefile | 11 - board/vscom/baltos/README | 1 - board/vscom/baltos/board.c | 493 -------------------------------- board/vscom/baltos/board.h | 34 --- board/vscom/baltos/mux.c | 125 -------- board/vscom/baltos/u-boot.lds | 128 --------- configs/am335x_baltos_defconfig | 65 ----- include/configs/baltos.h | 276 ------------------ 11 files changed, 1155 deletions(-) delete mode 100644 board/vscom/baltos/Kconfig delete mode 100644 board/vscom/baltos/MAINTAINERS delete mode 100644 board/vscom/baltos/Makefile delete mode 100644 board/vscom/baltos/README delete mode 100644 board/vscom/baltos/board.c delete mode 100644 board/vscom/baltos/board.h delete mode 100644 board/vscom/baltos/mux.c delete mode 100644 board/vscom/baltos/u-boot.lds delete mode 100644 configs/am335x_baltos_defconfig delete mode 100644 include/configs/baltos.h
arch/arm/Kconfig +0 -1
@@ -1528,7 +1528,6 @@ source "board/spear/x600/Kconfig" source "board/st/stv0991/Kconfig" source "board/tcl/sl50/Kconfig" source "board/ucRobotics/bubblegum_96/Kconfig" -source "board/vscom/baltos/Kconfig" source "board/woodburn/Kconfig" source "board/xilinx/Kconfig" source "board/xilinx/zynq/Kconfig"
board/vscom/baltos/Kconfig deleted +0 -15
@@ -1,15 +0,0 @@ -if TARGET_AM335X_BALTOS - -config SYS_BOARD - default "baltos" - -config SYS_VENDOR - default "vscom" - -config SYS_SOC - default "am33xx" - -config SYS_CONFIG_NAME - default "baltos" - -endif
board/vscom/baltos/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -BALTOS BOARD -M: Yegor Yefremov <[email protected]> -S: Maintained -F: board/vscom/baltos/ -F: include/configs/baltos.h -F: configs/am335x_baltos_defconfig
board/vscom/baltos/Makefile deleted +0 -11
@@ -1,11 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Makefile -# -# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ - -ifeq ($(CONFIG_SKIP_LOWLEVEL_INIT),) -obj-y := mux.o -endif - -obj-y += board.o
board/vscom/baltos/README deleted +0 -1
@@ -1 +0,0 @@ -BSP for VScom OnRISC Balios family devices, like Balios iR 5221.
board/vscom/baltos/board.c deleted +0 -493
493 lines not on this page · raw message
board/vscom/baltos/board.h deleted +0 -34
@@ -1,34 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* board.h -* -* TI AM335x boards information header -* -* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ -*/ - -#ifndef _BOARD_H_ -#define _BOARD_H_ - -typedef struct _BSP_VS_HWPARAM // v1.0 -{ -uint32_t Magic; -uint32_t HwRev; -uint32_t SerialNumber; -char PrdDate[11 ];// as a string ie. "01.01.2006" -uint16_t SystemId; -uint8_t MAC1[6 ];// internal EMAC -uint8_t MAC2[6 ];// SMSC9514 -uint8_t MAC3[6 ];// WL1271 WLAN -} __attribute__ ((packed))BSP_VS_HWPARAM ; - -/* -* We have three pin mux functions that must exist. We must be able to enable -* uart0, for initial output and i2c0 to read the main EEPROM. We then have a -* main pinmux function that can be overridden to enable all other pinmux that -* is required on the board. -*/ -void enable_uart0_pin_mux (void ); -void enable_i2c1_pin_mux (void ); -void enable_board_pin_mux (void ); -#endif
board/vscom/baltos/mux.c deleted +0 -125
125 lines not on this page · raw message
board/vscom/baltos/u-boot.lds deleted +0 -128
128 lines not on this page · raw message
configs/am335x_baltos_defconfig deleted +0 -65
65 lines not on this page · raw message
include/configs/baltos.h deleted +0 -276
276 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 56/93 arm: Remove am335x_baltos board
Hi Simon,
Quoted 3 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.
I've sent a fix:
https://lists.denx.de/pipermail/u-boot/2018-November/348319.html
Best Regards,
Yegor
Quoted 1,255 lines
Signed-off-by Simon Glass <[email protected]>---
arch/arm/Kconfig | 1 - board/vscom/baltos/Kconfig | 15 - board/vscom/baltos/MAINTAINERS | 6 - board/vscom/baltos/Makefile | 11 - board/vscom/baltos/README | 1 - board/vscom/baltos/board.c | 493 -------------------------------- board/vscom/baltos/board.h | 34 --- board/vscom/baltos/mux.c | 125 -------- board/vscom/baltos/u-boot.lds | 128 --------- configs/am335x_baltos_defconfig | 65 ----- include/configs/baltos.h | 276 ------------------ 11 files changed, 1155 deletions(-) delete mode 100644 board/vscom/baltos/Kconfig delete mode 100644 board/vscom/baltos/MAINTAINERS delete mode 100644 board/vscom/baltos/Makefile delete mode 100644 board/vscom/baltos/README delete mode 100644 board/vscom/baltos/board.c delete mode 100644 board/vscom/baltos/board.h delete mode 100644 board/vscom/baltos/mux.c delete mode 100644 board/vscom/baltos/u-boot.lds delete mode 100644 configs/am335x_baltos_defconfig delete mode 100644 include/configs/baltos.harch/arm/Kconfig +0
-1@@ -1528,7 +1528,6 @@ source "board/spear/x600/Kconfig" source "board/st/stv0991/Kconfig" source "board/tcl/sl50/Kconfig" source "board/ucRobotics/bubblegum_96/Kconfig" -source "board/vscom/baltos/Kconfig" source "board/woodburn/Kconfig" source "board/xilinx/Kconfig" source "board/xilinx/zynq/Kconfig"board/vscom/baltos/Kconfig deleted +0
-15@@ -1,15 +0,0 @@ -if TARGET_AM335X_BALTOS - -config SYS_BOARD - default "baltos" - -config SYS_VENDOR - default "vscom" - -config SYS_SOC - default "am33xx" - -config SYS_CONFIG_NAME - default "baltos" - -endifboard/vscom/baltos/MAINTAINERS deleted +0
-6@@ -1,6 +0,0 @@ -BALTOS BOARD -M: Yegor Yefremov <[email protected]> -S: Maintained -F: board/vscom/baltos/ -F: include/configs/baltos.h -F: configs/am335x_baltos_defconfigboard/vscom/baltos/Makefile deleted +0
-11@@ -1,11 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Makefile -# -# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ - -ifeq ($(CONFIG_SKIP_LOWLEVEL_INIT),) -obj-y := mux.o -endif - -obj-y += board.oboard/vscom/baltos/README deleted +0
-1@@ -1 +0,0 @@ -BSP for VScom OnRISC Balios family devices, like Balios iR 5221.board/vscom/baltos/board.c deleted +0
-493@@ -1,493 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* board.c -* -* Board functions for TI AM335X based boards -* -* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ -*/ - -#include <common.h> -#include <errno.h> -#include <linux/libfdt.h> -#include <spl.h> -#include <asm/arch/cpu.h> -#include <asm/arch/hardware.h> -#include <asm/arch/omap.h> -#include <asm/arch/ddr_defs.h> -#include <asm/arch/clock.h> -#include <asm/arch/gpio.h> -#include <asm/arch/mmc_host_def.h> -#include <asm/arch/sys_proto.h> -#include <asm/arch/mem.h> -#include <asm/arch/mux.h> -#include <asm/io.h> -#include <asm/emif.h> -#include <asm/gpio.h> -#include <i2c.h> -#include <miiphy.h> -#include <cpsw.h> -#include <power/tps65217.h> -#include <power/tps65910.h> -#include <environment.h> -#include <watchdog.h> -#include "board.h" - -DECLARE_GLOBAL_DATA_PTR ; - -/* GPIO that controls power to DDR on EVM-SK */ -#define GPIO_DDR_VTT_EN 7 -#define DIP_S1 44 -#define MPCIE_SW 100 - -static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE ; - -static int baltos_set_console (void ) -{ -int val, i, dips =0 ; -char buf[7 ]; - -for (i =0 ; i <4 ; i++) { -sprintf (buf,"dip_s%d" , i +1 ); - -if (gpio_request (DIP_S1 + i, buf)) { -printf ("failed to export GPIO %d\n" ,DIP_S1 + i); -return 0 ; - } - -if (gpio_direction_input (DIP_S1 + i)) { -printf ("failed to set GPIO %d direction\n" ,DIP_S1 + i); -return 0 ; - } - - val =gpio_get_value (DIP_S1 + i); - dips |= val << i; - } - -printf ("DIPs: 0x%1x\n" , (~dips) &0xf ); - -if ((dips &0xf ) ==0xe ) -env_set ("console" ,"ttyUSB0,115200n8" ); - -return 0 ; -} - -static int read_eeprom (BSP_VS_HWPARAM *header) -{ -i2c_set_bus_num (1 ); - -/* Check if baseboard eeprom is available */ -if (i2c_probe (CONFIG_SYS_I2C_EEPROM_ADDR )) { -puts ("Could not probe the EEPROM; something fundamentally " -"wrong on the I2C bus.\n" ); -return -ENODEV ; - } - -/* read the eeprom using i2c */ -if (i2c_read (CONFIG_SYS_I2C_EEPROM_ADDR ,0 ,1 , (uchar *)header, -sizeof (BSP_VS_HWPARAM ))) { -puts ("Could not read the EEPROM; something fundamentally" -" wrong on the I2C bus.\n" ); -return -EIO ; - } - -if (header->Magic !=0xDEADBEEF ) { - -printf ("Incorrect magic number (0x%x) in EEPROM\n" , - header->Magic); - -/* fill default values */ - header->SystemId =211 ; - header->MAC1[0 ] =0x00 ; - header->MAC1[1 ] =0x00 ; - header->MAC1[2 ] =0x00 ; - header->MAC1[3 ] =0x00 ; - header->MAC1[4 ] =0x00 ; - header->MAC1[5 ] =0x01 ; - - header->MAC2[0 ] =0x00 ; - header->MAC2[1 ] =0x00 ; - header->MAC2[2 ] =0x00 ; - header->MAC2[3 ] =0x00 ; - header->MAC2[4 ] =0x00 ; - header->MAC2[5 ] =0x02 ; - - header->MAC3[0 ] =0x00 ; - header->MAC3[1 ] =0x00 ; - header->MAC3[2 ] =0x00 ; - header->MAC3[3 ] =0x00 ; - header->MAC3[4 ] =0x00 ; - header->MAC3[5 ] =0x03 ; - } - -return 0 ; -} - -#if defined(CONFIG_SPL_BUILD ) || defined(CONFIG_NOR_BOOT ) - -static const struct ddr_data ddr3_baltos_data = { - .datardsratio0 =MT41K256M16HA125E_RD_DQS , - .datawdsratio0 =MT41K256M16HA125E_WR_DQS , - .datafwsratio0 =MT41K256M16HA125E_PHY_FIFO_WE , - .datawrsratio0 =MT41K256M16HA125E_PHY_WR_DATA , -}; - -static const struct cmd_control ddr3_baltos_cmd_ctrl_data = { - .cmd0csratio =MT41K256M16HA125E_RATIO , - .cmd0iclkout =MT41K256M16HA125E_INVERT_CLKOUT , - - .cmd1csratio =MT41K256M16HA125E_RATIO , - .cmd1iclkout =MT41K256M16HA125E_INVERT_CLKOUT , - - .cmd2csratio =MT41K256M16HA125E_RATIO , - .cmd2iclkout =MT41K256M16HA125E_INVERT_CLKOUT , -}; - -static struct emif_regs ddr3_baltos_emif_reg_data = { - .sdram_config =MT41K256M16HA125E_EMIF_SDCFG , - .ref_ctrl =MT41K256M16HA125E_EMIF_SDREF , - .sdram_tim1 =MT41K256M16HA125E_EMIF_TIM1 , - .sdram_tim2 =MT41K256M16HA125E_EMIF_TIM2 , - .sdram_tim3 =MT41K256M16HA125E_EMIF_TIM3 , - .zq_config =MT41K256M16HA125E_ZQ_CFG , - .emif_ddr_phy_ctlr_1 =MT41K256M16HA125E_EMIF_READ_LATENCY , -}; - -#ifdef CONFIG_SPL_OS_BOOT -int spl_start_uboot (void ) -{ -/* break into full u-boot on 'c' */ -return (serial_tstc () &&serial_getc () =='c' ); -} -#endif - -#define OSC (V_OSCK/1000000) -const struct dpll_params dpll_ddr = { -266 ,OSC -1 ,1 ,-1 ,-1 ,-1 ,-1 }; -const struct dpll_params dpll_ddr_evm_sk = { -303 ,OSC -1 ,1 ,-1 ,-1 ,-1 ,-1 }; -const struct dpll_params dpll_ddr_baltos = { -400 ,OSC -1 ,1 ,-1 ,-1 ,-1 ,-1 }; - -void am33xx_spl_board_init (void ) -{ -int mpu_vdd; -int sil_rev; - -/* Get the frequency */ - dpll_mpu_opp100.m =am335x_get_efuse_mpu_max_freq (cdev); - -/* -* The GP EVM, IDK and EVM SK use a TPS65910 PMIC. For all -* MPU frequencies we support we use a CORE voltage of -* 1.1375V. For MPU voltage we need to switch based on -* the frequency we are running at. -*/ -i2c_set_bus_num (1 ); - -printf ("I2C speed: %d Hz\n" ,CONFIG_SYS_OMAP24_I2C_SPEED ); - -if (i2c_probe (TPS65910_CTRL_I2C_ADDR )) { -puts ("i2c: cannot access TPS65910\n" ); -return ; - } - -/* -* Depending on MPU clock and PG we will need a different -* VDD to drive at that speed. -*/ - sil_rev =readl (&cdev->deviceid) >>28 ; - mpu_vdd =am335x_get_tps65910_mpu_vdd (sil_rev, - dpll_mpu_opp100.m); - -/* Tell the TPS65910 to use i2c */ -tps65910_set_i2c_control (); - -/* First update MPU voltage. */ -if (tps65910_voltage_update (MPU , mpu_vdd)) -return ; - -/* Second, update the CORE voltage. */ -if (tps65910_voltage_update (CORE ,TPS65910_OP_REG_SEL_1_1_3 )) -return ; - -/* Set CORE Frequencies to OPP100 */ -do_setup_dpll (&dpll_core_regs, &dpll_core_opp100); - -/* Set MPU Frequency to what we detected now that voltages are set */ -do_setup_dpll (&dpll_mpu_regs, &dpll_mpu_opp100); - -writel (0x000010ff ,PRM_DEVICE_INST +4 ); -} - -const struct dpll_params *get_dpll_ddr_params (void ) -{ -enable_i2c1_pin_mux (); -i2c_set_bus_num (1 ); - -return &dpll_ddr_baltos; -} - -void set_uart_mux_conf (void ) -{ -enable_uart0_pin_mux (); -} - -void set_mux_conf_regs (void ) -{ -enable_board_pin_mux (); -} - -const struct ctrl_ioregs ioregs_baltos = { - .cm0ioctl =MT41K256M16HA125E_IOCTRL_VALUE , - .cm1ioctl =MT41K256M16HA125E_IOCTRL_VALUE , - .cm2ioctl =MT41K256M16HA125E_IOCTRL_VALUE , - .dt0ioctl =MT41K256M16HA125E_IOCTRL_VALUE , - .dt1ioctl =MT41K256M16HA125E_IOCTRL_VALUE , -}; - -void sdram_init (void ) -{ -gpio_request (GPIO_DDR_VTT_EN ,"ddr_vtt_en" ); -gpio_direction_output (GPIO_DDR_VTT_EN ,1 ); - -config_ddr (400 , &ioregs_baltos, - &ddr3_baltos_data, - &ddr3_baltos_cmd_ctrl_data, - &ddr3_baltos_emif_reg_data,0 ); -} -#endif - -/* -* Basic board specific setup. Pinmux has been handled already. -*/ -int board_init (void ) -{ -#if defined(CONFIG_HW_WATCHDOG ) -hw_watchdog_init (); -#endif - - gd->bd->bi_boot_params =CONFIG_SYS_SDRAM_BASE +0x100 ; -#if defined(CONFIG_NOR ) || defined(CONFIG_NAND ) -gpmc_init (); -#endif -return 0 ; -} - -int ft_board_setup (void *blob,bd_t *bd) -{ -int node, ret; -unsigned char mac_addr[6 ]; -BSP_VS_HWPARAM header; - -/* get production data */ -if (read_eeprom (&header)) -return 0 ; - -/* setup MAC1 */ - mac_addr[0 ] = header.MAC1[0 ]; - mac_addr[1 ] = header.MAC1[1 ]; - mac_addr[2 ] = header.MAC1[2 ]; - mac_addr[3 ] = header.MAC1[3 ]; - mac_addr[4 ] = header.MAC1[4 ]; - mac_addr[5 ] = header.MAC1[5 ]; - - - node =fdt_path_offset (blob,"/ocp/ethernet/slave at 4a100200" ); -if (node <0 ) { -printf ("no /soc/fman/ethernet path offset\n" ); -return -ENODEV ; - } - - ret =fdt_setprop (blob, node,"mac-address" , &mac_addr,6 ); -if (ret) { -printf ("error setting local-mac-address property\n" ); -return -ENODEV ; - } - -/* setup MAC2 */ - mac_addr[0 ] = header.MAC2[0 ]; - mac_addr[1 ] = header.MAC2[1 ]; - mac_addr[2 ] = header.MAC2[2 ]; - mac_addr[3 ] = header.MAC2[3 ]; - mac_addr[4 ] = header.MAC2[4 ]; - mac_addr[5 ] = header.MAC2[5 ]; - - node =fdt_path_offset (blob,"/ocp/ethernet/slave at 4a100300" ); -if (node <0 ) { -printf ("no /soc/fman/ethernet path offset\n" ); -return -ENODEV ; - } - - ret =fdt_setprop (blob, node,"mac-address" , &mac_addr,6 ); -if (ret) { -printf ("error setting local-mac-address property\n" ); -return -ENODEV ; - } - -printf ("\nFDT was successfully setup\n" ); - -return 0 ; -} - -static struct module_pin_mux pcie_sw_pin_mux[] = { - {OFFSET (mii1_rxdv), (MODE (7 ) |PULLUDEN )},/* GPIO3_4 */ - {-1 }, -}; - -static struct module_pin_mux dip_pin_mux[] = { - {OFFSET (gpmc_ad12), (MODE (7 ) |RXACTIVE )},/* GPIO1_12 */ - {OFFSET (gpmc_ad13), (MODE (7 ) |RXACTIVE )},/* GPIO1_13 */ - {OFFSET (gpmc_ad14), (MODE (7 ) |RXACTIVE )},/* GPIO1_14 */ - {OFFSET (gpmc_ad15), (MODE (7 ) |RXACTIVE )},/* GPIO1_15 */ - {-1 }, -}; - -#ifdef CONFIG_BOARD_LATE_INIT -int board_late_init (void ) -{ -#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG -BSP_VS_HWPARAM header; -char model[4 ]; - -/* get production data */ -if (read_eeprom (&header)) { -strcpy (model,"211" ); - }else { -sprintf (model,"%d" , header.SystemId); -if (header.SystemId ==215 ) { -configure_module_pin_mux (dip_pin_mux); -baltos_set_console (); - } - } - -/* turn power for the mPCIe slot */ -configure_module_pin_mux (pcie_sw_pin_mux); -if (gpio_request (MPCIE_SW ,"mpcie_sw" )) { -printf ("failed to export GPIO %d\n" ,MPCIE_SW ); -return -ENODEV ; - } -if (gpio_direction_output (MPCIE_SW ,1 )) { -printf ("failed to set GPIO %d direction\n" ,MPCIE_SW ); -return -ENODEV ; - } - -env_set ("board_name" , model); -#endif - -return 0 ; -} -#endif - -#if (defined(CONFIG_DRIVER_TI_CPSW ) && !defined(CONFIG_SPL_BUILD )) || \ - (defined(CONFIG_SPL_ETH_SUPPORT ) && defined(CONFIG_SPL_BUILD )) -static void cpsw_control (int enabled) -{ -/* VTP can be added here */ - -return ; -} - -static struct cpsw_slave_data cpsw_slaves[] = { - { - .slave_reg_ofs =0x208 , - .sliver_reg_ofs =0xd80 , - .phy_addr =0 , - }, - { - .slave_reg_ofs =0x308 , - .sliver_reg_ofs =0xdc0 , - .phy_addr =7 , - }, -}; - -static struct cpsw_platform_data cpsw_data = { - .mdio_base =CPSW_MDIO_BASE , - .cpsw_base =CPSW_BASE , - .mdio_div =0xff , - .channels =8 , - .cpdma_reg_ofs =0x800 , - .slaves =2 , - .slave_data = cpsw_slaves, - .active_slave =1 , - .ale_reg_ofs =0xd00 , - .ale_entries =1024 , - .host_port_reg_ofs =0x108 , - .hw_stats_reg_ofs =0x900 , - .bd_ram_ofs =0x2000 , - .mac_control = (1 <<5 ), - .control = cpsw_control, - .host_port_num =0 , - .version =CPSW_CTRL_VERSION_2 , -}; -#endif - -#if ((defined(CONFIG_SPL_ETH_SUPPORT ) || defined(CONFIG_SPL_USB_ETHER )) \ - && defined(CONFIG_SPL_BUILD )) || \ - ((defined(CONFIG_DRIVER_TI_CPSW ) || \ - defined(CONFIG_USB_ETHER ) && defined(CONFIG_USB_MUSB_GADGET )) && \ - !defined(CONFIG_SPL_BUILD )) -int board_eth_init (bd_t *bis) -{ -int rv, n =0 ; -uint8_t mac_addr[6 ]; -uint32_t mac_hi, mac_lo; - -/* -* Note here that we're using CPSW1 since that has a 1Gbit PHY while -* CSPW0 has a 100Mbit PHY. -* -* On product, CPSW1 maps to port labeled WAN. -*/ - -/* try reading mac address from efuse */ - mac_lo =readl (&cdev->macid1l); - mac_hi =readl (&cdev->macid1h); - mac_addr[0 ] = mac_hi &0xFF ; - mac_addr[1 ] = (mac_hi &0xFF00 ) >>8 ; - mac_addr[2 ] = (mac_hi &0xFF0000 ) >>16 ; - mac_addr[3 ] = (mac_hi &0xFF000000 ) >>24 ; - mac_addr[4 ] = mac_lo &0xFF ; - mac_addr[5 ] = (mac_lo &0xFF00 ) >>8 ; - -#if (defined(CONFIG_DRIVER_TI_CPSW ) && !defined(CONFIG_SPL_BUILD )) || \ - (defined(CONFIG_SPL_ETH_SUPPORT ) && defined(CONFIG_SPL_BUILD )) -if (!env_get ("ethaddr" )) { -printf ("<ethaddr> not set. Validating first E-fuse MAC\n" ); - -if (is_valid_ethaddr (mac_addr)) -eth_env_set_enetaddr ("ethaddr" , mac_addr); - } - -#ifdef CONFIG_DRIVER_TI_CPSW -writel ((GMII1_SEL_RMII |GMII2_SEL_RGMII |RGMII2_IDMODE ), &cdev->miisel); - cpsw_slaves[1 ].phy_if =PHY_INTERFACE_MODE_RGMII ; - rv =cpsw_register (&cpsw_data); -if (rv <0 ) -printf ("Error %d registering CPSW switch\n" , rv); -else - n += rv; -#endif - -/* -* -* CPSW RGMII Internal Delay Mode is not supported in all PVT -* operating points. So we must set the TX clock delay feature -* in the AR8051 PHY. Since we only support a single ethernet -* device in U-Boot, we only do this for the first instance. -*/ -#define AR8051_PHY_DEBUG_ADDR_REG 0x1d -#define AR8051_PHY_DEBUG_DATA_REG 0x1e -#define AR8051_DEBUG_RGMII_CLK_DLY_REG 0x5 -#define AR8051_RGMII_TX_CLK_DLY 0x100 -const char *devname; - devname =miiphy_get_current_dev (); - -miiphy_write (devname,0x7 ,AR8051_PHY_DEBUG_ADDR_REG , -AR8051_DEBUG_RGMII_CLK_DLY_REG ); -miiphy_write (devname,0x7 ,AR8051_PHY_DEBUG_DATA_REG , -AR8051_RGMII_TX_CLK_DLY ); -#endif -return n; -} -#endif board/vscom/baltos/board.h deleted +0
-34@@ -1,34 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* board.h -* -* TI AM335x boards information header -* -* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ -*/ - -#ifndef _BOARD_H_ -#define _BOARD_H_ - -typedef struct _BSP_VS_HWPARAM // v1.0 -{ -uint32_t Magic; -uint32_t HwRev; -uint32_t SerialNumber; -char PrdDate[11 ];// as a string ie. "01.01.2006" -uint16_t SystemId; -uint8_t MAC1[6 ];// internal EMAC -uint8_t MAC2[6 ];// SMSC9514 -uint8_t MAC3[6 ];// WL1271 WLAN -} __attribute__ ((packed))BSP_VS_HWPARAM ; - -/* -* We have three pin mux functions that must exist. We must be able to enable -* uart0, for initial output and i2c0 to read the main EEPROM. We then have a -* main pinmux function that can be overridden to enable all other pinmux that -* is required on the board. -*/ -void enable_uart0_pin_mux (void ); -void enable_i2c1_pin_mux (void ); -void enable_board_pin_mux (void ); -#endif board/vscom/baltos/mux.c deleted +0
-125@@ -1,125 +0,0 @@ -/* -* mux.c -* -* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation version 2. -* -* This program is distributed "as is" WITHOUT ANY WARRANTY of any -* kind, whether express or implied; without even the implied warranty -* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ - -#include <common.h> -#include <asm/arch/sys_proto.h> -#include <asm/arch/hardware.h> -#include <asm/arch/mux.h> -#include <asm/io.h> -#include <i2c.h> -#include "board.h" - -static struct module_pin_mux uart0_pin_mux[] = { - {OFFSET (uart0_rxd), (MODE (0 ) |PULLUP_EN |RXACTIVE )},/* UART0_RXD */ - {OFFSET (uart0_txd), (MODE (0 ) |PULLUDEN )},/* UART0_TXD */ - {-1 }, -}; - -static struct module_pin_mux mmc0_pin_mux[] = { - {OFFSET (mmc0_dat3), (MODE (0 ) |RXACTIVE |PULLUP_EN )},/* MMC0_DAT3 */ - {OFFSET (mmc0_dat2), (MODE (0 ) |RXACTIVE |PULLUP_EN )},/* MMC0_DAT2 */ - {OFFSET (mmc0_dat1), (MODE (0 ) |RXACTIVE |PULLUP_EN )},/* MMC0_DAT1 */ - {OFFSET (mmc0_dat0), (MODE (0 ) |RXACTIVE |PULLUP_EN )},/* MMC0_DAT0 */ - {OFFSET (mmc0_clk), (MODE (0 ) |RXACTIVE |PULLUP_EN )},/* MMC0_CLK */ - {OFFSET (mmc0_cmd), (MODE (0 ) |RXACTIVE |PULLUP_EN )},/* MMC0_CMD */ -//{OFFSET(spi0_cs1), (MODE(5) | RXACTIVE | PULLUP_EN)}, /* MMC0_CD */ - {-1 }, -}; - -static struct module_pin_mux i2c1_pin_mux[] = { - {OFFSET (spi0_d1), (MODE (2 ) |RXACTIVE | -PULLUDEN |SLEWCTRL )},/* I2C_DATA */ - {OFFSET (spi0_cs0), (MODE (2 ) |RXACTIVE | -PULLUDEN |SLEWCTRL )},/* I2C_SCLK */ - {-1 }, -}; - -static struct module_pin_mux gpio0_7_pin_mux[] = { - {OFFSET (ecap0_in_pwm0_out), (MODE (7 ) |PULLUDEN )},/* GPIO0_7 */ - {-1 }, -}; - -static struct module_pin_mux rmii1_pin_mux[] = { - {OFFSET (mii1_crs),MODE (1 ) |RXACTIVE },/* RGMII1_TCTL */ - {OFFSET (mii1_txen),MODE (1 )},/* RGMII1_TCTL */ - {OFFSET (mii1_txd1),MODE (1 )},/* RGMII1_TCTL */ - {OFFSET (mii1_txd0),MODE (1 )},/* RGMII1_TCTL */ - {OFFSET (mii1_rxd1),MODE (1 ) |RXACTIVE },/* RGMII1_TCTL */ - {OFFSET (mii1_rxd0),MODE (1 ) |RXACTIVE },/* RGMII1_TCTL */ - {OFFSET (rmii1_refclk),MODE (0 ) |RXACTIVE },/* RGMII1_TCTL */ - {OFFSET (mdio_data),MODE (0 ) |RXACTIVE |PULLUP_EN },/* MDIO_DATA */ - {OFFSET (mdio_clk),MODE (0 ) |PULLUP_EN },/* MDIO_CLK */ - {-1 }, -}; - -static struct module_pin_mux rgmii2_pin_mux[] = { - {OFFSET (gpmc_a0),MODE (2 )},/* RGMII1_TCTL */ - {OFFSET (gpmc_a1),MODE (2 ) |RXACTIVE },/* RGMII1_RCTL */ - {OFFSET (gpmc_a2),MODE (2 )},/* RGMII1_TD3 */ - {OFFSET (gpmc_a3),MODE (2 )},/* RGMII1_TD2 */ - {OFFSET (gpmc_a4),MODE (2 )},/* RGMII1_TD1 */ - {OFFSET (gpmc_a5),MODE (2 )},/* RGMII1_TD0 */ - {OFFSET (gpmc_a6),MODE (2 )},/* RGMII1_TCLK */ - {OFFSET (gpmc_a7),MODE (2 ) |RXACTIVE },/* RGMII1_RCLK */ - {OFFSET (gpmc_a8),MODE (2 ) |RXACTIVE },/* RGMII1_RD3 */ - {OFFSET (gpmc_a9),MODE (2 ) |RXACTIVE },/* RGMII1_RD2 */ - {OFFSET (gpmc_a10),MODE (2 ) |RXACTIVE },/* RGMII1_RD1 */ - {OFFSET (gpmc_a11),MODE (2 ) |RXACTIVE },/* RGMII1_RD0 */ - {OFFSET (mdio_data),MODE (0 ) |RXACTIVE |PULLUP_EN },/* MDIO_DATA */ - {OFFSET (mdio_clk),MODE (0 ) |PULLUP_EN },/* MDIO_CLK */ - {-1 }, -}; - -static struct module_pin_mux nand_pin_mux[] = { - {OFFSET (gpmc_ad0), (MODE (0 ) |PULLUP_EN |RXACTIVE )},/* NAND AD0 */ - {OFFSET (gpmc_ad1), (MODE (0 ) |PULLUP_EN |RXACTIVE )},/* NAND AD1 */ - {OFFSET (gpmc_ad2), (MODE (0 ) |PULLUP_EN |RXACTIVE )},/* NAND AD2 */ - {OFFSET (gpmc_ad3), (MODE (0 ) |PULLUP_EN |RXACTIVE )},/* NAND AD3 */ - {OFFSET (gpmc_ad4), (MODE (0 ) |PULLUP_EN |RXACTIVE )},/* NAND AD4 */ - {OFFSET (gpmc_ad5), (MODE (0 ) |PULLUP_EN |RXACTIVE )},/* NAND AD5 */ - {OFFSET (gpmc_ad6), (MODE (0 ) |PULLUP_EN |RXACTIVE )},/* NAND AD6 */ - {OFFSET (gpmc_ad7), (MODE (0 ) |PULLUP_EN |RXACTIVE )},/* NAND AD7 */ - {OFFSET (gpmc_wait0), (MODE (0 ) |RXACTIVE |PULLUP_EN )},/* NAND WAIT */ - {OFFSET (gpmc_wpn), (MODE (7 ) |PULLUP_EN |RXACTIVE )},/* NAND_WPN */ - {OFFSET (gpmc_csn0), (MODE (0 ) |PULLUDEN )},/* NAND_CS0 */ - {OFFSET (gpmc_advn_ale), (MODE (0 ) |PULLUDEN )},/* NAND_ADV_ALE */ - {OFFSET (gpmc_oen_ren), (MODE (0 ) |PULLUDEN )},/* NAND_OE */ - {OFFSET (gpmc_wen), (MODE (0 ) |PULLUDEN )},/* NAND_WEN */ - {OFFSET (gpmc_be0n_cle), (MODE (0 ) |PULLUDEN )},/* NAND_BE_CLE */ - {-1 }, -}; - -void enable_uart0_pin_mux (void ) -{ -configure_module_pin_mux (uart0_pin_mux); -} - -void enable_i2c1_pin_mux (void ) -{ -configure_module_pin_mux (i2c1_pin_mux); -} - -void enable_board_pin_mux () -{ -configure_module_pin_mux (i2c1_pin_mux); -configure_module_pin_mux (gpio0_7_pin_mux); -configure_module_pin_mux (rgmii2_pin_mux); -configure_module_pin_mux (rmii1_pin_mux); -configure_module_pin_mux (mmc0_pin_mux); - -#if defined(CONFIG_NAND ) -configure_module_pin_mux (nand_pin_mux); -#endif -}board/vscom/baltos/u-boot.lds deleted +0
-128@@ -1,128 +0,0 @@ -/* - * Copyright (c) 2004-2008 Texas Instruments - * - * (C) Copyright 2002 - * Gary Jennejohn, DENX Software Engineering, <[email protected]> - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - */ - -OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") -OUTPUT_ARCH(arm) -ENTRY(_start) -SECTIONS -{ - . = 0x00000000; - - . = ALIGN(4); - .text : - { - *(.__image_copy_start) - *(.vectors) - CPUDIR/start.o (.text*) - board/vscom/baltos/built-in.o (.text*) - *(.text*) - } - - . = ALIGN(4); - .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } - - . = ALIGN(4); - .data : { - *(.data*) - } - - . = ALIGN(4); - - . = .; - - . = ALIGN(4); - .u_boot_list : { - KEEP(*(SORT(.u_boot_list*))); - } - - . = ALIGN(4); - - .image_copy_end : - { - *(.__image_copy_end) - } - - .rel_dyn_start : - { - *(.__rel_dyn_start) - } - - .rel.dyn : { - *(.rel*) - } - - .rel_dyn_end : - { - *(.__rel_dyn_end) - } - - .hash : { *(.hash*) } - - .end : - { - *(.__end) - } - - _image_binary_end = .; - - /* - * Deprecated: this MMU section is used by pxa at present but - * should not be used by new boards/CPUs. - */ - . = ALIGN(4096); - .mmutable : { - *(.mmutable) - } - -/* - * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c - * __bss_base and __bss_limit are for linker only (overlay ordering) - */ - - .bss_start __rel_dyn_start (OVERLAY) : { - KEEP(*(.__bss_start)); - __bss_base = .; - } - - .bss __bss_base (OVERLAY) : { - *(.bss*) - . = ALIGN(4); - __bss_limit = .; - } - - .bss_end __bss_limit (OVERLAY) : { - KEEP(*(.__bss_end)); - } - - .dynsym _image_binary_end : { *(.dynsym) } - .dynbss : { *(.dynbss) } - .dynstr : { *(.dynstr*) } - .dynamic : { *(.dynamic*) } - .gnu.hash : { *(.gnu.hash) } - .plt : { *(.plt*) } - .interp : { *(.interp*) } - .gnu : { *(.gnu*) } - .ARM.exidx : { *(.ARM.exidx*) } -}configs/am335x_baltos_defconfig deleted +0
-65@@ -1,65 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_OMAP2PLUS=y -CONFIG_SPL_GPIO_SUPPORT=y -CONFIG_SPL_LIBCOMMON_SUPPORT=y -CONFIG_SPL_LIBGENERIC_SUPPORT=y -CONFIG_AM33XX=y -CONFIG_TARGET_AM335X_BALTOS=y -CONFIG_SPL_MMC_SUPPORT=y -CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_SPL=y -CONFIG_SPL_FAT_SUPPORT=y -CONFIG_SPL_LIBDISK_SUPPORT=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_FIT_VERBOSE=y -CONFIG_OF_BOARD_SETUP=y -# CONFIG_USE_BOOTCOMMAND is not set -CONFIG_SYS_CONSOLE_INFO_QUIET=y -CONFIG_VERSION_VARIABLE=y -CONFIG_ARCH_MISC_INIT=y -CONFIG_SPL_EXT_SUPPORT=y -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_MTD_SUPPORT=y -CONFIG_SPL_POWER_SUPPORT=y -CONFIG_SPL_WATCHDOG_SUPPORT=y -CONFIG_SPL_YMODEM_SUPPORT=y -CONFIG_CMD_ASKENV=y -CONFIG_CMD_EEPROM=y -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_GPIO=y -CONFIG_CMD_GPT=y -CONFIG_CMD_I2C=y -CONFIG_CMD_MMC=y -CONFIG_CMD_NAND=y -CONFIG_CMD_SPI=y -CONFIG_CMD_USB=y -# CONFIG_CMD_SETEXPR is not set -CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_MTDPARTS=y -CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0" -CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),-(UBI)" -CONFIG_CMD_UBI=y -CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y -CONFIG_BOOTCOUNT_LIMIT=y -CONFIG_SYS_OMAP24_I2C_SPEED=1000 -CONFIG_MMC_OMAP_HS=y -CONFIG_NAND=y -CONFIG_PHY_ADDR_ENABLE=y -CONFIG_DRIVER_TI_CPSW=y -CONFIG_MII=y -CONFIG_SPI=y -CONFIG_OMAP3_SPI=y -CONFIG_USB=y -CONFIG_USB_MUSB_HOST=y -CONFIG_USB_MUSB_GADGET=y -CONFIG_USB_MUSB_DSPS=y -CONFIG_USB_STORAGE=y -CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" -CONFIG_USB_GADGET_VENDOR_NUM=0x0403 -CONFIG_USB_GADGET_PRODUCT_NUM=0xbd00 -CONFIG_USB_GADGET_DOWNLOAD=y -CONFIG_USB_ETHER=y -CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00" -CONFIG_FAT_WRITE=y -CONFIG_OF_LIBFDT=yinclude/configs/baltos.h deleted +0
-277@@ -1,276 +0,0 @@ -/* -* am335x_evm.h -* -* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation version 2. -* -* This program is distributed "as is" WITHOUT ANY WARRANTY of any -* kind, whether express or implied; without even the implied warranty -* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ - -#ifndef __CONFIG_BALTOS_H -#define __CONFIG_BALTOS_H - -#include <linux/sizes.h> -#include <configs/ti_am335x_common.h> - -#define CONFIG_MACH_TYPE MACH_TYPE_AM335XEVM - -/* Clock Defines */ -#define V_OSCK 24000000/* Clock output from T2 */ -#define V_SCLK (V_OSCK) - -/* Custom script for NOR */ -#define CONFIG_SYS_LDSCRIPT "board/vscom/baltos/u-boot.lds" - -/* Always 128 KiB env size */ -#define CONFIG_ENV_SIZE (128 << 10) - -/* FIT support */ -#define CONFIG_SYS_BOOTM_LEN SZ_64M - -/* UBI Support */ - -/* I2C configuration */ - -#ifdef CONFIG_NAND -#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x00080000 -#ifdef CONFIG_SPL_OS_BOOT -#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000/* kernel offset */ -#endif -#define NANDARGS \ - "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \ - "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ - "nandargs=setenv bootargs console=${console} " \ - "${optargs} " \ - "${mtdparts} " \ - "root=${nandroot} " \ - "rootfstype=${nandrootfstype}\0" \ - "nandroot=ubi0:rootfs rw ubi.mtd=5\0" \ - "nandrootfstype=ubifs rootwait=1\0" \ - "nandboot=echo Booting from nand ...; " \ - "run nandargs; " \ - "setenv loadaddr 0x84000000; " \ - "ubi part UBI; " \ - "ubifsmount ubi0:kernel; " \ - "ubifsload $loadaddr kernel-fit.itb;" \ - "ubifsumount; " \ - "bootm ${loadaddr}#conf${board_name}; " \ - "if test $? -ne 0; then echo Using default FIT config; " \ - "bootm ${loadaddr}; fi;\0" -#else -#define NANDARGS "" -#endif - -#ifndef CONFIG_SPL_BUILD -#define CONFIG_EXTRA_ENV_SETTINGS \ - DEFAULT_LINUX_BOOT_ENV \ - "boot_fdt=try\0" \ - "bootpart=0:2\0" \ - "bootdir=/boot\0" \ - "bootfile=zImage\0" \ - "fdtfile=undefined\0" \ - "console=ttyO0,115200n8\0" \ - "partitions=" \ - "uuid_disk=${uuid_gpt_disk};" \ - "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \ - "optargs=\0" \ - "mmcdev=0\0" \ - "mmcroot=/dev/mmcblk0p2 ro\0" \ - "usbroot=/dev/sda2 ro\0" \ - "mmcrootfstype=ext4 rootwait\0" \ - "usbrootfstype=ext4 rootwait\0" \ - "rootpath=/export/rootfs\0" \ - "nfsopts=nolock\0" \ - "static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}" \ - "::off\0" \ - "ramroot=/dev/ram0 rw\0" \ - "ramrootfstype=ext2\0" \ - "mmcargs=setenv bootargs console=${console} " \ - "${optargs} " \ - "${mtdparts} " \ - "root=${mmcroot} " \ - "rootfstype=${mmcrootfstype}\0" \ - "usbargs=setenv bootargs console=${console} " \ - "${optargs} " \ - "${mtdparts} " \ - "root=${usbroot} " \ - "rootfstype=${usbrootfstype}\0" \ - "spiroot=/dev/mtdblock4 rw\0" \ - "spirootfstype=jffs2\0" \ - "spisrcaddr=0xe0000\0" \ - "spiimgsize=0x362000\0" \ - "spibusno=0\0" \ - "spiargs=setenv bootargs console=${console} " \ - "${optargs} " \ - "root=${spiroot} " \ - "rootfstype=${spirootfstype}\0" \ - "netargs=setenv bootargs console=${console} " \ - "${optargs} " \ - "root=/dev/nfs " \ - "nfsroot=${serverip}:${rootpath},${nfsopts} rw " \ - "ip=dhcp\0" \ - "bootenv=uEnv.txt\0" \ - "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ - "usbloadbootenv=load usb 0:1 ${loadaddr} ${bootenv}\0" \ - "importbootenv=echo Importing environment from mmc ...; " \ - "env import -t $loadaddr $filesize\0" \ - "usbimportbootenv=echo Importing environment from USB ...; " \ - "env import -t $loadaddr $filesize\0" \ - "ramargs=setenv bootargs console=${console} " \ - "${optargs} " \ - "root=${ramroot} " \ - "rootfstype=${ramrootfstype}\0" \ - "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \ - "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \ - "usbloadimage=load usb 0:1 ${loadaddr} kernel-fit.itb\0" \ - "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \ - "usbloados=run usbargs; " \ - "bootm ${loadaddr}#conf${board_name}; " \ - "if test $? -ne 0; then " \ - "echo Using default FIT configuration; " \ - "bootm ${loadaddr}; " \ - "fi;\0" \ - "mmcloados=run mmcargs; " \ - "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ - "if run loadfdt; then " \ - "bootz ${loadaddr} - ${fdtaddr}; " \ - "else " \ - "if test ${boot_fdt} = try; then " \ - "bootz; " \ - "else " \ - "echo WARN: Cannot load the DT; " \ - "fi; " \ - "fi; " \ - "else " \ - "bootz; " \ - "fi;\0" \ - "usbboot=usb reset; " \ - "if usb storage; then " \ - "echo USB drive found;" \ - "if run usbloadbootenv; then " \ - "echo Loaded environment from ${bootenv};" \ - "run usbimportbootenv;" \ - "fi;" \ - "if test -n $uenvcmd; then " \ - "echo Running uenvcmd ...;" \ - "run uenvcmd;" \ - "fi;" \ - "if run usbloadimage; then " \ - "run usbloados;" \ - "fi;" \ - "fi;\0" \ - "mmcboot=mmc dev ${mmcdev}; " \ - "if mmc rescan; then " \ - "echo SD/MMC found on device ${mmcdev};" \ - "if run loadbootenv; then " \ - "echo Loaded environment from ${bootenv};" \ - "run importbootenv;" \ - "fi;" \ - "if test -n $uenvcmd; then " \ - "echo Running uenvcmd ...;" \ - "run uenvcmd;" \ - "fi;" \ - "if run loadimage; then " \ - "run mmcloados;" \ - "fi;" \ - "fi;\0" \ - "spiboot=echo Booting from spi ...; " \ - "run spiargs; " \ - "sf probe ${spibusno}:0; " \ - "sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \ - "bootz ${loadaddr}\0" \ - "netboot=echo Booting from network ...; " \ - "setenv autoload no; " \ - "dhcp; " \ - "tftp ${loadaddr} ${bootfile}; " \ - "tftp ${fdtaddr} ${fdtfile}; " \ - "run netargs; " \ - "bootz ${loadaddr} - ${fdtaddr}\0" \ - "ramboot=echo Booting from ramdisk ...; " \ - "run ramargs; " \ - "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \ - "findfdt=setenv fdtfile am335x-baltos.dtb\0" \ - NANDARGS -/*DFUARGS*/ -#endif - -#define CONFIG_BOOTCOMMAND \ - "run findfdt; " \ - "run usbboot;" \ - "run mmcboot;" \ - "setenv mmcdev 1; " \ - "setenv bootpart 1:2; " \ - "run mmcboot;" \ - "run nandboot;" - -/* NS16550 Configuration */ -#define CONFIG_SYS_NS16550_COM1 0x44e09000/* Base EVM has UART0 */ -#define CONFIG_SYS_NS16550_COM2 0x48022000/* UART1 */ -#define CONFIG_SYS_NS16550_COM3 0x48024000/* UART2 */ -#define CONFIG_SYS_NS16550_COM4 0x481a6000/* UART3 */ -#define CONFIG_SYS_NS16550_COM5 0x481a8000/* UART4 */ -#define CONFIG_SYS_NS16550_COM6 0x481aa000/* UART5 */ - -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 - -/* PMIC support */ -#define CONFIG_POWER_TPS65910 - -/* SPL */ -#ifndef CONFIG_NOR_BOOT - -#ifdef CONFIG_NAND -#define CONFIG_SYS_NAND_5_ADDR_CYCLE -#define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \ - CONFIG_SYS_NAND_PAGE_SIZE) -#define CONFIG_SYS_NAND_PAGE_SIZE 2048 -#define CONFIG_SYS_NAND_OOBSIZE 64 -#define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024) -#define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS -#define CONFIG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \ - 10, 11, 12, 13, 14, 15, 16, 17, \ - 18, 19, 20, 21, 22, 23, 24, 25, \ - 26, 27, 28, 29, 30, 31, 32, 33, \ - 34, 35, 36, 37, 38, 39, 40, 41, \ - 42, 43, 44, 45, 46, 47, 48, 49, \ - 50, 51, 52, 53, 54, 55, 56, 57, } - -#define CONFIG_SYS_NAND_ECCSIZE 512 -#define CONFIG_SYS_NAND_ECCBYTES 14 -#define CONFIG_SYS_NAND_ONFI_DETECTION -#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW -#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE -#endif -#endif - -/* -* USB configuration. We enable MUSB support, both for host and for -* gadget. We set USB0 as peripheral and USB1 as host, based on the -* board schematic and physical port wired to each. Then for host we -* add mass storage support and for gadget we add both RNDIS ethernet -* and DFU. -*/ -#define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT -#define CONFIG_AM335X_USB0 -#define CONFIG_AM335X_USB0_MODE MUSB_HOST -#define CONFIG_AM335X_USB1 -#define CONFIG_AM335X_USB1_MODE MUSB_OTG - -/* Network. */ -#define CONFIG_PHY_SMSC -#define CONFIG_PHY_ATHEROS - -/* NAND support */ -#ifdef CONFIG_NAND -#define GPMC_NAND_ECC_LP_x8_LAYOUT 1 -#endif - -#endif /* ! __CONFIG_BALTOS_H */ --2.19.1.1215.g8438c0b245-goog
PATCH 56/93 arm: Remove am335x_baltos board
Quoted 10 lines · Yegor Yefremov
Hi Simon,
Quoted 3 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.I've sent a fix:
https://lists.denx.de/pipermail/u-boot/2018-November/348319.html
Thanks!
PATCH 57/93 arm: Remove kp_imx6q_tpc board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/k+p/kp_imx6q_tpc/Kconfig | 12 - board/k+p/kp_imx6q_tpc/MAINTAINERS | 6 - board/k+p/kp_imx6q_tpc/Makefile | 9 - board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c | 301 ------------------- board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c | 337 ---------------------- configs/kp_imx6q_tpc_defconfig | 44 --- include/configs/kp_imx6q_tpc.h | 134 --------- 8 files changed, 844 deletions(-) delete mode 100644 board/k+p/kp_imx6q_tpc/Kconfig delete mode 100644 board/k+p/kp_imx6q_tpc/MAINTAINERS delete mode 100644 board/k+p/kp_imx6q_tpc/Makefile delete mode 100644 board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c delete mode 100644 board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c delete mode 100644 configs/kp_imx6q_tpc_defconfig delete mode 100644 include/configs/kp_imx6q_tpc.h
arch/arm/mach-imx/mx6/Kconfig +0 -1
@@ -550,7 +550,6 @@ source "board/solidrun/mx6cuboxi/Kconfig" source "board/technexion/pico-imx6ul/Kconfig" source "board/tqc/tqma6/Kconfig" source "board/toradex/colibri-imx6ull/Kconfig" -source "board/k+p/kp_imx6q_tpc/Kconfig" source "board/udoo/Kconfig" source "board/warp/Kconfig"
board/k+p/kp_imx6q_tpc/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_KP_IMX6Q_TPC - -config SYS_BOARD - default "kp_imx6q_tpc" - -config SYS_VENDOR - default "k+p" - -config SYS_CONFIG_NAME - default "kp_imx6q_tpc" - -endif
board/k+p/kp_imx6q_tpc/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -KP_IMX6Q_TPC BOARD -M: Lukasz Majewski <[email protected]> -S: Maintained -F: board/k+p/kp_imx6q_tpc/ -F: include/configs/kp_imx6q_tpc.h -F: configs/kp_imx6q_tpc_defconfig
board/k+p/kp_imx6q_tpc/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2018 Lukasz Majewski <[email protected]> - -ifdef CONFIG_SPL_BUILD -obj-y := kp_imx6q_tpc_spl.o -else -obj-y := kp_imx6q_tpc.o -endif
board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c deleted +0 -301
301 lines not on this page · raw message
board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c deleted +0 -337
337 lines not on this page · raw message
configs/kp_imx6q_tpc_defconfig deleted +0 -44
44 lines not on this page · raw message
include/configs/kp_imx6q_tpc.h deleted +0 -134
134 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 58/93 arm: Remove lsxhl board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-kirkwood/Kconfig | 1 - board/buffalo/lsxl/Kconfig | 12 -- board/buffalo/lsxl/MAINTAINERS | 7 - board/buffalo/lsxl/Makefile | 6 - board/buffalo/lsxl/README | 139 ------------- board/buffalo/lsxl/kwbimage-lschl.cfg | 211 ------------------- board/buffalo/lsxl/kwbimage-lsxhl.cfg | 211 ------------------- board/buffalo/lsxl/lsxl.c | 279 -------------------------- board/buffalo/lsxl/lsxl.h | 58 ------ configs/lschlv2_defconfig | 42 ---- configs/lsxhl_defconfig | 42 ---- include/configs/lsxl.h | 149 -------------- 12 files changed, 1157 deletions(-) delete mode 100644 board/buffalo/lsxl/Kconfig delete mode 100644 board/buffalo/lsxl/MAINTAINERS delete mode 100644 board/buffalo/lsxl/Makefile delete mode 100644 board/buffalo/lsxl/README delete mode 100644 board/buffalo/lsxl/kwbimage-lschl.cfg delete mode 100644 board/buffalo/lsxl/kwbimage-lsxhl.cfg delete mode 100644 board/buffalo/lsxl/lsxl.c delete mode 100644 board/buffalo/lsxl/lsxl.h delete mode 100644 configs/lschlv2_defconfig delete mode 100644 configs/lsxhl_defconfig delete mode 100644 include/configs/lsxl.h
arch/arm/mach-kirkwood/Kconfig +0 -1
@@ -71,7 +71,6 @@ config SYS_SOC default "kirkwood" source "board/Marvell/openrd/Kconfig" -source "board/buffalo/lsxl/Kconfig" source "board/cloudengines/pogo_e02/Kconfig" source "board/d-link/dns325/Kconfig" source "board/iomega/iconnect/Kconfig"
board/buffalo/lsxl/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_LSXL - -config SYS_BOARD - default "lsxl" - -config SYS_VENDOR - default "buffalo" - -config SYS_CONFIG_NAME - default "lsxl" - -endif
board/buffalo/lsxl/MAINTAINERS deleted +0 -7
@@ -1,7 +0,0 @@ -LSXL BOARD -M: Michael Walle <[email protected]> -S: Maintained -F: board/buffalo/lsxl/ -F: include/configs/lsxl.h -F: configs/lschlv2_defconfig -F: configs/lsxhl_defconfig
board/buffalo/lsxl/Makefile deleted +0 -6
@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (c) 2012 Michael Walle -# Michael Walle <[email protected]> - -obj-y := lsxl.o
board/buffalo/lsxl/README deleted +0 -139
139 lines not on this page · raw message
board/buffalo/lsxl/kwbimage-lschl.cfg deleted +0 -211
211 lines not on this page · raw message
board/buffalo/lsxl/kwbimage-lsxhl.cfg deleted +0 -211
211 lines not on this page · raw message
board/buffalo/lsxl/lsxl.c deleted +0 -279
279 lines not on this page · raw message
board/buffalo/lsxl/lsxl.h deleted +0 -58
58 lines not on this page · raw message
configs/lschlv2_defconfig deleted +0 -42
42 lines not on this page · raw message
configs/lsxhl_defconfig deleted +0 -42
42 lines not on this page · raw message
include/configs/lsxl.h deleted +0 -149
149 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 59/93 arm: Remove udoo board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/udoo/Kconfig | 9 -- board/udoo/MAINTAINERS | 6 - board/udoo/Makefile | 5 - board/udoo/README | 21 --- board/udoo/udoo.c | 271 ---------------------------------- board/udoo/udoo_spl.c | 254 ------------------------------- configs/udoo_defconfig | 36 ----- include/configs/udoo.h | 95 ------------ 9 files changed, 698 deletions(-) delete mode 100644 board/udoo/Kconfig delete mode 100644 board/udoo/MAINTAINERS delete mode 100644 board/udoo/Makefile delete mode 100644 board/udoo/README delete mode 100644 board/udoo/udoo.c delete mode 100644 board/udoo/udoo_spl.c delete mode 100644 configs/udoo_defconfig delete mode 100644 include/configs/udoo.h
arch/arm/mach-imx/mx6/Kconfig +0 -1
@@ -550,7 +550,6 @@ source "board/solidrun/mx6cuboxi/Kconfig" source "board/technexion/pico-imx6ul/Kconfig" source "board/tqc/tqma6/Kconfig" source "board/toradex/colibri-imx6ull/Kconfig" -source "board/udoo/Kconfig" source "board/warp/Kconfig" endif
board/udoo/Kconfig deleted +0 -9
@@ -1,9 +0,0 @@ -if TARGET_UDOO - -config SYS_BOARD - default "udoo" - -config SYS_CONFIG_NAME - default "udoo" - -endif
board/udoo/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -UDOO BOARD -M: Fabio Estevam <[email protected]> -S: Maintained -F: board/udoo/ -F: include/configs/udoo.h -F: configs/udoo_defconfig
board/udoo/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2013 Freescale Semiconductor, Inc. - -obj-y := udoo.o udoo_spl.o
board/udoo/README deleted +0 -21
@@ -1,21 +0,0 @@ -How to use U-Boot on MX6Q/DL Udoo boards ----------------------------------------- - -- Build U-Boot for MX6Q/DL Udoo boards: - -$ make mrproper -$ make udoo_defconfig -$ make - -This will generate the SPL image called SPL and the u-boot.img. - -- Flash the SPL image into the SD card: - -sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync - -- Flash the u-boot.img image into the SD card: - -sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync - -- Insert the SD card in the board, power it up and U-Boot messages should -come up.
board/udoo/udoo.c deleted +0 -271
271 lines not on this page · raw message
board/udoo/udoo_spl.c deleted +0 -254
254 lines not on this page · raw message
configs/udoo_defconfig deleted +0 -36
@@ -1,36 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 -CONFIG_SPL_GPIO_SUPPORT=y -CONFIG_SPL_LIBCOMMON_SUPPORT=y -CONFIG_SPL_LIBGENERIC_SUPPORT=y -CONFIG_TARGET_UDOO=y -CONFIG_SPL_MMC_SUPPORT=y -CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_SPL=y -CONFIG_SPL_LIBDISK_SUPPORT=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=1 -CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg" -CONFIG_BOOTDELAY=3 -CONFIG_BOOTCOMMAND="run findfdt; run distro_bootcmd" -CONFIG_BOARD_EARLY_INIT_F=y -CONFIG_SPL_EXT_SUPPORT=y -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_WATCHDOG_SUPPORT=y -CONFIG_CMD_GPIO=y -CONFIG_CMD_MMC=y -CONFIG_CMD_SATA=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_EXT4_WRITE=y -CONFIG_ENV_IS_IN_MMC=y -CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y -CONFIG_DM=y -CONFIG_DWC_AHSATA=y -CONFIG_FSL_ESDHC=y -CONFIG_PHYLIB=y -CONFIG_PHY_MICREL=y -CONFIG_PHY_MICREL_KSZ90X1=y -CONFIG_MII=y -CONFIG_DM_THERMAL=y -CONFIG_OF_LIBFDT=y
include/configs/udoo.h deleted +0 -95
95 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 60/93 arm: Remove marsboard board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/embest/mx6boards/Kconfig | 12 - board/embest/mx6boards/MAINTAINERS | 7 - board/embest/mx6boards/Makefile | 7 - board/embest/mx6boards/mx6boards.c | 610 ----------------------------- configs/marsboard_defconfig | 37 -- configs/riotboard_defconfig | 37 -- include/configs/embestmx6boards.h | 150 ------- 8 files changed, 861 deletions(-) delete mode 100644 board/embest/mx6boards/Kconfig delete mode 100644 board/embest/mx6boards/MAINTAINERS delete mode 100644 board/embest/mx6boards/Makefile delete mode 100644 board/embest/mx6boards/mx6boards.c delete mode 100644 configs/marsboard_defconfig delete mode 100644 configs/riotboard_defconfig delete mode 100644 include/configs/embestmx6boards.h
arch/arm/mach-imx/mx6/Kconfig +0 -1
@@ -531,7 +531,6 @@ source "board/boundary/nitrogen6x/Kconfig" source "board/compulab/cm_fx6/Kconfig" source "board/congatec/cgtqmx6eval/Kconfig" source "board/dhelectronics/dh_imx6/Kconfig" -source "board/embest/mx6boards/Kconfig" source "board/engicam/imx6q/Kconfig" source "board/engicam/imx6ul/Kconfig" source "board/freescale/mx6qarm2/Kconfig"
board/embest/mx6boards/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_EMBESTMX6BOARDS - -config SYS_BOARD - default "mx6boards" - -config SYS_VENDOR - default "embest" - -config SYS_CONFIG_NAME - default "embestmx6boards" - -endif
board/embest/mx6boards/MAINTAINERS deleted +0 -7
@@ -1,7 +0,0 @@ -MX6BOARDS BOARD -M: Eric Bénard <[email protected]> -S: Maintained -F: board/embest/mx6boards/ -F: include/configs/embestmx6boards.h -F: configs/marsboard_defconfig -F: configs/riotboard_defconfig
board/embest/mx6boards/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]> -# -# (C) Copyright 2011 Freescale Semiconductor, Inc. - -obj-y := mx6boards.o
board/embest/mx6boards/mx6boards.c deleted +0 -610
610 lines not on this page · raw message
configs/marsboard_defconfig deleted +0 -37
@@ -1,37 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 -CONFIG_TARGET_EMBESTMX6BOARDS=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=1 -CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6q.cfg,MX6Q,DDR_MB=1024" -CONFIG_BOOTCOMMAND="run finduuid; run distro_bootcmd" -# CONFIG_CONSOLE_MUX is not set -CONFIG_SYS_CONSOLE_IS_IN_ENV=y -CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y -CONFIG_BOARD_EARLY_INIT_F=y -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_GPIO=y -CONFIG_CMD_I2C=y -CONFIG_CMD_MMC=y -CONFIG_CMD_SF=y -CONFIG_CMD_USB=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_EXT4_WRITE=y -CONFIG_ENV_IS_IN_SPI_FLASH=y -CONFIG_DM=y -CONFIG_FSL_ESDHC=y -CONFIG_SPI_FLASH=y -CONFIG_SPI_FLASH_SST=y -CONFIG_PHYLIB=y -CONFIG_MII=y -CONFIG_SPI=y -CONFIG_MXC_SPI=y -CONFIG_DM_THERMAL=y -CONFIG_USB=y -CONFIG_USB_STORAGE=y -CONFIG_USB_HOST_ETHER=y -CONFIG_USB_ETHER_ASIX=y -CONFIG_VIDEO=y -# CONFIG_VIDEO_SW_CURSOR is not set -CONFIG_OF_LIBFDT=y
configs/riotboard_defconfig deleted +0 -37
@@ -1,37 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 -CONFIG_TARGET_EMBESTMX6BOARDS=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=1 -CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6s1g.cfg,MX6S,DDR_MB=1024" -CONFIG_BOOTCOMMAND="run finduuid; run distro_bootcmd" -# CONFIG_CONSOLE_MUX is not set -CONFIG_SYS_CONSOLE_IS_IN_ENV=y -CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y -CONFIG_BOARD_EARLY_INIT_F=y -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_GPIO=y -CONFIG_CMD_I2C=y -CONFIG_CMD_MMC=y -CONFIG_CMD_SF=y -CONFIG_CMD_USB=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_EXT4_WRITE=y -CONFIG_ENV_IS_IN_MMC=y -CONFIG_DM=y -CONFIG_FSL_ESDHC=y -CONFIG_SPI_FLASH=y -CONFIG_SPI_FLASH_SST=y -CONFIG_PHYLIB=y -CONFIG_MII=y -CONFIG_SPI=y -CONFIG_MXC_SPI=y -CONFIG_DM_THERMAL=y -CONFIG_USB=y -CONFIG_USB_STORAGE=y -CONFIG_USB_HOST_ETHER=y -CONFIG_USB_ETHER_ASIX=y -CONFIG_VIDEO=y -# CONFIG_VIDEO_SW_CURSOR is not set -CONFIG_OF_LIBFDT=y
include/configs/embestmx6boards.h deleted +0 -150
150 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 61/93 arm: Remove mx6sabresd board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/freescale/mx6sabresd/Kconfig | 12 - board/freescale/mx6sabresd/MAINTAINERS | 6 - board/freescale/mx6sabresd/Makefile | 7 - board/freescale/mx6sabresd/README | 114 --- board/freescale/mx6sabresd/mx6sabresd.c | 1064 ----------------------- configs/mx6sabresd_defconfig | 75 -- include/configs/mx6sabresd.h | 67 -- 8 files changed, 1346 deletions(-) delete mode 100644 board/freescale/mx6sabresd/Kconfig delete mode 100644 board/freescale/mx6sabresd/MAINTAINERS delete mode 100644 board/freescale/mx6sabresd/Makefile delete mode 100644 board/freescale/mx6sabresd/README delete mode 100644 board/freescale/mx6sabresd/mx6sabresd.c delete mode 100644 configs/mx6sabresd_defconfig delete mode 100644 include/configs/mx6sabresd.h
arch/arm/mach-imx/mx6/Kconfig +0 -1
@@ -535,7 +535,6 @@ source "board/engicam/imx6q/Kconfig" source "board/engicam/imx6ul/Kconfig" source "board/freescale/mx6qarm2/Kconfig" source "board/freescale/mx6memcal/Kconfig" -source "board/freescale/mx6sabresd/Kconfig" source "board/freescale/mx6slevk/Kconfig" source "board/freescale/mx6sllevk/Kconfig" source "board/freescale/mx6sxsabresd/Kconfig"
board/freescale/mx6sabresd/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_MX6SABRESD - -config SYS_BOARD - default "mx6sabresd" - -config SYS_VENDOR - default "freescale" - -config SYS_CONFIG_NAME - default "mx6sabresd" - -endif
board/freescale/mx6sabresd/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -MX6SABRESD BOARD -M: Fabio Estevam <[email protected]> -S: Maintained -F: board/freescale/mx6sabresd/ -F: include/configs/mx6sabresd.h -F: configs/mx6sabresd_defconfig
board/freescale/mx6sabresd/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]> -# -# (C) Copyright 2011 Freescale Semiconductor, Inc. - -obj-y := mx6sabresd.o
board/freescale/mx6sabresd/README deleted +0 -114
114 lines not on this page · raw message
board/freescale/mx6sabresd/mx6sabresd.c deleted +0 -1064
1,064 lines not on this page · raw message
configs/mx6sabresd_defconfig deleted +0 -75
75 lines not on this page · raw message
include/configs/mx6sabresd.h deleted +0 -67
67 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 61/93 arm: Remove mx6sabresd board
Hi Simon,
Please not remove this board, we will work to support DM_BLK.
Thanks,
Peng.
Quoted 1,557 lines
-----Original Message-----
From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Simon Glass
Sent: 2018年11月19日 23:54
To: U-Boot Mailing List <[email protected]>
Cc: Peter Howard <[email protected]>; Marcus Cooper <[email protected]>; Icenowy Zheng <[email protected]>; Stefan Roese <[email protected]>; Chander Kashyap <[email protected]>; Tom Rini <[email protected]>; Akshay Saraswat <[email protected]>; Sumit Garg <[email protected]>; egnite GmbH <[email protected]>; Rask Ingemann Lambertsen <[email protected]>; Ian Campbell <[email protected]>; Feng Li <[email protected]>; Alison Wang <[email protected]>; Vitaly Andrianov <[email protected]>; Jelle van der Waa <[email protected]>; Hans de Goede <[email protected]>; Roger Meier <[email protected]>; Zoltan Herpai <[email protected]>; Gregory CLEMENT <[email protected]>; Stefan Mavrodiev <[email protected]>; Aleksei Mamlin <[email protected]>; Priit Laes <[email protected]>; Stelian Pop <[email protected]>; Pavel Machek <[email protected]>; Quentin Schulz <[email protected]>; Fabio Estevam <[email protected]>; Jelle de Jong <[email protected]>
Subject: [U-Boot] [PATCH 61/93] arm: Remove mx6sabresd boardThis board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/freescale/mx6sabresd/Kconfig | 12 - board/freescale/mx6sabresd/MAINTAINERS | 6 - board/freescale/mx6sabresd/Makefile | 7 - board/freescale/mx6sabresd/README | 114 --- board/freescale/mx6sabresd/mx6sabresd.c | 1064 ----------------------- configs/mx6sabresd_defconfig | 75 -- include/configs/mx6sabresd.h | 67 -- 8 files changed, 1346 deletions(-) delete mode 100644 board/freescale/mx6sabresd/Kconfig delete mode 100644 board/freescale/mx6sabresd/MAINTAINERS delete mode 100644 board/freescale/mx6sabresd/Makefile delete mode 100644 board/freescale/mx6sabresd/README delete mode 100644 board/freescale/mx6sabresd/mx6sabresd.c delete mode 100644 configs/mx6sabresd_defconfig delete mode 100644
include/configs/mx6sabresd.h(quoted diff) +0
-0b/arch/arm/mach-imx/mx6/Kconfig index
0859619af3b..e96deadf72d100644arch/arm/mach-imx/mx6/Kconfig +0
-1@@ -535,7 +535,6 @@ source "board/engicam/imx6q/Kconfig" source "board/engicam/imx6ul/Kconfig" source "board/freescale/mx6qarm2/Kconfig" source "board/freescale/mx6memcal/Kconfig" -source "board/freescale/mx6sabresd/Kconfig" source "board/freescale/mx6slevk/Kconfig" source "board/freescale/mx6sllevk/Kconfig" source "board/freescale/mx6sxsabresd/Kconfig"board/freescale/mx6sabresd/Kconfig deleted +0
-12@@ -1,12 +0,0 @@ -if TARGET_MX6SABRESD - -config SYS_BOARD - default "mx6sabresd" - -config SYS_VENDOR - default "freescale" - -config SYS_CONFIG_NAME - default "mx6sabresd" - -endifboard/freescale/mx6sabresd/MAINTAINERS deleted +0
-6@@ -1,6 +0,0 @@ -MX6SABRESD BOARD -M: Fabio Estevam <[email protected]> -S: Maintained -F: board/freescale/mx6sabresd/ -F: include/configs/mx6sabresd.h -F: configs/mx6sabresd_defconfigboard/freescale/mx6sabresd/Makefile deleted +0
-3@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]> -# -# (C)Copyright 2011 Freescale Semiconductor, Inc.
board/freescale/mx6sabresd/Makefile deleted +0
-2- -obj-y := mx6sabresd.oboard/freescale/mx6sabresd/README deleted +0
-56@@ -1,114 +0,0 @@ -How to use and build U-Boot on mx6sabresd ------------------------------------------ - -The following methods can be used for booting mx6sabresd boards: - -1. Booting from SD card - -2. Booting from eMMC - -3. Booting via Falcon mode (SPL launches the kernel directly) - - -1. Booting from SD card via SPL -------------------------------- - -mx6sabresd_defconfig target supports mx6q/mx6dl/mx6qp sabresd variants. - -In order to build it: - -$ make mx6sabresd_defconfig - -$ make - -This will generate the SPL and u-boot.img binaries. - -- Flash the SPL binary into the SD card: - -$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 && sync - -- Flash the u-boot.img binary into the SD card: - -$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 && sync - - -2. Booting from eMMC --------------------- - -$ make mx6sabresd_defconfig - -$ make - -This will generate the SPL and u-boot.img binaries. - -- Boot first from SD card as shown in the previous section - -In U-boot change the eMMC partition config: - -=> mmc partconf 2 1 0 0 - -Mount the eMMC in the host PC: - -=> ums 0 mmc 2 - -- Flash SPL and u-boot.img binaries into the eMMC: - -$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 && sync -$ sudo dd if=u-boot.imgof=/dev/sdX bs=1K seek=69 && sync
board/freescale/mx6sabresd/README deleted +0
-19- -Set SW6 to eMMC 8-bit boot: 11010110 - - -3. Booting via Falcon mode --------------------------- - -$ make mx6sabresd_defconfig -$ make - -This will generate the SPL image called SPL and the u-boot.img. - -- Flash the SPL image into the SD card: - -$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 oflag=sync status=none && sync - -- Flash the u-boot.img image into the SD card: - -$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 oflag=sync status=none&& sync
board/freescale/mx6sabresd/README deleted +0
-7- -Create a partition for root file system and extract it there: - -$ sudo tar xvf rootfs.tar.gz -C /media/root - -The SD card must have enough space for raw "args" and "kernel". -To configure Falcon mode for the first time, on U-Boot do the followingcommands:
board/freescale/mx6sabresd/README deleted +0
-20- -- Setup the IP server: - -# setenv serverip <server_ip_address> - -- Download dtb file: - -# dhcp ${fdt_addr} imx6q-sabresd.dtb - -- Download kernel image: - -# dhcp ${loadaddr} uImage - -- Write kernel at 2MB offset: - -# mmc write ${loadaddr} 0x1000 0x4000 - -- Setup kernel bootargs: - -# setenv bootargs "console=ttymxc0,115200 root=/dev/mmcblk1p1rootfstype=ext4 rootwait quiet rw"
board/freescale/mx6sabresd/README deleted +0
-11- -- Prepare args: - -# spl export fdt ${loadaddr} - ${fdt_addr} - -- Write args 1MB data (0x800 sectors) to 1MB offset (0x800 sectors) - -# mmc write 18000000 0x800 0x800 - -- Press KEY_VOL_UP key, power up the board and then SPL binary will -launch the kernel directly.board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-70@@ -1,1064 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2012 Freescale Semiconductor, Inc. -* -* Author: Fabio Estevam <[email protected]> -*/ - -#include <asm/arch/clock.h> -#include <asm/arch/imx-regs.h> -#include <asm/arch/iomux.h> -#include <asm/arch/mx6-pins.h> -#include <asm/mach-imx/spi.h> -#include <linux/errno.h> -#include <asm/gpio.h> -#include <asm/mach-imx/mxc_i2c.h> -#include <asm/mach-imx/iomux-v3.h> -#include <asm/mach-imx/boot_mode.h> -#include <asm/mach-imx/video.h> -#include <mmc.h> -#include <fsl_esdhc.h> -#include <miiphy.h> -#include <netdev.h> -#include <asm/arch/mxc_hdmi.h> -#include <asm/arch/crm_regs.h> -#include <asm/io.h> -#include <asm/arch/sys_proto.h> -#include <i2c.h> -#include <input.h> -#include <power/pmic.h> -#include <power/pfuze100_pmic.h> -#include "../common/pfuze.h" -#include <usb.h> -#include <usb/ehci-ci.h> - -DECLARE_GLOBAL_DATA_PTR ; - -#define UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ - PAD_CTL_SRE_FAST | PAD_CTL_HYS) - -#define USDHC_PAD_CTRL (PAD_CTL_PUS_47K_UP | \ - PAD_CTL_SPEED_LOW | PAD_CTL_DSE_80ohm | \ - PAD_CTL_SRE_FAST | PAD_CTL_HYS) - -#define ENET_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_HYS) - -#define SPI_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_SPEED_MED | \ - PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST) - -#define I2C_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_HYS | \ - PAD_CTL_ODE | PAD_CTL_SRE_FAST) - -#define I2C_PMIC 1 - -#define I2C_PAD MUX_PAD_CTRL(I2C_PAD_CTRL) - -#define DISP0_PWR_EN IMX_GPIO_NR(1, 21) - -#define KEY_VOL_UP IMX_GPIO_NR(1, 4) - -int dram_init (void ) -{ - gd->ram_size =imx_ddr_size (); -return 0 ; -} - -static iomux_v3_cfg_t const uart1_pads[] = { - IOMUX_PADS(PAD_CSI0_DAT10__UART1_TX_DATA |
MUX_PAD_CTRL(UART_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_CSI0_DAT11__UART1_RX_DATA |
MUX_PAD_CTRL(UART_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-4-}; - -static iomux_v3_cfg_t const enet_pads[] = { - IOMUX_PADS(PAD_ENET_MDIO__ENET_MDIO |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_ENET_MDC__ENET_MDC |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_TXC__RGMII_TXC |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_TD0__RGMII_TD0 |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_TD1__RGMII_TD1 |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_TD2__RGMII_TD2 |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_TD3__RGMII_TD3 |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_TX_CTL__RGMII_TX_CTL |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_ENET_REF_CLK__ENET_TX_CLK |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_RXC__RGMII_RXC |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_RD0__RGMII_RD0 |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_RD1__RGMII_RD1 |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_RD2__RGMII_RD2 |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_RD3__RGMII_RD3 |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_RGMII_RX_CTL__RGMII_RX_CTL |
MUX_PAD_CTRL(ENET_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-2-/* AR8031 PHY Reset */ - IOMUX_PADS(PAD_ENET_CRS_DV__GPIO1_IO25 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-15-}; - -static void setup_iomux_enet (void ) -{ -SETUP_IOMUX_PADS (enet_pads); - -/* Reset AR8031 PHY */ -gpio_direction_output (IMX_GPIO_NR (1 ,25 ) ,0 ); -mdelay (10 ); -gpio_set_value (IMX_GPIO_NR (1 ,25 ),1 ); -udelay (100 ); -} - -static iomux_v3_cfg_t const usdhc2_pads[] = { - IOMUX_PADS(PAD_SD2_CLK__SD2_CLK |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD2_CMD__SD2_CMD |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD2_DAT0__SD2_DATA0 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD2_DAT1__SD2_DATA1 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD2_DAT2__SD2_DATA2 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD2_DAT3__SD2_DATA3 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_NANDF_D4__SD2_DATA4 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_NANDF_D5__SD2_DATA5 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_NANDF_D6__SD2_DATA6 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_NANDF_D7__SD2_DATA7 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_NANDF_D2__GPIO2_IO02 |
MUX_PAD_CTRL(NO_PAD_CTRL)), /* CD */board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-4-}; - -static iomux_v3_cfg_t const usdhc3_pads[] = { - IOMUX_PADS(PAD_SD3_CLK__SD3_CLK |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD3_CMD__SD3_CMD |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD3_DAT0__SD3_DATA0 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD3_DAT1__SD3_DATA1 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD3_DAT2__SD3_DATA2 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD3_DAT3__SD3_DATA3 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD3_DAT4__SD3_DATA4 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD3_DAT5__SD3_DATA5 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD3_DAT6__SD3_DATA6 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD3_DAT7__SD3_DATA7 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_NANDF_D0__GPIO2_IO00 |
MUX_PAD_CTRL(NO_PAD_CTRL)), /* CD */board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-4-}; - -static iomux_v3_cfg_t const usdhc4_pads[] = { - IOMUX_PADS(PAD_SD4_CLK__SD4_CLK |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD4_CMD__SD4_CMD |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD4_DAT0__SD4_DATA0 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD4_DAT1__SD4_DATA1 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD4_DAT2__SD4_DATA2 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD4_DAT3__SD4_DATA3 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD4_DAT4__SD4_DATA4 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD4_DAT5__SD4_DATA5 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD4_DAT6__SD4_DATA6 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_SD4_DAT7__SD4_DATA7 |
MUX_PAD_CTRL(USDHC_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-4-}; - -static iomux_v3_cfg_t const ecspi1_pads[] = { - IOMUX_PADS(PAD_KEY_COL0__ECSPI1_SCLK |
MUX_PAD_CTRL(SPI_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_KEY_COL1__ECSPI1_MISO |
MUX_PAD_CTRL(SPI_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_KEY_ROW0__ECSPI1_MOSI |
MUX_PAD_CTRL(SPI_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_KEY_ROW1__GPIO4_IO09 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-4-}; - -static iomux_v3_cfg_t const rgb_pads[] = { - IOMUX_PADS(PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DI0_PIN15__IPU1_DI0_PIN15 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DI0_PIN2__IPU1_DI0_PIN02 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DI0_PIN3__IPU1_DI0_PIN03 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DI0_PIN4__IPU1_DI0_PIN04 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT0__IPU1_DISP0_DATA00 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT1__IPU1_DISP0_DATA01 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT2__IPU1_DISP0_DATA02 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT3__IPU1_DISP0_DATA03 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT4__IPU1_DISP0_DATA04 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT5__IPU1_DISP0_DATA05 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT6__IPU1_DISP0_DATA06 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT7__IPU1_DISP0_DATA07 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT8__IPU1_DISP0_DATA08 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT9__IPU1_DISP0_DATA09 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT10__IPU1_DISP0_DATA10 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT11__IPU1_DISP0_DATA11 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT12__IPU1_DISP0_DATA12 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT13__IPU1_DISP0_DATA13 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT14__IPU1_DISP0_DATA14 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT15__IPU1_DISP0_DATA15 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT16__IPU1_DISP0_DATA16 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT17__IPU1_DISP0_DATA17 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT18__IPU1_DISP0_DATA18 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT19__IPU1_DISP0_DATA19 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT20__IPU1_DISP0_DATA20 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT21__IPU1_DISP0_DATA21 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT22__IPU1_DISP0_DATA22 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DISP0_DAT23__IPU1_DISP0_DATA23 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-4-}; - -static iomux_v3_cfg_t const bl_pads[] = { - IOMUX_PADS(PAD_SD1_DAT3__GPIO1_IO21 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-50-}; - -static void enable_backlight (void ) -{ -SETUP_IOMUX_PADS (bl_pads); -gpio_direction_output (DISP0_PWR_EN ,1 ); -} - -static void enable_rgb(struct display_info_t const *dev) -{ -SETUP_IOMUX_PADS (rgb_pads); -enable_backlight (); -} - -static void enable_lvds(struct display_info_t const *dev) -{ -enable_backlight (); -} - -static struct i2c_pads_info mx6q_i2c_pad_info1 = { - .scl = { - .i2c_mode =MX6Q_PAD_KEY_COL3__I2C2_SCL |I2C_PAD , - .gpio_mode =MX6Q_PAD_KEY_COL3__GPIO4_IO12 |I2C_PAD , - .gp =IMX_GPIO_NR (4 ,12 ) - }, - .sda = { - .i2c_mode =MX6Q_PAD_KEY_ROW3__I2C2_SDA |I2C_PAD , - .gpio_mode =MX6Q_PAD_KEY_ROW3__GPIO4_IO13 |I2C_PAD , - .gp =IMX_GPIO_NR (4 ,13 ) - } -}; - -static struct i2c_pads_info mx6dl_i2c_pad_info1 = { - .scl = { - .i2c_mode =MX6DL_PAD_KEY_COL3__I2C2_SCL |I2C_PAD , - .gpio_mode =MX6DL_PAD_KEY_COL3__GPIO4_IO12 |I2C_PAD , - .gp =IMX_GPIO_NR (4 ,12 ) - }, - .sda = { - .i2c_mode =MX6DL_PAD_KEY_ROW3__I2C2_SDA |I2C_PAD , - .gpio_mode =MX6DL_PAD_KEY_ROW3__GPIO4_IO13 |I2C_PAD , - .gp =IMX_GPIO_NR (4 ,13 ) - } -}; - -static void setup_spi (void ) -{ -SETUP_IOMUX_PADS (ecspi1_pads); -} - -iomux_v3_cfg_t const pcie_pads[] = { - IOMUX_PADS(PAD_EIM_D19__GPIO3_IO19 |
MUX_PAD_CTRL(NO_PAD_CTRL)), /* POWER */board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_GPIO_17__GPIO7_IO12 |
MUX_PAD_CTRL(NO_PAD_CTRL)), /* RESET */board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-9-}; - -static void setup_pcie (void ) -{ -SETUP_IOMUX_PADS (pcie_pads); -} - -iomux_v3_cfg_t const di0_pads[] = { -IOMUX_PADS (PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK ),/*
DISP0_CLK*/board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DI0_PIN2__IPU1_DI0_PIN02), /*
DISP0_HSYNC*/board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_DI0_PIN3__IPU1_DI0_PIN03), /*
DISP0_VSYNC*/board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-236-}; - -static void setup_iomux_uart (void ) -{ -SETUP_IOMUX_PADS (uart1_pads); -} - -#ifdef CONFIG_FSL_ESDHC -struct fsl_esdhc_cfg usdhc_cfg[3 ] = { - {USDHC2_BASE_ADDR }, - {USDHC3_BASE_ADDR }, - {USDHC4_BASE_ADDR }, -}; - -#define USDHC2_CD_GPIO IMX_GPIO_NR(2, 2) -#define USDHC3_CD_GPIO IMX_GPIO_NR(2, 0) - -int board_mmc_get_env_dev (int devno) -{ -return devno -1 ; -} - -int board_mmc_getcd (struct mmc *mmc) -{ -struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; -int ret =0 ; - -switch (cfg->esdhc_base) { -case USDHC2_BASE_ADDR : - ret = !gpio_get_value (USDHC2_CD_GPIO ); -break ; -case USDHC3_BASE_ADDR : - ret = !gpio_get_value (USDHC3_CD_GPIO ); -break ; -case USDHC4_BASE_ADDR : - ret =1 ;/* eMMC/uSDHC4 is always present */ -break ; - } - -return ret; -} - -int board_mmc_init (bd_t *bis) -{ -#ifndef CONFIG_SPL_BUILD -int ret; -int i; - -/* -* According to the board_mmc_init() the following map is done: -* (U-Boot device node) (Physical Port) -* mmc0 SD2 -* mmc1 SD3 -* mmc2 eMMC -*/ -for (i =0 ; i <CONFIG_SYS_FSL_USDHC_NUM ; i++) { -switch (i) { -case 0 : -SETUP_IOMUX_PADS (usdhc2_pads); -gpio_direction_input (USDHC2_CD_GPIO ); - usdhc_cfg[0 ].sdhc_clk =mxc_get_clock (MXC_ESDHC2_CLK ); -break ; -case 1 : -SETUP_IOMUX_PADS (usdhc3_pads); -gpio_direction_input (USDHC3_CD_GPIO ); - usdhc_cfg[1 ].sdhc_clk =mxc_get_clock (MXC_ESDHC3_CLK ); -break ; -case 2 : -SETUP_IOMUX_PADS (usdhc4_pads); - usdhc_cfg[2 ].sdhc_clk =mxc_get_clock (MXC_ESDHC4_CLK ); -break ; -default : -printf ("Warning: you configured more USDHC controllers" -"(%d) then supported by the board (%d)\n" , - i +1 ,CONFIG_SYS_FSL_USDHC_NUM ); -return -EINVAL ; - } - - ret =fsl_esdhc_initialize (bis, &usdhc_cfg[i]); -if (ret) -return ret; - } - -return 0 ; -#else -struct src *psrc = (struct src *)SRC_BASE_ADDR ; -unsigned reg =readl (&psrc->sbmr1) >>11 ; -/* -* Upon reading BOOT_CFG register the following map is done: -* Bit 11 and 12 of BOOT_CFG register can determine the current -* mmc port -* 0x1 SD1 -* 0x2 SD2 -* 0x3 SD4 -*/ - -switch (reg &0x3 ) { -case 0x1 : -SETUP_IOMUX_PADS (usdhc2_pads); - usdhc_cfg[0 ].esdhc_base =USDHC2_BASE_ADDR ; - usdhc_cfg[0 ].sdhc_clk =mxc_get_clock (MXC_ESDHC2_CLK ); - gd->arch.sdhc_clk = usdhc_cfg[0 ].sdhc_clk; -break ; -case 0x2 : -SETUP_IOMUX_PADS (usdhc3_pads); - usdhc_cfg[0 ].esdhc_base =USDHC3_BASE_ADDR ; - usdhc_cfg[0 ].sdhc_clk =mxc_get_clock (MXC_ESDHC3_CLK ); - gd->arch.sdhc_clk = usdhc_cfg[0 ].sdhc_clk; -break ; -case 0x3 : -SETUP_IOMUX_PADS (usdhc4_pads); - usdhc_cfg[0 ].esdhc_base =USDHC4_BASE_ADDR ; - usdhc_cfg[0 ].sdhc_clk =mxc_get_clock (MXC_ESDHC4_CLK ); - gd->arch.sdhc_clk = usdhc_cfg[0 ].sdhc_clk; -break ; - } - -return fsl_esdhc_initialize (bis, &usdhc_cfg[0 ]); -#endif -} -#endif - -static int ar8031_phy_fixup(struct phy_device *phydev) -{ -unsigned short val; - -/* To enable AR8031 ouput a 125MHz clk from CLK_25M */ -phy_write (phydev,MDIO_DEVAD_NONE ,0xd ,0x7 ); -phy_write (phydev,MDIO_DEVAD_NONE ,0xe ,0x8016 ); -phy_write (phydev,MDIO_DEVAD_NONE ,0xd ,0x4007 ); - - val =phy_read (phydev,MDIO_DEVAD_NONE ,0xe ); - val &=0xffe3 ; - val |=0x18 ; -phy_write (phydev,MDIO_DEVAD_NONE ,0xe , val); - -/* introduce tx clock delay */ -phy_write (phydev,MDIO_DEVAD_NONE ,0x1d ,0x5 ); - val =phy_read (phydev,MDIO_DEVAD_NONE ,0x1e ); - val |=0x0100 ; -phy_write (phydev,MDIO_DEVAD_NONE ,0x1e , val); - -return 0 ; -} - -int board_phy_config(struct phy_device *phydev) -{ -ar8031_phy_fixup (phydev); - -if (phydev->drv->config) - phydev->drv->config (phydev); - -return 0 ; -} - -#if defined(CONFIG_VIDEO_IPUV3 ) -static void disable_lvds(struct display_info_t const *dev) -{ -struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR ; - -int reg =readl (&iomux->gpr[2 ]); - - reg &= ~(IOMUXC_GPR2_LVDS_CH0_MODE_MASK | -IOMUXC_GPR2_LVDS_CH1_MODE_MASK ); - -writel (reg, &iomux->gpr[2 ]); -} - -static void do_enable_hdmi(struct display_info_t const *dev) -{ -disable_lvds (dev); -imx_enable_hdmi_phy (); -} - -struct display_info_t const displays[] = {{ - .bus =-1 , - .addr =0 , - .pixfmt =IPU_PIX_FMT_RGB666 , - .detect =NULL , - .enable = enable_lvds, - .mode = { - .name ="Hannstar-XGA" , - .refresh =60 , - .xres =1024 , - .yres =768 , - .pixclock =15384 , - .left_margin =160 , - .right_margin =24 , - .upper_margin =29 , - .lower_margin =3 , - .hsync_len =136 , - .vsync_len =6 , - .sync =FB_SYNC_EXT , - .vmode =FB_VMODE_NONINTERLACED -} }, { - .bus =-1 , - .addr =0 , - .pixfmt =IPU_PIX_FMT_RGB24 , - .detect = detect_hdmi, - .enable = do_enable_hdmi, - .mode = { - .name ="HDMI" , - .refresh =60 , - .xres =1024 , - .yres =768 , - .pixclock =15384 , - .left_margin =160 , - .right_margin =24 , - .upper_margin =29 , - .lower_margin =3 , - .hsync_len =136 , - .vsync_len =6 , - .sync =FB_SYNC_EXT , - .vmode =FB_VMODE_NONINTERLACED -} }, { - .bus =0 , - .addr =0 , - .pixfmt =IPU_PIX_FMT_RGB24 , - .detect =NULL , - .enable = enable_rgb, - .mode = { - .name ="SEIKO-WVGA" , - .refresh =60 , - .xres =800 , - .yres =480 , - .pixclock =29850 , - .left_margin =89 , - .right_margin =164 , - .upper_margin =23 , - .lower_margin =10 , - .hsync_len =10 , - .vsync_len =10 , - .sync =0 , - .vmode =FB_VMODE_NONINTERLACED -} } }; -size_t display_count =ARRAY_SIZE (displays); - -static void setup_display (void ) -{ - struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg*)CCM_BASE_ADDR;
board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-12-struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR ; -int reg; - -/* Setup HSYNC, VSYNC, DISP_CLK for debugging purposes */ -SETUP_IOMUX_PADS (di0_pads); - -enable_ipu_clock (); -imx_setup_hdmi (); - -/* Turn on LDB0, LDB1, IPU,IPU DI0 clocks */ - reg =readl (&mxc_ccm->CCGR3); - reg |= MXC_CCM_CCGR3_LDB_DI0_MASK |
MXC_CCM_CCGR3_LDB_DI1_MASK;board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-12-writel (reg, &mxc_ccm->CCGR3); - -/* set LDB0, LDB1 clk select to 011/011 */ - reg =readl (&mxc_ccm->cs2cdr); - reg &= ~(MXC_CCM_CS2CDR_LDB_DI0_CLK_SEL_MASK - |MXC_CCM_CS2CDR_LDB_DI1_CLK_SEL_MASK ); - reg |= (3 <<MXC_CCM_CS2CDR_LDB_DI0_CLK_SEL_OFFSET ) - | (3 <<MXC_CCM_CS2CDR_LDB_DI1_CLK_SEL_OFFSET ); -writel (reg, &mxc_ccm->cs2cdr); - - reg =readl (&mxc_ccm->cscmr2); - reg |= MXC_CCM_CSCMR2_LDB_DI0_IPU_DIV |
MXC_CCM_CSCMR2_LDB_DI1_IPU_DIV;board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-52-writel (reg, &mxc_ccm->cscmr2); - - reg =readl (&mxc_ccm->chsccdr); - reg |= (CHSCCDR_CLK_SEL_LDB_DI0 - <<MXC_CCM_CHSCCDR_IPU1_DI0_CLK_SEL_OFFSET ); - reg |= (CHSCCDR_CLK_SEL_LDB_DI0 - <<MXC_CCM_CHSCCDR_IPU1_DI1_CLK_SEL_OFFSET ); -writel (reg, &mxc_ccm->chsccdr); - - reg =IOMUXC_GPR2_BGREF_RRMODE_EXTERNAL_RES - |IOMUXC_GPR2_DI1_VS_POLARITY_ACTIVE_LOW - |IOMUXC_GPR2_DI0_VS_POLARITY_ACTIVE_LOW - |IOMUXC_GPR2_BIT_MAPPING_CH1_SPWG - |IOMUXC_GPR2_DATA_WIDTH_CH1_18BIT - |IOMUXC_GPR2_BIT_MAPPING_CH0_SPWG - |IOMUXC_GPR2_DATA_WIDTH_CH0_18BIT - |IOMUXC_GPR2_LVDS_CH0_MODE_DISABLED - |IOMUXC_GPR2_LVDS_CH1_MODE_ENABLED_DI0 ; -writel (reg, &iomux->gpr[2 ]); - - reg =readl (&iomux->gpr[3 ]); - reg = (reg & ~(IOMUXC_GPR3_LVDS1_MUX_CTL_MASK - |IOMUXC_GPR3_HDMI_MUX_CTL_MASK )) - | (IOMUXC_GPR3_MUX_SRC_IPU1_DI0 - <<IOMUXC_GPR3_LVDS1_MUX_CTL_OFFSET ); -writel (reg, &iomux->gpr[3 ]); -} -#endif /* CONFIG_VIDEO_IPUV3 */ - -/* -* Do not overwrite the console -* Use always serial for U-Boot console -*/ -int overwrite_console (void ) -{ -return 1 ; -} - -int board_eth_init (bd_t *bis) -{ -setup_iomux_enet (); -setup_pcie (); - -return cpu_eth_init (bis); -} - -#ifdef CONFIG_USB_EHCI_MX6 -#define USB_OTHERREGS_OFFSET 0x800 -#define UCTRL_PWR_POL (1 << 9) - -static iomux_v3_cfg_t const usb_otg_pads[] = { - IOMUX_PADS(PAD_EIM_D22__USB_OTG_PWR |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-1- IOMUX_PADS(PAD_ENET_RX_ER__USB_OTG_ID |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-4-}; - -static iomux_v3_cfg_t const usb_hc1_pads[] = { - IOMUX_PADS(PAD_ENET_TXD1__GPIO1_IO29 |
MUX_PAD_CTRL(NO_PAD_CTRL)),board/freescale/mx6sabresd/mx6sabresd.c deleted +1
-69-}; - -static void setup_usb (void ) -{ -SETUP_IOMUX_PADS (usb_otg_pads); - -/* -* set daisy chain for otg_pin_id on 6q. -* for 6dl, this bit is reserved -*/ -imx_iomux_set_gpr_register (1 ,13 ,1 ,0 ); - -SETUP_IOMUX_PADS (usb_hc1_pads); -} - -int board_ehci_hcd_init (int port) -{ -u32 *usbnc_usb_ctrl; - -if (port >1 ) -return -EINVAL ; - - usbnc_usb_ctrl = (u32 *)(USB_BASE_ADDR +USB_OTHERREGS_OFFSET + - port * 4); - -setbits_le32 (usbnc_usb_ctrl,UCTRL_PWR_POL ); - -return 0 ; -} - -int board_ehci_power (int port,int on) -{ -switch (port) { -case 0 : -break ; -case 1 : -if (on) -gpio_direction_output (IMX_GPIO_NR (1 ,29 ),1 ); -else -gpio_direction_output (IMX_GPIO_NR (1 ,29 ),0 ); -break ; -default : -printf ("MXC USB port %d not yet supported\n" , port); -return -EINVAL ; - } - -return 0 ; -} -#endif - -int board_early_init_f (void ) -{ -setup_iomux_uart (); - -return 0 ; -} - -int board_init (void ) -{ -/* address of boot parameters */ - gd->bd->bi_boot_params =PHYS_SDRAM +0x100 ; - -#ifdef CONFIG_MXC_SPI -setup_spi (); -#endif -if (is_mx6dq () ||is_mx6dqp ()) -setup_i2c (1 ,CONFIG_SYS_I2C_SPEED ,0x7f , &mx6q_i2c_pad_info1); -else - setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f,
&mx6dl_i2c_pad_info1);board/freescale/mx6sabresd/mx6sabresd.c deleted +0
-422-#if defined(CONFIG_VIDEO_IPUV3 ) -setup_display (); -#endif -#ifdef CONFIG_USB_EHCI_MX6 -setup_usb (); -#endif - -return 0 ; -} - -int power_init_board (void ) -{ -struct pmic *p; -unsigned int reg; -int ret; - - p =pfuze_common_init (I2C_PMIC ); -if (!p) -return -ENODEV ; - - ret =pfuze_mode_init (p,APS_PFM ); -if (ret <0 ) -return ret; - -/* Increase VGEN3 from 2.5 to 2.8V */ -pmic_reg_read (p,PFUZE100_VGEN3VOL , ®); - reg &= ~LDO_VOL_MASK ; - reg |=LDOB_2_80V ; -pmic_reg_write (p,PFUZE100_VGEN3VOL , reg); - -/* Increase VGEN5 from 2.8 to 3V */ -pmic_reg_read (p,PFUZE100_VGEN5VOL , ®); - reg &= ~LDO_VOL_MASK ; - reg |=LDOB_3_00V ; -pmic_reg_write (p,PFUZE100_VGEN5VOL , reg); - -return 0 ; -} - -#ifdef CONFIG_MXC_SPI -int board_spi_cs_gpio(unsigned bus, unsigned cs) -{ -return (bus ==0 && cs ==0 ) ? (IMX_GPIO_NR (4 ,9 )) :-1 ; -} -#endif - -#ifdef CONFIG_CMD_BMODE -static const struct boot_mode board_boot_modes[] = { -/* 4 bit bus width */ - {"sd2" ,MAKE_CFGVAL (0x40 ,0x28 ,0x00 ,0x00 )}, - {"sd3" ,MAKE_CFGVAL (0x40 ,0x30 ,0x00 ,0x00 )}, -/* 8 bit bus width */ - {"emmc" ,MAKE_CFGVAL (0x60 ,0x58 ,0x00 ,0x00 )}, - {NULL ,0 }, -}; -#endif - -int board_late_init (void ) -{ -#ifdef CONFIG_CMD_BMODE -add_board_boot_modes (board_boot_modes); -#endif - -#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG -env_set ("board_name" ,"SABRESD" ); - -if (is_mx6dqp ()) -env_set ("board_rev" ,"MX6QP" ); -else if (is_mx6dq ()) -env_set ("board_rev" ,"MX6Q" ); -else if (is_mx6sdl ()) -env_set ("board_rev" ,"MX6DL" ); -#endif - -return 0 ; -} - -int checkboard (void ) -{ -puts ("Board: MX6-SabreSD\n" ); -return 0 ; -} - -#ifdef CONFIG_SPL_BUILD -#include <asm/arch/mx6-ddr.h> -#include <spl.h> -#include <linux/libfdt.h> - -#ifdef CONFIG_SPL_OS_BOOT -int spl_start_uboot (void ) -{ -gpio_direction_input (KEY_VOL_UP ); - -/* Only enter in Falcon mode if KEY_VOL_UP is pressed */ -return gpio_get_value (KEY_VOL_UP ); -} -#endif - -static void ccgr_init (void ) -{ -struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR ; - -writel (0x00C03F3F , &ccm->CCGR0); -writel (0x0030FC03 , &ccm->CCGR1); -writel (0x0FFFC000 , &ccm->CCGR2); -writel (0x3FF00000 , &ccm->CCGR3); -writel (0x00FFF300 , &ccm->CCGR4); -writel (0x0F0000C3 , &ccm->CCGR5); -writel (0x000003FF , &ccm->CCGR6); -} - -static int mx6q_dcd_table[] = { -0x020e0798 ,0x000C0000 , -0x020e0758 ,0x00000000 , -0x020e0588 ,0x00000030 , -0x020e0594 ,0x00000030 , -0x020e056c ,0x00000030 , -0x020e0578 ,0x00000030 , -0x020e074c ,0x00000030 , -0x020e057c ,0x00000030 , -0x020e058c ,0x00000000 , -0x020e059c ,0x00000030 , -0x020e05a0 ,0x00000030 , -0x020e078c ,0x00000030 , -0x020e0750 ,0x00020000 , -0x020e05a8 ,0x00000030 , -0x020e05b0 ,0x00000030 , -0x020e0524 ,0x00000030 , -0x020e051c ,0x00000030 , -0x020e0518 ,0x00000030 , -0x020e050c ,0x00000030 , -0x020e05b8 ,0x00000030 , -0x020e05c0 ,0x00000030 , -0x020e0774 ,0x00020000 , -0x020e0784 ,0x00000030 , -0x020e0788 ,0x00000030 , -0x020e0794 ,0x00000030 , -0x020e079c ,0x00000030 , -0x020e07a0 ,0x00000030 , -0x020e07a4 ,0x00000030 , -0x020e07a8 ,0x00000030 , -0x020e0748 ,0x00000030 , -0x020e05ac ,0x00000030 , -0x020e05b4 ,0x00000030 , -0x020e0528 ,0x00000030 , -0x020e0520 ,0x00000030 , -0x020e0514 ,0x00000030 , -0x020e0510 ,0x00000030 , -0x020e05bc ,0x00000030 , -0x020e05c4 ,0x00000030 , -0x021b0800 ,0xa1390003 , -0x021b080c ,0x001F001F , -0x021b0810 ,0x001F001F , -0x021b480c ,0x001F001F , -0x021b4810 ,0x001F001F , -0x021b083c ,0x43270338 , -0x021b0840 ,0x03200314 , -0x021b483c ,0x431A032F , -0x021b4840 ,0x03200263 , -0x021b0848 ,0x4B434748 , -0x021b4848 ,0x4445404C , -0x021b0850 ,0x38444542 , -0x021b4850 ,0x4935493A , -0x021b081c ,0x33333333 , -0x021b0820 ,0x33333333 , -0x021b0824 ,0x33333333 , -0x021b0828 ,0x33333333 , -0x021b481c ,0x33333333 , -0x021b4820 ,0x33333333 , -0x021b4824 ,0x33333333 , -0x021b4828 ,0x33333333 , -0x021b08b8 ,0x00000800 , -0x021b48b8 ,0x00000800 , -0x021b0004 ,0x00020036 , -0x021b0008 ,0x09444040 , -0x021b000c ,0x555A7975 , -0x021b0010 ,0xFF538F64 , -0x021b0014 ,0x01FF00DB , -0x021b0018 ,0x00001740 , -0x021b001c ,0x00008000 , -0x021b002c ,0x000026d2 , -0x021b0030 ,0x005A1023 , -0x021b0040 ,0x00000027 , -0x021b0000 ,0x831A0000 , -0x021b001c ,0x04088032 , -0x021b001c ,0x00008033 , -0x021b001c ,0x00048031 , -0x021b001c ,0x09408030 , -0x021b001c ,0x04008040 , -0x021b0020 ,0x00005800 , -0x021b0818 ,0x00011117 , -0x021b4818 ,0x00011117 , -0x021b0004 ,0x00025576 , -0x021b0404 ,0x00011006 , -0x021b001c ,0x00000000 , -}; - -static int mx6qp_dcd_table[] = { -0x020e0798 ,0x000c0000 , -0x020e0758 ,0x00000000 , -0x020e0588 ,0x00000030 , -0x020e0594 ,0x00000030 , -0x020e056c ,0x00000030 , -0x020e0578 ,0x00000030 , -0x020e074c ,0x00000030 , -0x020e057c ,0x00000030 , -0x020e058c ,0x00000000 , -0x020e059c ,0x00000030 , -0x020e05a0 ,0x00000030 , -0x020e078c ,0x00000030 , -0x020e0750 ,0x00020000 , -0x020e05a8 ,0x00000030 , -0x020e05b0 ,0x00000030 , -0x020e0524 ,0x00000030 , -0x020e051c ,0x00000030 , -0x020e0518 ,0x00000030 , -0x020e050c ,0x00000030 , -0x020e05b8 ,0x00000030 , -0x020e05c0 ,0x00000030 , -0x020e0774 ,0x00020000 , -0x020e0784 ,0x00000030 , -0x020e0788 ,0x00000030 , -0x020e0794 ,0x00000030 , -0x020e079c ,0x00000030 , -0x020e07a0 ,0x00000030 , -0x020e07a4 ,0x00000030 , -0x020e07a8 ,0x00000030 , -0x020e0748 ,0x00000030 , -0x020e05ac ,0x00000030 , -0x020e05b4 ,0x00000030 , -0x020e0528 ,0x00000030 , -0x020e0520 ,0x00000030 , -0x020e0514 ,0x00000030 , -0x020e0510 ,0x00000030 , -0x020e05bc ,0x00000030 , -0x020e05c4 ,0x00000030 , -0x021b0800 ,0xa1390003 , -0x021b080c ,0x001b001e , -0x021b0810 ,0x002e0029 , -0x021b480c ,0x001b002a , -0x021b4810 ,0x0019002c , -0x021b083c ,0x43240334 , -0x021b0840 ,0x0324031a , -0x021b483c ,0x43340344 , -0x021b4840 ,0x03280276 , -0x021b0848 ,0x44383A3E , -0x021b4848 ,0x3C3C3846 , -0x021b0850 ,0x2e303230 , -0x021b4850 ,0x38283E34 , -0x021b081c ,0x33333333 , -0x021b0820 ,0x33333333 , -0x021b0824 ,0x33333333 , -0x021b0828 ,0x33333333 , -0x021b481c ,0x33333333 , -0x021b4820 ,0x33333333 , -0x021b4824 ,0x33333333 , -0x021b4828 ,0x33333333 , -0x021b08c0 ,0x24912249 , -0x021b48c0 ,0x24914289 , -0x021b08b8 ,0x00000800 , -0x021b48b8 ,0x00000800 , -0x021b0004 ,0x00020036 , -0x021b0008 ,0x24444040 , -0x021b000c ,0x555A7955 , -0x021b0010 ,0xFF320F64 , -0x021b0014 ,0x01ff00db , -0x021b0018 ,0x00001740 , -0x021b001c ,0x00008000 , -0x021b002c ,0x000026d2 , -0x021b0030 ,0x005A1023 , -0x021b0040 ,0x00000027 , -0x021b0400 ,0x14420000 , -0x021b0000 ,0x831A0000 , -0x021b0890 ,0x00400C58 , -0x00bb0008 ,0x00000000 , -0x00bb000c ,0x2891E41A , -0x00bb0038 ,0x00000564 , -0x00bb0014 ,0x00000040 , -0x00bb0028 ,0x00000020 , -0x00bb002c ,0x00000020 , -0x021b001c ,0x04088032 , -0x021b001c ,0x00008033 , -0x021b001c ,0x00048031 , -0x021b001c ,0x09408030 , -0x021b001c ,0x04008040 , -0x021b0020 ,0x00005800 , -0x021b0818 ,0x00011117 , -0x021b4818 ,0x00011117 , -0x021b0004 ,0x00025576 , -0x021b0404 ,0x00011006 , -0x021b001c ,0x00000000 , -}; - -static int mx6dl_dcd_table[] = { -0x020e0774 ,0x000C0000 , -0x020e0754 ,0x00000000 , -0x020e04ac ,0x00000030 , -0x020e04b0 ,0x00000030 , -0x020e0464 ,0x00000030 , -0x020e0490 ,0x00000030 , -0x020e074c ,0x00000030 , -0x020e0494 ,0x00000030 , -0x020e04a0 ,0x00000000 , -0x020e04b4 ,0x00000030 , -0x020e04b8 ,0x00000030 , -0x020e076c ,0x00000030 , -0x020e0750 ,0x00020000 , -0x020e04bc ,0x00000030 , -0x020e04c0 ,0x00000030 , -0x020e04c4 ,0x00000030 , -0x020e04c8 ,0x00000030 , -0x020e04cc ,0x00000030 , -0x020e04d0 ,0x00000030 , -0x020e04d4 ,0x00000030 , -0x020e04d8 ,0x00000030 , -0x020e0760 ,0x00020000 , -0x020e0764 ,0x00000030 , -0x020e0770 ,0x00000030 , -0x020e0778 ,0x00000030 , -0x020e077c ,0x00000030 , -0x020e0780 ,0x00000030 , -0x020e0784 ,0x00000030 , -0x020e078c ,0x00000030 , -0x020e0748 ,0x00000030 , -0x020e0470 ,0x00000030 , -0x020e0474 ,0x00000030 , -0x020e0478 ,0x00000030 , -0x020e047c ,0x00000030 , -0x020e0480 ,0x00000030 , -0x020e0484 ,0x00000030 , -0x020e0488 ,0x00000030 , -0x020e048c ,0x00000030 , -0x021b0800 ,0xa1390003 , -0x021b080c ,0x001F001F , -0x021b0810 ,0x001F001F , -0x021b480c ,0x001F001F , -0x021b4810 ,0x001F001F , -0x021b083c ,0x4220021F , -0x021b0840 ,0x0207017E , -0x021b483c ,0x4201020C , -0x021b4840 ,0x01660172 , -0x021b0848 ,0x4A4D4E4D , -0x021b4848 ,0x4A4F5049 , -0x021b0850 ,0x3F3C3D31 , -0x021b4850 ,0x3238372B , -0x021b081c ,0x33333333 , -0x021b0820 ,0x33333333 , -0x021b0824 ,0x33333333 , -0x021b0828 ,0x33333333 , -0x021b481c ,0x33333333 , -0x021b4820 ,0x33333333 , -0x021b4824 ,0x33333333 , -0x021b4828 ,0x33333333 , -0x021b08b8 ,0x00000800 , -0x021b48b8 ,0x00000800 , -0x021b0004 ,0x0002002D , -0x021b0008 ,0x00333030 , -0x021b000c ,0x3F435313 , -0x021b0010 ,0xB66E8B63 , -0x021b0014 ,0x01FF00DB , -0x021b0018 ,0x00001740 , -0x021b001c ,0x00008000 , -0x021b002c ,0x000026d2 , -0x021b0030 ,0x00431023 , -0x021b0040 ,0x00000027 , -0x021b0000 ,0x831A0000 , -0x021b001c ,0x04008032 , -0x021b001c ,0x00008033 , -0x021b001c ,0x00048031 , -0x021b001c ,0x05208030 , -0x021b001c ,0x04008040 , -0x021b0020 ,0x00005800 , -0x021b0818 ,0x00011117 , -0x021b4818 ,0x00011117 , -0x021b0004 ,0x0002556D , -0x021b0404 ,0x00011006 , -0x021b001c ,0x00000000 , -}; - -static void ddr_init(int *table, int size) -{ -int i; - -for (i =0 ; i < size /2 ; i++) -writel (table[2 * i +1 ], table[2 * i]); -} - -static void spl_dram_init (void ) -{ -if (is_mx6dq ()) -ddr_init (mx6q_dcd_table,ARRAY_SIZE (mx6q_dcd_table)); -else if (is_mx6dqp ()) -ddr_init (mx6qp_dcd_table,ARRAY_SIZE (mx6qp_dcd_table)); -else if (is_mx6sdl ()) -ddr_init (mx6dl_dcd_table,ARRAY_SIZE (mx6dl_dcd_table)); -} - -void board_init_f (ulong dummy) -{ -/* DDR initialization */ -spl_dram_init (); - -/* setup AIPS and disable watchdog */ -arch_cpu_init (); - -ccgr_init (); -gpr_init (); - -/* iomux and setup of i2c */ -board_early_init_f (); - -/* setup GP timer */ -timer_init (); - -/* UART clocks enabled and gd valid - init serial console */ -preloader_console_init (); - -/* Clear the BSS. */ -memset (__bss_start,0 , __bss_end - __bss_start); - -/* load/boot image from boot device */ -board_init_r (NULL ,0 ); -} -#endif configs/mx6sabresd_defconfig deleted +0
-13@@ -1,75 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 -CONFIG_SPL_GPIO_SUPPORT=y -CONFIG_SPL_LIBCOMMON_SUPPORT=y -CONFIG_SPL_LIBGENERIC_SUPPORT=y -CONFIG_TARGET_MX6SABRESD=y -CONFIG_SPL_MMC_SUPPORT=y -CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_SPL=y -CONFIG_SPL_LIBDISK_SUPPORT=y -CONFIG_NR_DRAM_BANKS=1 -CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg"
configs/mx6sabresd_defconfig deleted +0
-62-# CONFIG_CONSOLE_MUX is not set -CONFIG_SYS_CONSOLE_IS_IN_ENV=y -CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y -CONFIG_SUPPORT_RAW_INITRD=y -CONFIG_SPL_EXT_SUPPORT=y -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_OS_BOOT=y -CONFIG_SPL_USB_HOST_SUPPORT=y -CONFIG_SPL_USB_GADGET_SUPPORT=y -CONFIG_SPL_USB_SDP_SUPPORT=y -CONFIG_SPL_WATCHDOG_SUPPORT=y -CONFIG_HUSH_PARSER=y -CONFIG_CMD_BOOTZ=y -CONFIG_CMD_SPL=y -CONFIG_CMD_SPL_WRITE_SIZE=0x20000 -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_GPIO=y -CONFIG_CMD_I2C=y -CONFIG_CMD_MMC=y -CONFIG_CMD_PART=y -CONFIG_CMD_PCI=y -CONFIG_CMD_SF=y -CONFIG_CMD_USB=y -CONFIG_CMD_USB_SDP=y -CONFIG_CMD_USB_MASS_STORAGE=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_MII=y -CONFIG_CMD_PING=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_EXT2=y -CONFIG_CMD_EXT4=y -CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_FAT=y -CONFIG_CMD_FS_GENERIC=y -CONFIG_EFI_PARTITION=y -CONFIG_ENV_IS_IN_MMC=y -CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y -CONFIG_USB_FUNCTION_FASTBOOT=y -CONFIG_FASTBOOT_BUF_ADDR=0x12000000 -CONFIG_FASTBOOT_BUF_SIZE=0x10000000 -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=2 -CONFIG_FSL_ESDHC=y -CONFIG_SPI_FLASH=y -CONFIG_SPI_FLASH_STMICRO=y -CONFIG_PHYLIB=y -CONFIG_MII=y -CONFIG_PCI=y -CONFIG_SPI=y -CONFIG_MXC_SPI=y -CONFIG_USB=y -CONFIG_USB_STORAGE=y -CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="FSL" -CONFIG_USB_GADGET_VENDOR_NUM=0x0525 -CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 -CONFIG_CI_UDC=y -CONFIG_USB_HOST_ETHER=y -CONFIG_USB_ETHER_ASIX=y -CONFIG_VIDEO=y -# CONFIG_VIDEO_SW_CURSOR is not set -CONFIG_OF_LIBFDT=yinclude/configs/mx6sabresd.h deleted +0
-29@@ -1,67 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* Copyright (C) 2012 Freescale Semiconductor, Inc. -* -* Configuration settings for the Freescale i.MX6Q SabreSD board. -*/ - -#ifndef __MX6SABRESD_CONFIG_H -#define __MX6SABRESD_CONFIG_H - -#ifdef CONFIG_SPL -#include "imx6_spl.h" -#endif - -#define CONFIG_MACH_TYPE 3980 -#define CONFIG_MXC_UART_BASE UART1_BASE -#define CONSOLE_DEV "ttymxc0" - -#define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */ - -#include "mx6sabre_common.h" - -/* Falcon Mode */ -#define CONFIG_SPL_FS_LOAD_ARGS_NAME "args" -#define CONFIG_SPL_FS_LOAD_KERNEL_NAME "uImage" -#define CONFIG_SYS_SPL_ARGS_ADDR 0x18000000 - -/* Falcon Mode - MMC support: args at 1MB kernel at 2MB */ -#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x800/* 1MB */
-#defineCONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS
(CONFIG_CMD_SPL_WRITE_SIZE/ 512)
-#defineCONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR0x1000/* 2MB */include/configs/mx6sabresd.h deleted +0
-31- -#define CONFIG_SYS_FSL_USDHC_NUM 3 -#if defined(CONFIG_ENV_IS_IN_MMC ) -#define CONFIG_SYS_MMC_ENV_DEV 1/* SDHC3 */ -#endif - -#ifdef CONFIG_CMD_PCI -#define CONFIG_PCI_SCAN_SHOW -#define CONFIG_PCIE_IMX -#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(7, 12) -#define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(3, 19) -#endif - -/* I2C Configs */ -#define CONFIG_SYS_I2C -#define CONFIG_SYS_I2C_MXC -#define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */ -#define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */ -#define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */ -#define CONFIG_SYS_I2C_SPEED 100000 - -/* PMIC */ -#define CONFIG_POWER -#define CONFIG_POWER_I2C -#define CONFIG_POWER_PFUZE100 -#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 - -/* USB Configs */ -#ifdef CONFIG_CMD_USB -#define CONFIG_EHCI_HCD_INIT_AFTER_RESET -#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI |
PORT_PTS_PTW)include/configs/mx6sabresd.h deleted +0
-2-#define CONFIG_MXC_USB_FLAGS 0 -#define CONFIG_USB_MAX_CONTROLLER_COUNT 1/* Enabled USB controller number */
include/configs/mx6sabresd.h deleted +0
-4-#endif - -#endif /* __MX6SABRESD_CONFIG_H */ --2.19.1.1215.g8438c0b245-goog
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.
denx.de%2Flistinfo%2Fu-boot&data=02%7C01%7CPeng.Fan%40nxp.co m%7C1d3ae10ebc6749142c7508d64e436ddf%7C686ea1d3bc2b4c6fa92cd99 c5c301635%7C0%7C0%7C636782448860055887&sdata=KSONyk6yAMy 8TBxHQIGArB98XFf52W6DJ%2FKv1sS%2FRik%3D&reserved=0
PATCH 61/93 arm: Remove mx6sabresd board
Quoted 4 lines · Peng Fan
Hi Simon,
Please not remove this board, we will work to support
DM_BLK.
OK thanks Peng.
- SImon
PATCH 62/93 arm: Remove dh_imx6 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-imx/mx6/Kconfig | 2 - board/dhelectronics/dh_imx6/Kconfig | 12 - board/dhelectronics/dh_imx6/MAINTAINERS | 7 - board/dhelectronics/dh_imx6/Makefile | 9 - board/dhelectronics/dh_imx6/dh_imx6.c | 431 ---------------- board/dhelectronics/dh_imx6/dh_imx6_spl.c | 591 ---------------------- configs/dh_imx6_defconfig | 63 --- include/configs/dh_imx6.h | 178 ------- 8 files changed, 1293 deletions(-) delete mode 100644 board/dhelectronics/dh_imx6/Kconfig delete mode 100644 board/dhelectronics/dh_imx6/MAINTAINERS delete mode 100644 board/dhelectronics/dh_imx6/Makefile delete mode 100644 board/dhelectronics/dh_imx6/dh_imx6.c delete mode 100644 board/dhelectronics/dh_imx6/dh_imx6_spl.c delete mode 100644 configs/dh_imx6_defconfig delete mode 100644 include/configs/dh_imx6.h
arch/arm/mach-imx/mx6/Kconfig +0 -2
@@ -524,13 +524,11 @@ source "board/ge/bx50v3/Kconfig" source "board/advantech/dms-ba16/Kconfig" source "board/aristainetos/Kconfig" source "board/armadeus/opos6uldev/Kconfig" -source "board/bachmann/ot1200/Kconfig" source "board/barco/platinum/Kconfig" source "board/barco/titanium/Kconfig" source "board/boundary/nitrogen6x/Kconfig" source "board/compulab/cm_fx6/Kconfig" source "board/congatec/cgtqmx6eval/Kconfig" -source "board/dhelectronics/dh_imx6/Kconfig" source "board/engicam/imx6q/Kconfig" source "board/engicam/imx6ul/Kconfig" source "board/freescale/mx6qarm2/Kconfig"
board/dhelectronics/dh_imx6/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_DHCOMIMX6 - -config SYS_BOARD - default "dh_imx6" - -config SYS_VENDOR - default "dhelectronics" - -config SYS_CONFIG_NAME - default "dh_imx6" - -endif
board/dhelectronics/dh_imx6/MAINTAINERS deleted +0 -7
@@ -1,7 +0,0 @@ -DH_IMX6 BOARD -M: Andreas Geisreiter <[email protected]> -M: Ludwig Zenz <[email protected]> -S: Maintained -F: board/dhelectronics/dh_imx6/ -F: include/configs/dh_imx6.h -F: configs/dh_imx6_defconfig
board/dhelectronics/dh_imx6/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2017 Marek Vasut <[email protected]> - -ifdef CONFIG_SPL_BUILD -obj-y := dh_imx6_spl.o -else -obj-y := dh_imx6.o -endif
board/dhelectronics/dh_imx6/dh_imx6.c deleted +0 -431
431 lines not on this page · raw message
board/dhelectronics/dh_imx6/dh_imx6_spl.c deleted +0 -591
591 lines not on this page · raw message
configs/dh_imx6_defconfig deleted +0 -63
63 lines not on this page · raw message
include/configs/dh_imx6.h deleted +0 -178
178 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 62/93 arm: Remove dh_imx6 board
Quoted 2 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.
Hi Simon,
CONFIG_DM_BLK does not exist. Did you mean CONFIG_BLK?
I didn't know about any deadline or necessary change. I will have a look at it.
NAK. The board is used.
Regards,
Ludwig Zenz
Quoted 1,372 lines
Signed-off-by Simon Glass <[email protected]>---
arch/arm/mach-imx/mx6/Kconfig | 2 - board/dhelectronics/dh_imx6/Kconfig | 12 - board/dhelectronics/dh_imx6/MAINTAINERS | 7 - board/dhelectronics/dh_imx6/Makefile | 9 - board/dhelectronics/dh_imx6/dh_imx6.c | 431 ---------------- board/dhelectronics/dh_imx6/dh_imx6_spl.c | 591 ---------------------- configs/dh_imx6_defconfig | 63 --- include/configs/dh_imx6.h | 178 ------- 8 files changed, 1293 deletions(-)delete mode 100644 board/dhelectronics/dh_imx6/Kconfig delete mode 100644 board/dhelectronics/dh_imx6/MAINTAINERS delete mode 100644 board/dhelectronics/dh_imx6/Makefile delete mode 100644
board/dhelectronics/dh_imx6/dh_imx6.cdelete mode 100644board/dhelectronics/dh_imx6/dh_imx6_spl.cdelete mode 100644 configs/dh_imx6_defconfig delete mode 100644include/configs/dh_imx6.harch/arm/mach-imx/mx6/Kconfig +0
-2@@ -524,13 +524,11 @@ source "board/ge/bx50v3/Kconfig" source "board/advantech/dms-ba16/Kconfig" source "board/aristainetos/Kconfig" source "board/armadeus/opos6uldev/Kconfig" -source "board/bachmann/ot1200/Kconfig" source "board/barco/platinum/Kconfig" source "board/barco/titanium/Kconfig" source "board/boundary/nitrogen6x/Kconfig" source "board/compulab/cm_fx6/Kconfig" source "board/congatec/cgtqmx6eval/Kconfig" -source "board/dhelectronics/dh_imx6/Kconfig" source "board/engicam/imx6q/Kconfig" source "board/engicam/imx6ul/Kconfig" source "board/freescale/mx6qarm2/Kconfig"board/dhelectronics/dh_imx6/Kconfig deleted +0
-12@@ -1,12 +0,0 @@ -if TARGET_DHCOMIMX6 - -config SYS_BOARD - default "dh_imx6" - -config SYS_VENDOR - default "dhelectronics" - -config SYS_CONFIG_NAME - default "dh_imx6" - -endifboard/dhelectronics/dh_imx6/MAINTAINERS deleted +0
-7@@ -1,7 +0,0 @@ -DH_IMX6 BOARD -M: Andreas Geisreiter <[email protected]> -M: Ludwig Zenz <[email protected]> -S: Maintained -F: board/dhelectronics/dh_imx6/ -F: include/configs/dh_imx6.h -F: configs/dh_imx6_defconfigboard/dhelectronics/dh_imx6/Makefile deleted +0
-9@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2017 Marek Vasut <[email protected]> - -ifdef CONFIG_SPL_BUILD -obj-y := dh_imx6_spl.o -else -obj-y := dh_imx6.o -endifboard/dhelectronics/dh_imx6/dh_imx6.c deleted +0
-431@@ -1,431 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* DHCOM DH-iMX6 PDK board support -* -* Copyright (C) 2017 Marek Vasut <[email protected]> -*/ - -#include <common.h> -#include <asm/arch/clock.h> -#include <asm/arch/crm_regs.h> -#include <asm/arch/imx-regs.h> -#include <asm/arch/iomux.h> -#include <asm/arch/mx6-pins.h> -#include <asm/arch/sys_proto.h> -#include <asm/gpio.h> -#include <asm/io.h> -#include <asm/mach-imx/boot_mode.h> -#include <asm/mach-imx/iomux-v3.h> -#include <asm/mach-imx/mxc_i2c.h> -#include <asm/mach-imx/sata.h> -#include <environment.h> -#include <errno.h> -#include <fsl_esdhc.h> -#include <fuse.h> -#include <i2c.h> -#include <miiphy.h> -#include <mmc.h> -#include <net.h> -#include <netdev.h> -#include <usb.h> -#include <usb/ehci-ci.h> - -DECLARE_GLOBAL_DATA_PTR ; - -#define I2C_PAD_CTRL \ - (PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ - PAD_CTL_HYS | PAD_CTL_ODE | PAD_CTL_SRE_FAST) - -#define EEPROM_I2C_ADDRESS 0x50 - -#define PC MUX_PAD_CTRL(I2C_PAD_CTRL) - -static struct i2c_pads_info dh6sdl_i2c_pad_info0 = { - .scl = { - .i2c_mode =MX6DL_PAD_EIM_D21__I2C1_SCL |PC , - .gpio_mode =MX6DL_PAD_EIM_D21__GPIO3_IO21 |PC , - .gp =IMX_GPIO_NR (3 ,21 ) - }, - .sda = { - .i2c_mode =MX6DL_PAD_EIM_D28__I2C1_SDA |PC , - .gpio_mode =MX6DL_PAD_EIM_D28__GPIO3_IO28 |PC , - .gp =IMX_GPIO_NR (3 ,28 ) - } -}; - -static struct i2c_pads_info dh6sdl_i2c_pad_info1 = { - .scl = { - .i2c_mode =MX6DL_PAD_KEY_COL3__I2C2_SCL |PC , - .gpio_mode =MX6DL_PAD_KEY_COL3__GPIO4_IO12 |PC , - .gp =IMX_GPIO_NR (4 ,12 ) - }, - .sda = { - .i2c_mode =MX6DL_PAD_KEY_ROW3__I2C2_SDA |PC , - .gpio_mode =MX6DL_PAD_KEY_ROW3__GPIO4_IO13 |PC , - .gp =IMX_GPIO_NR (4 ,13 ) - } -}; - -static struct i2c_pads_info dh6sdl_i2c_pad_info2 = { - .scl = { - .i2c_mode =MX6DL_PAD_GPIO_3__I2C3_SCL |PC , - .gpio_mode =MX6DL_PAD_GPIO_3__GPIO1_IO03 |PC , - .gp =IMX_GPIO_NR (1 ,3 ) - }, - .sda = { - .i2c_mode =MX6DL_PAD_GPIO_6__I2C3_SDA |PC , - .gpio_mode =MX6DL_PAD_GPIO_6__GPIO1_IO06 |PC , - .gp =IMX_GPIO_NR (1 ,6 ) - } -}; - -static struct i2c_pads_info dh6dq_i2c_pad_info0 = { - .scl = { - .i2c_mode =MX6Q_PAD_EIM_D21__I2C1_SCL |PC , - .gpio_mode =MX6Q_PAD_EIM_D21__GPIO3_IO21 |PC , - .gp =IMX_GPIO_NR (3 ,21 ) - }, - .sda = { - .i2c_mode =MX6Q_PAD_EIM_D28__I2C1_SDA |PC , - .gpio_mode =MX6Q_PAD_EIM_D28__GPIO3_IO28 |PC , - .gp =IMX_GPIO_NR (3 ,28 ) - } -}; - -static struct i2c_pads_info dh6dq_i2c_pad_info1 = { - .scl = { - .i2c_mode =MX6Q_PAD_KEY_COL3__I2C2_SCL |PC , - .gpio_mode =MX6Q_PAD_KEY_COL3__GPIO4_IO12 |PC , - .gp =IMX_GPIO_NR (4 ,12 ) - }, - .sda = { - .i2c_mode =MX6Q_PAD_KEY_ROW3__I2C2_SDA |PC , - .gpio_mode =MX6Q_PAD_KEY_ROW3__GPIO4_IO13 |PC , - .gp =IMX_GPIO_NR (4 ,13 ) - } -}; - -static struct i2c_pads_info dh6dq_i2c_pad_info2 = { - .scl = { - .i2c_mode =MX6Q_PAD_GPIO_3__I2C3_SCL |PC , - .gpio_mode =MX6Q_PAD_GPIO_3__GPIO1_IO03 |PC , - .gp =IMX_GPIO_NR (1 ,3 ) - }, - .sda = { - .i2c_mode =MX6Q_PAD_GPIO_6__I2C3_SDA |PC , - .gpio_mode =MX6Q_PAD_GPIO_6__GPIO1_IO06 |PC , - .gp =IMX_GPIO_NR (1 ,6 ) - } -}; - -int dram_init (void ) -{ - gd->ram_size =imx_ddr_size (); -return 0 ; -} - -/* -* Do not overwrite the console -* Use always serial for U-Boot console -*/ -int overwrite_console (void ) -{ -return 1 ; -} - -#ifdef CONFIG_FEC_MXC -static void eth_phy_reset (void ) -{ -/* Reset PHY */ -gpio_direction_output (IMX_GPIO_NR (5 ,0 ) ,0 ); -udelay (500 ); -gpio_set_value (IMX_GPIO_NR (5 ,0 ),1 ); - -/* Enable VIO */ -gpio_direction_output (IMX_GPIO_NR (1 ,7 ) ,0 ); - -/* -* KSZ9021 PHY needs at least 10 mSec after PHY reset -* is released to stabilize -*/ -mdelay (10 ); -} - -static int setup_fec_clock (void ) -{ -struct iomuxc *iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR ; - -/* set gpr1[21] to select anatop clock */ -clrsetbits_le32 (&iomuxc_regs->gpr[1 ],0x1 <<21 ,0x1 <<21 ); - -return enable_fec_anatop_clock (0 ,ENET_50MHZ ); -} - -int board_eth_init (bd_t *bis) -{ -uint32_t base =IMX_FEC_BASE ; -struct mii_dev *bus =NULL ; -struct phy_device *phydev =NULL ; - -setup_fec_clock (); - -eth_phy_reset (); - - bus =fec_get_miibus (base,-1 ); -if (!bus) -return -EINVAL ; - -/* Scan PHY 0 */ - phydev =phy_find_by_mask (bus,0xf ,PHY_INTERFACE_MODE_RGMII ); -if (!phydev) { -printf ("Ethernet PHY not found!\n" ); -return -EINVAL ; - } - -return fec_probe (bis,-1 , base, bus, phydev); -} -#endif - -#ifdef CONFIG_FSL_ESDHC - -#define USDHC2_CD_GPIO IMX_GPIO_NR(6, 16) -#define USDHC3_CD_GPIO IMX_GPIO_NR(7, 8) - -static struct fsl_esdhc_cfg usdhc_cfg[3 ] = { - {USDHC2_BASE_ADDR }, - {USDHC3_BASE_ADDR }, - {USDHC4_BASE_ADDR }, -}; - -int board_mmc_getcd (struct mmc *mmc) -{ -struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; - -switch (cfg->esdhc_base) { -case USDHC2_BASE_ADDR : -return gpio_get_value (USDHC2_CD_GPIO ); -case USDHC3_BASE_ADDR : -return !gpio_get_value (USDHC3_CD_GPIO ); -case USDHC4_BASE_ADDR : -return 1 ;/* eMMC/uSDHC4 is always present */ - } - -return 0 ; -} - -int board_mmc_init (bd_t *bis) -{ -int i, ret; - -/* -* According to the board_mmc_init() the following map is done: -* (U-Boot device node) (Physical Port) -* mmc0 SD interface -* mmc1 micro SD -* mmc2 eMMC -*/ -gpio_direction_input (USDHC2_CD_GPIO ); -gpio_direction_input (USDHC3_CD_GPIO ); - - usdhc_cfg[0 ].sdhc_clk =mxc_get_clock (MXC_ESDHC2_CLK ); - usdhc_cfg[1 ].sdhc_clk =mxc_get_clock (MXC_ESDHC3_CLK ); - usdhc_cfg[2 ].sdhc_clk =mxc_get_clock (MXC_ESDHC4_CLK ); - -for (i =0 ; i <CONFIG_SYS_FSL_USDHC_NUM ; i++) { - ret =fsl_esdhc_initialize (bis, &usdhc_cfg[i]); -if (ret) -return ret; - } - -return 0 ; -} -#endif - -#ifdef CONFIG_USB_EHCI_MX6 -static void setup_usb (void ) -{ -/* -* Set daisy chain for otg_pin_id on MX6Q. -* For MX6DL, this bit is reserved. -*/ -imx_iomux_set_gpr_register (1 ,13 ,1 ,0 ); -} - -int board_usb_phy_mode (int port) -{ -if (port ==1 ) -return USB_INIT_HOST ; -else -return USB_INIT_DEVICE ; -} - -int board_ehci_power (int port,int on) -{ -switch (port) { -case 0 : -break ; -case 1 : -gpio_direction_output (IMX_GPIO_NR (3 ,31 ), !!on); -break ; -default : -printf ("MXC USB port %d not yet supported\n" , port); -return -EINVAL ; - } - -return 0 ; -} -#endif - -static int setup_dhcom_mac_from_fuse (void ) -{ -unsigned char enetaddr[6 ]; -int ret; - - ret =eth_env_get_enetaddr ("ethaddr" , enetaddr); -if (ret)/* ethaddr is already set */ -return 0 ; - -imx_get_mac_from_fuse (0 , enetaddr); - -if (is_valid_ethaddr (enetaddr)) { -eth_env_set_enetaddr ("ethaddr" , enetaddr); -return 0 ; - } - - ret =i2c_set_bus_num (2 ); -if (ret) { -printf ("Error switching I2C bus!\n" ); -return ret; - } - - ret =i2c_read (EEPROM_I2C_ADDRESS ,0xfa ,0x1 , enetaddr,0x6 ); -if (ret) { -printf ("Error reading configuration EEPROM!\n" ); -return ret; - } - -if (is_valid_ethaddr (enetaddr)) -eth_env_set_enetaddr ("ethaddr" , enetaddr); - -return 0 ; -} - -int board_early_init_f (void ) -{ -#ifdef CONFIG_USB_EHCI_MX6 -setup_usb (); -#endif - -return 0 ; -} - -#ifdef CONFIG_MXC_SPI -int board_spi_cs_gpio (unsigned bus,unsigned cs) -{ -if (bus ==0 && cs ==0 ) -return IMX_GPIO_NR (2 ,30 ); -else -return -1 ; -} -#endif - -int board_init (void ) -{ -struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR ; - -/* address of boot parameters */ - gd->bd->bi_boot_params =PHYS_SDRAM +0x100 ; - -/* Enable eim_slow clocks */ -setbits_le32 (&mxc_ccm->CCGR6,0x1 <<MXC_CCM_CCGR6_EMI_SLOW_OFFSET ); - -#ifdef CONFIG_SYS_I2C_MXC -if (is_mx6dq ()) { -setup_i2c (0 ,CONFIG_SYS_I2C_SPEED ,0x7f , &dh6dq_i2c_pad_info0); -setup_i2c (1 ,CONFIG_SYS_I2C_SPEED ,0x7f , &dh6dq_i2c_pad_info1); -setup_i2c (2 ,CONFIG_SYS_I2C_SPEED ,0x7f , &dh6dq_i2c_pad_info2); - }else { -setup_i2c (0 ,CONFIG_SYS_I2C_SPEED ,0x7f , &dh6sdl_i2c_pad_info0); -setup_i2c (1 ,CONFIG_SYS_I2C_SPEED ,0x7f , &dh6sdl_i2c_pad_info1); -setup_i2c (2 ,CONFIG_SYS_I2C_SPEED ,0x7f , &dh6sdl_i2c_pad_info2); - } -#endif - -#ifdef CONFIG_SATA -setup_sata (); -#endif - -setup_dhcom_mac_from_fuse (); - -return 0 ; -} - -#ifdef CONFIG_CMD_BMODE -static const struct boot_mode board_boot_modes[] = { -/* 4 bit bus width */ - {"sd2" ,MAKE_CFGVAL (0x40 ,0x28 ,0x00 ,0x00 )}, - {"sd3" ,MAKE_CFGVAL (0x40 ,0x30 ,0x00 ,0x00 )}, -/* 8 bit bus width */ - {"emmc" ,MAKE_CFGVAL (0x40 ,0x38 ,0x00 ,0x00 )}, - {NULL ,0 }, -}; -#endif - -#define HW_CODE_BIT_0 IMX_GPIO_NR(2, 19) -#define HW_CODE_BIT_1 IMX_GPIO_NR(6, 6) -#define HW_CODE_BIT_2 IMX_GPIO_NR(2, 16) - -static int board_get_hwcode (void ) -{ -int hw_code; - -gpio_direction_input (HW_CODE_BIT_0 ); -gpio_direction_input (HW_CODE_BIT_1 ); -gpio_direction_input (HW_CODE_BIT_2 ); - -/* HW 100 + HW 200 = 00b; HW 300 = 01b */ - hw_code = ((gpio_get_value (HW_CODE_BIT_2 ) <<2 ) | - (gpio_get_value (HW_CODE_BIT_1 ) <<1 ) | -gpio_get_value (HW_CODE_BIT_0 )) +2 ; - -return hw_code; -} - -int board_late_init (void ) -{ -u32 hw_code; -char buf[16 ]; - - hw_code =board_get_hwcode (); - -switch (get_cpu_type ()) { -case MXC_CPU_MX6SOLO : -snprintf (buf,sizeof (buf),"imx6s-dhcom%1d" , hw_code); -break ; -case MXC_CPU_MX6DL : -snprintf (buf,sizeof (buf),"imx6dl-dhcom%1d" , hw_code); -break ; -case MXC_CPU_MX6D : -snprintf (buf,sizeof (buf),"imx6d-dhcom%1d" , hw_code); -break ; -case MXC_CPU_MX6Q : -snprintf (buf,sizeof (buf),"imx6q-dhcom%1d" , hw_code); -break ; -default : -snprintf (buf,sizeof (buf),"UNKNOWN%1d" , hw_code); -break ; - } - -env_set ("dhcom" , buf); - -#ifdef CONFIG_CMD_BMODE -add_board_boot_modes (board_boot_modes); -#endif -return 0 ; -} - -int checkboard (void ) -{ -puts ("Board: DHCOM i.MX6\n" ); -return 0 ; -}board/dhelectronics/dh_imx6/dh_imx6_spl.c deleted +0
-591@@ -1,591 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* DHCOM DH-iMX6 PDK SPL support -* -* Copyright (C) 2017 Marek Vasut <[email protected]> -*/ - -#include <common.h> -#include <asm/arch/clock.h> -#include <asm/arch/crm_regs.h> -#include <asm/arch/imx-regs.h> -#include <asm/arch/iomux.h> -#include <asm/arch/mx6-ddr.h> -#include <asm/arch/mx6-pins.h> -#include <asm/arch/sys_proto.h> -#include <asm/gpio.h> -#include <asm/mach-imx/boot_mode.h> -#include <asm/mach-imx/iomux-v3.h> -#include <asm/mach-imx/mxc_i2c.h> -#include <asm/io.h> -#include <errno.h> -#include <fuse.h> -#include <fsl_esdhc.h> -#include <i2c.h> -#include <mmc.h> -#include <spl.h> - -#define ENET_PAD_CTRL \ - (PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ - PAD_CTL_HYS) - -#define GPIO_PAD_CTRL \ - (PAD_CTL_HYS | PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm) - -#define SPI_PAD_CTRL \ - (PAD_CTL_HYS | PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ - PAD_CTL_SRE_FAST) - -#define UART_PAD_CTRL \ - (PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ - PAD_CTL_SRE_FAST | PAD_CTL_HYS) - -#define USDHC_PAD_CTRL \ - (PAD_CTL_PUS_47K_UP | PAD_CTL_SPEED_LOW | PAD_CTL_DSE_80ohm | \ - PAD_CTL_SRE_FAST | PAD_CTL_HYS) - -static const struct mx6dq_iomux_ddr_regs dhcom6dq_ddr_ioregs = { - .dram_sdclk_0 =0x00020030 , - .dram_sdclk_1 =0x00020030 , - .dram_cas =0x00020030 , - .dram_ras =0x00020030 , - .dram_reset =0x00020030 , - .dram_sdcke0 =0x00003000 , - .dram_sdcke1 =0x00003000 , - .dram_sdba2 =0x00000000 , - .dram_sdodt0 =0x00003030 , - .dram_sdodt1 =0x00003030 , - .dram_sdqs0 =0x00000030 , - .dram_sdqs1 =0x00000030 , - .dram_sdqs2 =0x00000030 , - .dram_sdqs3 =0x00000030 , - .dram_sdqs4 =0x00000030 , - .dram_sdqs5 =0x00000030 , - .dram_sdqs6 =0x00000030 , - .dram_sdqs7 =0x00000030 , - .dram_dqm0 =0x00020030 , - .dram_dqm1 =0x00020030 , - .dram_dqm2 =0x00020030 , - .dram_dqm3 =0x00020030 , - .dram_dqm4 =0x00020030 , - .dram_dqm5 =0x00020030 , - .dram_dqm6 =0x00020030 , - .dram_dqm7 =0x00020030 , -}; - -static const struct mx6dq_iomux_grp_regs dhcom6dq_grp_ioregs = { - .grp_ddr_type =0x000C0000 , - .grp_ddrmode_ctl =0x00020000 , - .grp_ddrpke =0x00000000 , - .grp_addds =0x00000030 , - .grp_ctlds =0x00000030 , - .grp_ddrmode =0x00020000 , - .grp_b0ds =0x00000030 , - .grp_b1ds =0x00000030 , - .grp_b2ds =0x00000030 , - .grp_b3ds =0x00000030 , - .grp_b4ds =0x00000030 , - .grp_b5ds =0x00000030 , - .grp_b6ds =0x00000030 , - .grp_b7ds =0x00000030 , -}; - -static const struct mx6sdl_iomux_ddr_regs dhcom6sdl_ddr_ioregs = { - .dram_sdclk_0 =0x00020030 , - .dram_sdclk_1 =0x00020030 , - .dram_cas =0x00020030 , - .dram_ras =0x00020030 , - .dram_reset =0x00020030 , - .dram_sdcke0 =0x00003000 , - .dram_sdcke1 =0x00003000 , - .dram_sdba2 =0x00000000 , - .dram_sdodt0 =0x00003030 , - .dram_sdodt1 =0x00003030 , - .dram_sdqs0 =0x00000030 , - .dram_sdqs1 =0x00000030 , - .dram_sdqs2 =0x00000030 , - .dram_sdqs3 =0x00000030 , - .dram_sdqs4 =0x00000030 , - .dram_sdqs5 =0x00000030 , - .dram_sdqs6 =0x00000030 , - .dram_sdqs7 =0x00000030 , - .dram_dqm0 =0x00020030 , - .dram_dqm1 =0x00020030 , - .dram_dqm2 =0x00020030 , - .dram_dqm3 =0x00020030 , - .dram_dqm4 =0x00020030 , - .dram_dqm5 =0x00020030 , - .dram_dqm6 =0x00020030 , - .dram_dqm7 =0x00020030 , -}; - -static const struct mx6sdl_iomux_grp_regs dhcom6sdl_grp_ioregs = { - .grp_ddr_type =0x000C0000 , - .grp_ddrmode_ctl =0x00020000 , - .grp_ddrpke =0x00000000 , - .grp_addds =0x00000030 , - .grp_ctlds =0x00000030 , - .grp_ddrmode =0x00020000 , - .grp_b0ds =0x00000030 , - .grp_b1ds =0x00000030 , - .grp_b2ds =0x00000030 , - .grp_b3ds =0x00000030 , - .grp_b4ds =0x00000030 , - .grp_b5ds =0x00000030 , - .grp_b6ds =0x00000030 , - .grp_b7ds =0x00000030 , -}; - -static const struct mx6_mmdc_calibration dhcom_mmdc_calib_4x4g_1066 = { - .p0_mpwldectrl0 =0x00150019 , - .p0_mpwldectrl1 =0x001C000B , - .p1_mpwldectrl0 =0x00020018 , - .p1_mpwldectrl1 =0x0002000C , - .p0_mpdgctrl0 =0x43140320 , - .p0_mpdgctrl1 =0x03080304 , - .p1_mpdgctrl0 =0x43180320 , - .p1_mpdgctrl1 =0x03100254 , - .p0_mprddlctl =0x4830383C , - .p1_mprddlctl =0x3836323E , - .p0_mpwrdlctl =0x3E444642 , - .p1_mpwrdlctl =0x42344442 , -}; - -static const struct mx6_mmdc_calibration dhcom_mmdc_calib_2x4g_800 = { - .p0_mpwldectrl0 =0x0040003C , - .p0_mpwldectrl1 =0x0032003E , - .p0_mpdgctrl0 =0x42350231 , - .p0_mpdgctrl1 =0x021A0218 , - .p0_mprddlctl =0x4B4B4E49 , - .p0_mpwrdlctl =0x3F3F3035 , -}; - -static const struct mx6_mmdc_calibration dhcom_mmdc_calib_4x2g_1066 = { - .p0_mpwldectrl0 =0x0011000E , - .p0_mpwldectrl1 =0x000E001B , - .p1_mpwldectrl0 =0x00190015 , - .p1_mpwldectrl1 =0x00070018 , - .p0_mpdgctrl0 =0x42720306 , - .p0_mpdgctrl1 =0x026F0266 , - .p1_mpdgctrl0 =0x4273030A , - .p1_mpdgctrl1 =0x02740240 , - .p0_mprddlctl =0x45393B3E , - .p1_mprddlctl =0x403A3747 , - .p0_mpwrdlctl =0x40434541 , - .p1_mpwrdlctl =0x473E4A3B , -}; - -static const struct mx6_mmdc_calibration dhcom_mmdc_calib_4x2g_800 = { - .p0_mpwldectrl0 =0x003A003A , - .p0_mpwldectrl1 =0x0030002F , - .p1_mpwldectrl0 =0x002F0038 , - .p1_mpwldectrl1 =0x00270039 , - .p0_mpdgctrl0 =0x420F020F , - .p0_mpdgctrl1 =0x01760175 , - .p1_mpdgctrl0 =0x41640171 , - .p1_mpdgctrl1 =0x015E0160 , - .p0_mprddlctl =0x45464B4A , - .p1_mprddlctl =0x49484A46 , - .p0_mpwrdlctl =0x40402E32 , - .p1_mpwrdlctl =0x3A3A3231 , -}; - -static const struct mx6_mmdc_calibration dhcom_mmdc_calib_2x2g_800 = { - .p0_mpwldectrl0 =0x0040003C , - .p0_mpwldectrl1 =0x0032003E , - .p0_mpdgctrl0 =0x42350231 , - .p0_mpdgctrl1 =0x021A0218 , - .p0_mprddlctl =0x4B4B4E49 , - .p0_mpwrdlctl =0x3F3F3035 , -}; - -/* -* 2 Gbit DDR3 memory -* - NANYA #NT5CC128M16IP-DII -* - NANYA #NT5CB128M16FP-DII -*/ -static const struct mx6_ddr3_cfg dhcom_mem_ddr_2g = { - .mem_speed =1600 , - .density =2 , - .width =16 , - .banks =8 , - .rowaddr =14 , - .coladdr =10 , - .pagesz =2 , - .trcd =1375 , - .trcmin =5863 , - .trasmin =3750 , -}; - -/* -* 4 Gbit DDR3 memory -* - Intelligent Memory #IM4G16D3EABG-125I -*/ -static const struct mx6_ddr3_cfg dhcom_mem_ddr_4g = { - .mem_speed =1600 , - .density =4 , - .width =16 , - .banks =8 , - .rowaddr =15 , - .coladdr =10 , - .pagesz =2 , - .trcd =1375 , - .trcmin =4875 , - .trasmin =3500 , -}; - -/* DDR3 64bit */ -static const struct mx6_ddr_sysinfo dhcom_ddr_64bit = { -/* width of data bus:0=16,1=32,2=64 */ - .dsize =2 , - .cs_density =32 , - .ncs =1 ,/* single chip select */ - .cs1_mirror =1 , - .rtt_wr =1 ,/* DDR3_RTT_60_OHM, RTT_Wr = RZQ/4 */ - .rtt_nom =1 ,/* DDR3_RTT_60_OHM, RTT_Nom = RZQ/4 */ - .walat =1 ,/* Write additional latency */ - .ralat =5 ,/* Read additional latency */ - .mif3_mode =3 ,/* Command prediction working mode */ - .bi_on =1 ,/* Bank interleaving enabled */ - .sde_to_rst =0x10 ,/* 14 cycles, 200us (JEDEC default) */ - .rst_to_cke =0x23 ,/* 33 cycles, 500us (JEDEC default) */ - .refsel =1 ,/* Refresh cycles at 32KHz */ - .refr =3 ,/* 4 refresh commands per refresh cycle */ -}; - -/* DDR3 32bit */ -static const struct mx6_ddr_sysinfo dhcom_ddr_32bit = { -/* width of data bus:0=16,1=32,2=64 */ - .dsize =1 , - .cs_density =32 , - .ncs =1 ,/* single chip select */ - .cs1_mirror =1 , - .rtt_wr =1 ,/* DDR3_RTT_60_OHM, RTT_Wr = RZQ/4 */ - .rtt_nom =1 ,/* DDR3_RTT_60_OHM, RTT_Nom = RZQ/4 */ - .walat =1 ,/* Write additional latency */ - .ralat =5 ,/* Read additional latency */ - .mif3_mode =3 ,/* Command prediction working mode */ - .bi_on =1 ,/* Bank interleaving enabled */ - .sde_to_rst =0x10 ,/* 14 cycles, 200us (JEDEC default) */ - .rst_to_cke =0x23 ,/* 33 cycles, 500us (JEDEC default) */ - .refsel =1 ,/* Refresh cycles at 32KHz */ - .refr =3 ,/* 4 refresh commands per refresh cycle */ -}; - -static void ccgr_init (void ) -{ -struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR ; - -writel (0x00C03F3F , &ccm->CCGR0); -writel (0x0030FC03 , &ccm->CCGR1); -writel (0x0FFFC000 , &ccm->CCGR2); -writel (0x3FF00000 , &ccm->CCGR3); -writel (0x00FFF300 , &ccm->CCGR4); -writel (0x0F0000C3 , &ccm->CCGR5); -writel (0x000003FF , &ccm->CCGR6); -} - -/* Board ID */ -static iomux_v3_cfg_t const hwcode_pads[] = { -IOMUX_PADS (PAD_EIM_A19__GPIO2_IO19 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_EIM_A23__GPIO6_IO06 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_EIM_A22__GPIO2_IO16 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -}; - -static void setup_iomux_boardid (void ) -{ -/* HW code pins: Setup alternate function and configure pads */ -SETUP_IOMUX_PADS (hwcode_pads); -} - -/* DDR Code */ -static iomux_v3_cfg_t const ddrcode_pads[] = { -IOMUX_PADS (PAD_EIM_A16__GPIO2_IO22 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_EIM_A17__GPIO2_IO21 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -}; - -static void setup_iomux_ddrcode (void ) -{ -/* ddr code pins */ -SETUP_IOMUX_PADS (ddrcode_pads); -} - -enum dhcom_ddr3_code { -DH_DDR3_SIZE_256MIB =0x00 , -DH_DDR3_SIZE_512MIB =0x01 , -DH_DDR3_SIZE_1GIB =0x02 , -DH_DDR3_SIZE_2GIB =0x03 -}; - -#define DDR3_CODE_BIT_0 IMX_GPIO_NR(2, 22) -#define DDR3_CODE_BIT_1 IMX_GPIO_NR(2, 21) - -enum dhcom_ddr3_code dhcom_get_ddr3_code (void ) -{ -enum dhcom_ddr3_code ddr3_code; - -gpio_request (DDR3_CODE_BIT_0 ,"DDR3_CODE_BIT_0" ); -gpio_request (DDR3_CODE_BIT_1 ,"DDR3_CODE_BIT_1" ); - -gpio_direction_input (DDR3_CODE_BIT_0 ); -gpio_direction_input (DDR3_CODE_BIT_1 ); - -/* 256MB = 0b00; 512MB = 0b01; 1GB = 0b10; 2GB = 0b11 */ - ddr3_code = (!!gpio_get_value (DDR3_CODE_BIT_1 ) <<1 ) - | (!!gpio_get_value (DDR3_CODE_BIT_0 )); - -return ddr3_code; -} - -/* GPIO */ -static iomux_v3_cfg_t const gpio_pads[] = { -IOMUX_PADS (PAD_GPIO_2__GPIO1_IO02 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_GPIO_4__GPIO1_IO04 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_GPIO_5__GPIO1_IO05 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_CSI0_DAT17__GPIO6_IO03 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_GPIO_19__GPIO4_IO05 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_DI0_PIN4__GPIO4_IO20 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_EIM_D27__GPIO3_IO27 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_KEY_ROW0__GPIO4_IO07 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_KEY_COL1__GPIO4_IO08 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_NANDF_CS1__GPIO6_IO14 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_NANDF_CS2__GPIO6_IO15 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_KEY_ROW1__GPIO4_IO09 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT5__GPIO7_IO00 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT4__GPIO7_IO01 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_CSI0_VSYNC__GPIO5_IO21 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_GPIO_18__GPIO7_IO13 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_SD1_CMD__GPIO1_IO18 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_SD1_DAT0__GPIO1_IO16 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_SD1_DAT1__GPIO1_IO17 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_SD1_DAT2__GPIO1_IO19 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_SD1_CLK__GPIO1_IO20 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_CSI0_PIXCLK__GPIO5_IO18 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -IOMUX_PADS (PAD_CSI0_MCLK__GPIO5_IO19 |MUX_PAD_CTRL (GPIO_PAD_CTRL )), -}; - -static void setup_iomux_gpio (void ) -{ -SETUP_IOMUX_PADS (gpio_pads); -} - -/* Ethernet */ -static iomux_v3_cfg_t const enet_pads[] = { -IOMUX_PADS (PAD_ENET_MDIO__ENET_MDIO |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_ENET_MDC__ENET_MDC |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_ENET_TX_EN__ENET_TX_EN |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_ENET_TXD0__ENET_TX_DATA0 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_ENET_TXD1__ENET_TX_DATA1 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_GPIO_16__ENET_REF_CLK |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_ENET_RX_ER__ENET_RX_ER |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_ENET_RXD0__ENET_RX_DATA0 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_ENET_RXD1__ENET_RX_DATA1 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_ENET_CRS_DV__ENET_RX_EN |MUX_PAD_CTRL (ENET_PAD_CTRL )), -/* SMSC PHY Reset */ -IOMUX_PADS (PAD_EIM_WAIT__GPIO5_IO00 |MUX_PAD_CTRL (NO_PAD_CTRL )), -/* ENET_VIO_GPIO */ -IOMUX_PADS (PAD_GPIO_7__GPIO1_IO07 |MUX_PAD_CTRL (NO_PAD_CTRL )), -/* ENET_Interrupt - (not used) */ -IOMUX_PADS (PAD_RGMII_RD0__GPIO6_IO25 |MUX_PAD_CTRL (NO_PAD_CTRL )), -}; - -static void setup_iomux_enet (void ) -{ -SETUP_IOMUX_PADS (enet_pads); -} - -/* SD interface */ -static iomux_v3_cfg_t const usdhc2_pads[] = { -IOMUX_PADS (PAD_SD2_DAT0__SD2_DATA0 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_DAT1__SD2_DATA1 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_DAT2__SD2_DATA2 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_DAT3__SD2_DATA3 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_CLK__SD2_CLK |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_CMD__SD2_CMD |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_NANDF_CS3__GPIO6_IO16 |MUX_PAD_CTRL (NO_PAD_CTRL )),/* CD */ -}; - -/* onboard microSD */ -static iomux_v3_cfg_t const usdhc3_pads[] = { -IOMUX_PADS (PAD_SD3_DAT0__SD3_DATA0 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT1__SD3_DATA1 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT2__SD3_DATA2 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT3__SD3_DATA3 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_CLK__SD3_CLK |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_CMD__SD3_CMD |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_RST__GPIO7_IO08 |MUX_PAD_CTRL (NO_PAD_CTRL )),/* CD */ -}; - -/* eMMC */ -static iomux_v3_cfg_t const usdhc4_pads[] = { -IOMUX_PADS (PAD_SD4_DAT0__SD4_DATA0 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_DAT1__SD4_DATA1 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_DAT2__SD4_DATA2 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_DAT3__SD4_DATA3 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_DAT4__SD4_DATA4 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_DAT5__SD4_DATA5 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_DAT6__SD4_DATA6 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_DAT7__SD4_DATA7 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_CLK__SD4_CLK |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_CMD__SD4_CMD |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -}; - -/* SD */ -static void setup_iomux_sd (void ) -{ -SETUP_IOMUX_PADS (usdhc2_pads); -SETUP_IOMUX_PADS (usdhc3_pads); -SETUP_IOMUX_PADS (usdhc4_pads); -} - -/* SPI */ -static iomux_v3_cfg_t const ecspi1_pads[] = { -/* SS0 */ -IOMUX_PADS (PAD_EIM_EB2__GPIO2_IO30 |MUX_PAD_CTRL (SPI_PAD_CTRL )), -IOMUX_PADS (PAD_EIM_D17__ECSPI1_MISO |MUX_PAD_CTRL (SPI_PAD_CTRL )), -IOMUX_PADS (PAD_EIM_D18__ECSPI1_MOSI |MUX_PAD_CTRL (SPI_PAD_CTRL )), -IOMUX_PADS (PAD_EIM_D16__ECSPI1_SCLK |MUX_PAD_CTRL (SPI_PAD_CTRL )), -}; - -static void setup_iomux_spi (void ) -{ -SETUP_IOMUX_PADS (ecspi1_pads); -} - -int board_spi_cs_gpio (unsigned bus,unsigned cs) -{ -if (bus ==0 && cs ==0 ) -return IMX_GPIO_NR (2 ,30 ); -else -return -1 ; -} - -/* UART */ -static iomux_v3_cfg_t const uart1_pads[] = { -IOMUX_PADS (PAD_SD3_DAT7__UART1_TX_DATA |MUX_PAD_CTRL (UART_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT6__UART1_RX_DATA |MUX_PAD_CTRL (UART_PAD_CTRL )), -}; - -static void setup_iomux_uart (void ) -{ -SETUP_IOMUX_PADS (uart1_pads); -} - -/* USB */ -static iomux_v3_cfg_t const usb_pads[] = { -IOMUX_PADS (PAD_GPIO_1__USB_OTG_ID |MUX_PAD_CTRL (NO_PAD_CTRL )), -IOMUX_PADS (PAD_EIM_D31__GPIO3_IO31 |MUX_PAD_CTRL (NO_PAD_CTRL )), -}; - -static void setup_iomux_usb (void ) -{ -SETUP_IOMUX_PADS (usb_pads); -} - - -/* DRAM */ -static void dhcom_spl_dram_init (void ) -{ -enum dhcom_ddr3_code ddr3_code =dhcom_get_ddr3_code (); - -if (is_mx6dq ()) { -mx6dq_dram_iocfg (64 , &dhcom6dq_ddr_ioregs, - &dhcom6dq_grp_ioregs); -switch (ddr3_code) { -default : -printf ("imx6qd: unsupported ddr3 code %d\n" , ddr3_code); -printf (" choosing 1024 MB\n" ); -/* fall through */ -case DH_DDR3_SIZE_1GIB : -mx6_dram_cfg (&dhcom_ddr_64bit, - &dhcom_mmdc_calib_4x2g_1066, - &dhcom_mem_ddr_2g); -break ; -case DH_DDR3_SIZE_2GIB : -mx6_dram_cfg (&dhcom_ddr_64bit, - &dhcom_mmdc_calib_4x4g_1066, - &dhcom_mem_ddr_4g); -break ; - } - -/* Perform DDR DRAM calibration */ -udelay (100 ); -mmdc_do_dqs_calibration (&dhcom_ddr_64bit); - - }else if (is_cpu_type (MXC_CPU_MX6DL )) { -mx6sdl_dram_iocfg (64 , &dhcom6sdl_ddr_ioregs, - &dhcom6sdl_grp_ioregs); -switch (ddr3_code) { -default : -printf ("imx6dl: unsupported ddr3 code %d\n" , ddr3_code); -printf (" choosing 1024 MB\n" ); -/* fall through */ -case DH_DDR3_SIZE_1GIB : -mx6_dram_cfg (&dhcom_ddr_64bit, - &dhcom_mmdc_calib_4x2g_800, - &dhcom_mem_ddr_2g); -break ; - } - -/* Perform DDR DRAM calibration */ -udelay (100 ); -mmdc_do_dqs_calibration (&dhcom_ddr_64bit); - - }else if (is_cpu_type (MXC_CPU_MX6SOLO )) { -mx6sdl_dram_iocfg (32 , &dhcom6sdl_ddr_ioregs, - &dhcom6sdl_grp_ioregs); -switch (ddr3_code) { -default : -printf ("imx6s: unsupported ddr3 code %d\n" , ddr3_code); -printf (" choosing 512 MB\n" ); -/* fall through */ -case DH_DDR3_SIZE_512MIB : -mx6_dram_cfg (&dhcom_ddr_32bit, - &dhcom_mmdc_calib_2x2g_800, - &dhcom_mem_ddr_2g); -break ; -case DH_DDR3_SIZE_1GIB : -mx6_dram_cfg (&dhcom_ddr_32bit, - &dhcom_mmdc_calib_2x4g_800, - &dhcom_mem_ddr_4g); -break ; - } - -/* Perform DDR DRAM calibration */ -udelay (100 ); -mmdc_do_dqs_calibration (&dhcom_ddr_32bit); - } -} - -void board_init_f (ulong dummy) -{ -/* setup AIPS and disable watchdog */ -arch_cpu_init (); - -ccgr_init (); -gpr_init (); - -/* setup GP timer */ -timer_init (); - -setup_iomux_boardid (); -setup_iomux_ddrcode (); -setup_iomux_gpio (); -setup_iomux_enet (); -setup_iomux_sd (); -setup_iomux_spi (); -setup_iomux_uart (); -setup_iomux_usb (); - -/* UART clocks enabled and gd valid - init serial console */ -preloader_console_init (); - -/* DDR3 initialization */ -dhcom_spl_dram_init (); - -/* Clear the BSS. */ -memset (__bss_start,0 , __bss_end - __bss_start); - -/* load/boot image from boot device */ -board_init_r (NULL ,0 ); -}configs/dh_imx6_defconfig deleted +0
-63@@ -1,63 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 -CONFIG_SPL_GPIO_SUPPORT=y -CONFIG_SPL_LIBCOMMON_SUPPORT=y -CONFIG_SPL_LIBGENERIC_SUPPORT=y -CONFIG_MX6_DDRCAL=y -CONFIG_TARGET_DHCOMIMX6=y -CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_SPL=y -CONFIG_SPL_SPI_FLASH_SUPPORT=y -CONFIG_SPL_SPI_SUPPORT=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=1 -CONFIG_FIT=y -CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg" -CONFIG_BOOTDELAY=3 -# CONFIG_USE_BOOTCOMMAND is not set -CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_SPI_LOAD=y -CONFIG_SPL_WATCHDOG_SUPPORT=y -CONFIG_CMD_MEMTEST=y -CONFIG_CMD_UNZIP=y -CONFIG_CMD_DFU=y -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_GPIO=y -CONFIG_CMD_I2C=y -CONFIG_CMD_MMC=y -CONFIG_CMD_SATA=y -CONFIG_CMD_SF=y -CONFIG_CMD_USB=y -CONFIG_CMD_USB_MASS_STORAGE=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_TIME=y -CONFIG_CMD_EXT4_WRITE=y -CONFIG_ENV_IS_IN_SPI_FLASH=y -CONFIG_DWC_AHSATA=y -CONFIG_BOOTCOUNT_LIMIT=y -CONFIG_SYS_BOOTCOUNT_ADDR=0x00900000 -CONFIG_FSL_ESDHC=y -CONFIG_SPI_FLASH=y -CONFIG_SPI_FLASH_GIGADEVICE=y -CONFIG_SPI_FLASH_MACRONIX=y -CONFIG_SPI_FLASH_SPANSION=y -CONFIG_SPI_FLASH_WINBOND=y -CONFIG_PHYLIB=y -CONFIG_PHY_MICREL=y -CONFIG_PHY_MICREL_KSZ90X1=y -CONFIG_FEC_MXC=y -CONFIG_MII=y -CONFIG_SPI=y -CONFIG_MXC_SPI=y -CONFIG_USB=y -CONFIG_USB_STORAGE=y -CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="dh" -CONFIG_USB_GADGET_VENDOR_NUM=0x0525 -CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 -CONFIG_CI_UDC=y -CONFIG_USB_GADGET_DOWNLOAD=y -CONFIG_IMX_WATCHDOG=y -CONFIG_OF_LIBFDT=yinclude/configs/dh_imx6.h deleted +0
-178@@ -1,178 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* DHCOM DH-iMX6 PDK board configuration -* -* Copyright (C) 2017 Marek Vasut <[email protected]> -*/ - -#ifndef __DH_IMX6_CONFIG_H -#define __DH_IMX6_CONFIG_H - -#include <asm/arch/imx-regs.h> - -#include "mx6_common.h" - -/* -* SPI NOR layout: -* 0x00_0000-0x00_ffff ... U-Boot SPL -* 0x01_0000-0x0f_ffff ... U-Boot -* 0x10_0000-0x10_ffff ... U-Boot env #1 -* 0x11_0000-0x11_ffff ... U-Boot env #2 -* 0x12_0000-0x1f_ffff ... UNUSED -*/ - -/* SPL */ -#include "imx6_spl.h" /* common IMX6 SPL configuration */ -#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x11400 -#define CONFIG_SPL_TARGET "u-boot-with-spl.imx" - -/* Miscellaneous configurable options */ - -#define CONFIG_CMDLINE_TAG -#define CONFIG_SETUP_MEMORY_TAGS -#define CONFIG_INITRD_TAG -#define CONFIG_REVISION_TAG - -#define CONFIG_BZIP2 - -/* Size of malloc() pool */ -#define CONFIG_SYS_MALLOC_LEN (4 * SZ_1M) - -/* Bootcounter */ -#define CONFIG_SYS_BOOTCOUNT_BE - -/* FEC ethernet */ -#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RMII -#define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0 -#define CONFIG_ARP_TIMEOUT 200UL - -/* Fuses */ -#ifdef CONFIG_CMD_FUSE -#define CONFIG_MXC_OCOTP -#endif - -/* I2C Configs */ -#define CONFIG_SYS_I2C -#define CONFIG_SYS_I2C_MXC -#define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */ -#define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */ -#define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */ -#define CONFIG_SYS_I2C_SPEED 100000 - -/* MMC Configs */ -#define CONFIG_FSL_USDHC -#define CONFIG_SYS_FSL_ESDHC_ADDR 0 -#define CONFIG_SYS_FSL_USDHC_NUM 3 -#define CONFIG_SYS_MMC_ENV_DEV 2/* 1 = SDHC3, 2 = SDHC4 (eMMC) */ - -/* SATA Configs */ -#ifdef CONFIG_CMD_SATA -#define CONFIG_SYS_SATA_MAX_DEVICE 1 -#define CONFIG_DWC_AHSATA_PORT_ID 0 -#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR -#define CONFIG_LBA48 -#endif - -/* SPI Flash Configs */ -#ifdef CONFIG_CMD_SF -#define CONFIG_SF_DEFAULT_BUS 0 -#define CONFIG_SF_DEFAULT_CS 0 -#define CONFIG_SF_DEFAULT_SPEED 25000000 -#define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0) -#endif - -/* UART */ -#define CONFIG_MXC_UART -#define CONFIG_MXC_UART_BASE UART1_BASE -#define CONFIG_BAUDRATE 115200 - -/* USB Configs */ -#ifdef CONFIG_CMD_USB -#define CONFIG_EHCI_HCD_INIT_AFTER_RESET -#define CONFIG_USB_HOST_ETHER -#define CONFIG_USB_ETHER_ASIX -#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) -#define CONFIG_MXC_USB_FLAGS 0 -#define CONFIG_USB_MAX_CONTROLLER_COUNT 2/* Enabled USB controller number */ - -/* USB Gadget (DFU, UMS) */ -#if defined(CONFIG_CMD_DFU ) || defined(CONFIG_CMD_USB_MASS_STORAGE ) -#define CONFIG_SYS_DFU_DATA_BUF_SIZE (16 * 1024 * 1024) -#define DFU_DEFAULT_POLL_TIMEOUT 300 - -/* USB IDs */ -#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525 -#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5 -#endif -#endif - -/* Watchdog */ -#define CONFIG_WATCHDOG_TIMEOUT_MSECS 60000 - -/* allow to overwrite serial and ethaddr */ -#define CONFIG_ENV_OVERWRITE - -#define CONFIG_LOADADDR 0x12000000 -#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR - -#ifndef CONFIG_SPL_BUILD -#define CONFIG_EXTRA_ENV_SETTINGS \ - "console=ttymxc0,115200\0" \ - "fdt_addr=0x18000000\0" \ - "fdt_high=0xffffffff\0" \ - "initrd_high=0xffffffff\0" \ - "kernel_addr_r=0x10008000\0" \ - "fdt_addr_r=0x13000000\0" \ - "ramdisk_addr_r=0x18000000\0" \ - "scriptaddr=0x14000000\0" \ - "fdtfile=imx6q-dhcom-pdk2.dtb\0"\ - BOOTENV - -#define CONFIG_BOOTCOMMAND "run distro_bootcmd" - -#define BOOT_TARGET_DEVICES (func) \ - func(MMC, mmc, 0) \ - func(MMC, mmc, 2) \ - func(USB, usb, 1) \ - func(SATA, sata, 0) \ - func(DHCP, dhcp, na) - -#include <config_distro_bootcmd.h> -#endif - -/* Physical Memory Map */ -#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR - -#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM -#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR -#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE - -#define CONFIG_SYS_INIT_SP_OFFSET \ - (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) - -#define CONFIG_SYS_INIT_SP_ADDR \ - (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) - -#define CONFIG_SYS_MEMTEST_START 0x10000000 -#define CONFIG_SYS_MEMTEST_END 0x20000000 -#define CONFIG_SYS_MEMTEST_SCRATCH 0x10800000 - -/* Environment */ -#define CONFIG_ENV_SIZE (16 * 1024) -#define CONFIG_SYS_REDUNDAND_ENVIRONMENT - -#if defined(CONFIG_ENV_IS_IN_SPI_FLASH ) -#define CONFIG_ENV_OFFSET (1024 * 1024) -#define CONFIG_ENV_SECT_SIZE (64 * 1024) -#define CONFIG_ENV_OFFSET_REDUND \ - (CONFIG_ENV_OFFSET + CONFIG_ENV_SECT_SIZE) -#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE -#define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS -#define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS -#define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE -#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED -#endif - -#endif /* __DH_IMX6_CONFIG_H */
PATCH 62/93 arm: Remove dh_imx6 board
Hi Ludwig,
Quoted 9 lines · Ludwig Zenz
Quoted 2 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Hi Simon,
CONFIG_DM_BLKdoes not exist. Did you meanCONFIG_BLK?
Yes that's right.
Quoted 2 lines
I didn't know about any deadline or necessary change. I will have a look at it.
Please do look at the release emails for each release. These typically have useful information for maintainers.
I am going to add a Makefile warning.
Quoted 2 lines
NAK. The board is used.
OK, I look forward to the patch!
Regards,
Simon
PATCH 63/93 arm: Remove vinco board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-at91/Kconfig | 1 - board/l+g/vinco/Kconfig | 12 -- board/l+g/vinco/MAINTAINERS | 6 - board/l+g/vinco/Makefile | 1 - board/l+g/vinco/vinco.c | 212 ------------------------------------ configs/vinco_defconfig | 40 ------- include/configs/vinco.h | 118 -------------------- 7 files changed, 390 deletions(-) delete mode 100644 board/l+g/vinco/Kconfig delete mode 100644 board/l+g/vinco/MAINTAINERS delete mode 100644 board/l+g/vinco/Makefile delete mode 100644 board/l+g/vinco/vinco.c delete mode 100644 configs/vinco_defconfig delete mode 100644 include/configs/vinco.h
arch/arm/mach-at91/Kconfig +0 -1
@@ -281,7 +281,6 @@ source "board/atmel/sama5d4ek/Kconfig" source "board/calao/usb_a9263/Kconfig" source "board/egnite/ethernut5/Kconfig" source "board/esd/meesc/Kconfig" -source "board/l+g/vinco/Kconfig" source "board/mini-box/picosam9g45/Kconfig" source "board/ronetix/pm9261/Kconfig" source "board/ronetix/pm9263/Kconfig"
board/l+g/vinco/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_VINCO - -config SYS_BOARD - default "vinco" - -config SYS_VENDOR - default "l+g" - -config SYS_CONFIG_NAME - default "vinco" - -endif
board/l+g/vinco/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -VInCo Platform -M: Gregory CLEMENT <[email protected]> -S: Maintained -F: board/l+g/vinco -F: include/configs/vinco.h -F: configs/vinco_defconfig
board/l+g/vinco/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-y += vinco.o
board/l+g/vinco/vinco.c deleted +0 -212
212 lines not on this page · raw message
configs/vinco_defconfig deleted +0 -40
@@ -1,40 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x20f00000 -CONFIG_TARGET_VINCO=y -CONFIG_ENV_VARS_UBOOT_CONFIG=y -CONFIG_NR_DRAM_BANKS=1 -CONFIG_SPI_BOOT=y -CONFIG_BOOTDELAY=3 -CONFIG_USE_BOOTARGS=y -CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk rw root=/dev/mmcblk0p2 rootfstype=ext4 rootwait quiet lpj=1990656" -# CONFIG_DISPLAY_BOARDINFO is not set -CONFIG_BOARD_EARLY_INIT_F=y -CONFIG_HUSH_PARSER=y -CONFIG_SYS_PROMPT="vinco => " -CONFIG_CMD_BOOTZ=y -# CONFIG_CMD_IMI is not set -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_GPT=y -# CONFIG_CMD_LOADS is not set -CONFIG_CMD_MMC=y -CONFIG_CMD_SF=y -CONFIG_CMD_USB=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_MII=y -CONFIG_CMD_PING=y -CONFIG_CMD_FAT=y -CONFIG_OF_CONTROL=y -CONFIG_DEFAULT_DEVICE_TREE="at91-vinco" -CONFIG_ENV_IS_IN_SPI_FLASH=y -CONFIG_SPI_FLASH=y -CONFIG_ETH_DESIGNWARE=y -CONFIG_USB=y -CONFIG_USB_EHCI_HCD=y -CONFIG_USB_STORAGE=y -CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="L+G VInCo" -CONFIG_USB_GADGET_ATMEL_USBA=y -CONFIG_USB_ETHER=y -CONFIG_USB_HOST_ETHER=y -CONFIG_USB_ETHER_SMSC95XX=y
include/configs/vinco.h deleted +0 -118
118 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 64/93 arm: Remove ls1021atwr_sdcard_ifc_SECURE_BOOT board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/Kconfig | 1 - board/freescale/ls1021atwr/Kconfig | 17 - board/freescale/ls1021atwr/MAINTAINERS | 15 - board/freescale/ls1021atwr/Makefile | 9 - board/freescale/ls1021atwr/README | 115 --- board/freescale/ls1021atwr/dcu.c | 46 -- board/freescale/ls1021atwr/ls1021atwr.c | 764 ------------------ board/freescale/ls1021atwr/ls102xa_pbi.cfg | 12 - .../ls1021atwr/ls102xa_rcw_sd_ifc.cfg | 8 - .../ls1021atwr/ls102xa_rcw_sd_qspi.cfg | 8 - board/freescale/ls1021atwr/psci.S | 24 - configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 56 -- configs/ls1021atwr_nor_defconfig | 59 -- configs/ls1021atwr_nor_lpuart_defconfig | 57 -- configs/ls1021atwr_qspi_defconfig | 60 -- ...s1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 70 -- configs/ls1021atwr_sdcard_ifc_defconfig | 67 -- configs/ls1021atwr_sdcard_qspi_defconfig | 70 -- include/configs/ls1021atwr.h | 505 ------------ 19 files changed, 1963 deletions(-) delete mode 100644 board/freescale/ls1021atwr/Kconfig delete mode 100644 board/freescale/ls1021atwr/MAINTAINERS delete mode 100644 board/freescale/ls1021atwr/Makefile delete mode 100644 board/freescale/ls1021atwr/README delete mode 100644 board/freescale/ls1021atwr/dcu.c delete mode 100644 board/freescale/ls1021atwr/ls1021atwr.c delete mode 100644 board/freescale/ls1021atwr/ls102xa_pbi.cfg delete mode 100644 board/freescale/ls1021atwr/ls102xa_rcw_sd_ifc.cfg delete mode 100644 board/freescale/ls1021atwr/ls102xa_rcw_sd_qspi.cfg delete mode 100644 board/freescale/ls1021atwr/psci.S delete mode 100644 configs/ls1021atwr_nor_SECURE_BOOT_defconfig delete mode 100644 configs/ls1021atwr_nor_defconfig delete mode 100644 configs/ls1021atwr_nor_lpuart_defconfig delete mode 100644 configs/ls1021atwr_qspi_defconfig delete mode 100644 configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig delete mode 100644 configs/ls1021atwr_sdcard_ifc_defconfig delete mode 100644 configs/ls1021atwr_sdcard_qspi_defconfig delete mode 100644 include/configs/ls1021atwr.h
arch/arm/Kconfig +0 -1
@@ -1508,7 +1508,6 @@ source "board/freescale/ls2080ardb/Kconfig" source "board/freescale/ls1088a/Kconfig" source "board/freescale/ls1021aqds/Kconfig" source "board/freescale/ls1043aqds/Kconfig" -source "board/freescale/ls1021atwr/Kconfig" source "board/freescale/ls1021aiot/Kconfig" source "board/freescale/ls1046aqds/Kconfig" source "board/freescale/ls1012aqds/Kconfig"
board/freescale/ls1021atwr/Kconfig deleted +0 -17
@@ -1,17 +0,0 @@ -if TARGET_LS1021ATWR - -config SYS_BOARD - default "ls1021atwr" - -config SYS_VENDOR - default "freescale" - -config SYS_SOC - default "ls102xa" - -config SYS_CONFIG_NAME - default "ls1021atwr" - -source "board/freescale/common/Kconfig" - -endif
board/freescale/ls1021atwr/MAINTAINERS deleted +0 -15
@@ -1,15 +0,0 @@ -LS1021ATWR BOARD -M: Alison Wang <[email protected]> -S: Maintained -F: board/freescale/ls1021atwr/ -F: include/configs/ls1021atwr.h -F: configs/ls1021atwr_nor_defconfig -F: configs/ls1021atwr_nor_SECURE_BOOT_defconfig -F: configs/ls1021atwr_nor_lpuart_defconfig -F: configs/ls1021atwr_sdcard_ifc_defconfig -F: configs/ls1021atwr_sdcard_qspi_defconfig -F: configs/ls1021atwr_qspi_defconfig - -M: Sumit Garg <[email protected]> -S: Maintained -F: configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
board/freescale/ls1021atwr/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# -# Copyright 2014 Freescale Semiconductor, Inc. -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += ls1021atwr.o -obj-$(CONFIG_VIDEO_FSL_DCU_FB) += dcu.o -obj-$(CONFIG_ARMV7_PSCI) += psci.o
board/freescale/ls1021atwr/README deleted +0 -115
115 lines not on this page · raw message
board/freescale/ls1021atwr/dcu.c deleted +0 -46
46 lines not on this page · raw message
board/freescale/ls1021atwr/ls1021atwr.c deleted +0 -764
764 lines not on this page · raw message
board/freescale/ls1021atwr/ls102xa_pbi.cfg deleted +0 -12
@@ -1,12 +0,0 @@ -#PBI commands - -09570200 ffffffff -09570158 00000300 -8940007c 21f47300 - -#Configure Scratch register -09ee0200 10000000 -#Configure alternate space -09570158 00001000 -#Flush PBL data -096100c0 000FFFFF
board/freescale/ls1021atwr/ls102xa_rcw_sd_ifc.cfg deleted +0 -8
@@ -1,8 +0,0 @@ -#PBL preamble and RCW header -aa55aa55 01ee0100 - -#enable IFC, disable QSPI and DSPI -0608000c 00000000 00000000 00000000 -30000000 00007900 60040a00 21046000 -00000000 00000000 00000000 20000000 -00080000 881b7340 00000000 00000000
board/freescale/ls1021atwr/ls102xa_rcw_sd_qspi.cfg deleted +0 -8
@@ -1,8 +0,0 @@ -#PBL preamble and RCW header -aa55aa55 01ee0100 - -#disable IFC, enable QSPI and DSPI -0608000c 00000000 00000000 00000000 -30000000 00007900 60040a00 21046000 -00000000 00000000 00000000 20000000 -20024800 881b7340 00000000 00000000
board/freescale/ls1021atwr/psci.S deleted +0 -24
@@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright 2016 NXP Semiconductor. - * Author: Wang Dongsheng <[email protected]> - */ - -#include <config.h> -#include <linux/linkage.h> - -#include <asm/armv7.h> -#include <asm/psci.h> - - .pushsection ._secure.text, "ax" - - .arch_extension sec - - .align 5 - -.globl psci_system_off -psci_system_off: -1: wfi - b 1b - - .popsection
configs/ls1021atwr_nor_SECURE_BOOT_defconfig deleted +0 -56
56 lines not on this page · raw message
configs/ls1021atwr_nor_defconfig deleted +0 -59
59 lines not on this page · raw message
configs/ls1021atwr_nor_lpuart_defconfig deleted +0 -57
57 lines not on this page · raw message
configs/ls1021atwr_qspi_defconfig deleted +0 -60
60 lines not on this page · raw message
configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig deleted +0 -70
70 lines not on this page · raw message
configs/ls1021atwr_sdcard_ifc_defconfig deleted +0 -67
67 lines not on this page · raw message
configs/ls1021atwr_sdcard_qspi_defconfig deleted +0 -70
70 lines not on this page · raw message
include/configs/ls1021atwr.h deleted +0 -505
505 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 65/93 arm: Remove mx6cuboxi board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/solidrun/mx6cuboxi/Kconfig | 12 - board/solidrun/mx6cuboxi/MAINTAINERS | 6 - board/solidrun/mx6cuboxi/Makefile | 7 - board/solidrun/mx6cuboxi/README | 21 - board/solidrun/mx6cuboxi/mx6cuboxi.c | 857 --------------------------- configs/mx6cuboxi_defconfig | 43 -- include/configs/mx6cuboxi.h | 149 ----- 8 files changed, 1096 deletions(-) delete mode 100644 board/solidrun/mx6cuboxi/Kconfig delete mode 100644 board/solidrun/mx6cuboxi/MAINTAINERS delete mode 100644 board/solidrun/mx6cuboxi/Makefile delete mode 100644 board/solidrun/mx6cuboxi/README delete mode 100644 board/solidrun/mx6cuboxi/mx6cuboxi.c delete mode 100644 configs/mx6cuboxi_defconfig delete mode 100644 include/configs/mx6cuboxi.h
arch/arm/mach-imx/mx6/Kconfig +0 -1
@@ -542,7 +542,6 @@ source "board/freescale/mx6ullevk/Kconfig" source "board/kosagi/novena/Kconfig" source "board/liebherr/display5/Kconfig" source "board/seco/Kconfig" -source "board/solidrun/mx6cuboxi/Kconfig" source "board/technexion/pico-imx6ul/Kconfig" source "board/tqc/tqma6/Kconfig" source "board/toradex/colibri-imx6ull/Kconfig"
board/solidrun/mx6cuboxi/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_MX6CUBOXI - -config SYS_BOARD - default "mx6cuboxi" - -config SYS_VENDOR - default "solidrun" - -config SYS_CONFIG_NAME - default "mx6cuboxi" - -endif
board/solidrun/mx6cuboxi/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -MX6CUBOXI BOARD -M: Fabio Estevam <[email protected]> -S: Maintained -F: board/solidrun/mx6cuboxi/ -F: include/configs/mx6cuboxi.h -F: configs/mx6cuboxi_defconfig
board/solidrun/mx6cuboxi/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]> -# -# (C) Copyright 2011 Freescale Semiconductor, Inc. - -obj-y := mx6cuboxi.o
board/solidrun/mx6cuboxi/README deleted +0 -21
@@ -1,21 +0,0 @@ -How to use U-Boot on Solid-run mx6 Hummingboard and Cubox-i ------------------------------------------------------------ - -- Build U-Boot for Hummingboard/Cubox-i: - -$ make mrproper -$ make mx6cuboxi_defconfig -$ make - -This will generate the SPL image called SPL and the u-boot.img. - -- Flash the SPL image into the SD card: - -sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync - -- Flash the u-boot.img image into the SD card: - -sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync - -- Insert the SD card in the board, power it up and U-Boot messages should -come up.
board/solidrun/mx6cuboxi/mx6cuboxi.c deleted +0 -857
857 lines not on this page · raw message
configs/mx6cuboxi_defconfig deleted +0 -43
43 lines not on this page · raw message
include/configs/mx6cuboxi.h deleted +0 -149
149 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 65/93 arm: Remove mx6cuboxi board
Quoted 5 lines
Date: Mon, 19 Nov 2018 08:53:45 -0700
From: Simon Glass <[email protected]>This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.
Hmm, isn't there something going wrong if a maintained board is getting removed? Especially ones that are still on the market? Just happened to pick this one since there we use these a lot in the OpenBSD project for building stuff.
Quoted 1,176 lines
Signed-off-by Simon Glass <[email protected]>---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/solidrun/mx6cuboxi/Kconfig | 12 - board/solidrun/mx6cuboxi/MAINTAINERS | 6 - board/solidrun/mx6cuboxi/Makefile | 7 - board/solidrun/mx6cuboxi/README | 21 - board/solidrun/mx6cuboxi/mx6cuboxi.c | 857 --------------------------- configs/mx6cuboxi_defconfig | 43 -- include/configs/mx6cuboxi.h | 149 ----- 8 files changed, 1096 deletions(-) delete mode 100644 board/solidrun/mx6cuboxi/Kconfig delete mode 100644 board/solidrun/mx6cuboxi/MAINTAINERS delete mode 100644 board/solidrun/mx6cuboxi/Makefile delete mode 100644 board/solidrun/mx6cuboxi/README delete mode 100644 board/solidrun/mx6cuboxi/mx6cuboxi.c delete mode 100644 configs/mx6cuboxi_defconfig delete mode 100644 include/configs/mx6cuboxi.harch/arm/mach-imx/mx6/Kconfig +0
-1@@ -542,7 +542,6 @@ source "board/freescale/mx6ullevk/Kconfig" source "board/kosagi/novena/Kconfig" source "board/liebherr/display5/Kconfig" source "board/seco/Kconfig" -source "board/solidrun/mx6cuboxi/Kconfig" source "board/technexion/pico-imx6ul/Kconfig" source "board/tqc/tqma6/Kconfig" source "board/toradex/colibri-imx6ull/Kconfig"board/solidrun/mx6cuboxi/Kconfig deleted +0
-12@@ -1,12 +0,0 @@ -if TARGET_MX6CUBOXI - -config SYS_BOARD - default "mx6cuboxi" - -config SYS_VENDOR - default "solidrun" - -config SYS_CONFIG_NAME - default "mx6cuboxi" - -endifboard/solidrun/mx6cuboxi/MAINTAINERS deleted +0
-6@@ -1,6 +0,0 @@ -MX6CUBOXI BOARD -M: Fabio Estevam <[email protected]> -S: Maintained -F: board/solidrun/mx6cuboxi/ -F: include/configs/mx6cuboxi.h -F: configs/mx6cuboxi_defconfigboard/solidrun/mx6cuboxi/Makefile deleted +0
-7@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]> -# -# (C) Copyright 2011 Freescale Semiconductor, Inc. - -obj-y := mx6cuboxi.oboard/solidrun/mx6cuboxi/README deleted +0
-21@@ -1,21 +0,0 @@ -How to use U-Boot on Solid-run mx6 Hummingboard and Cubox-i ------------------------------------------------------------ - -- Build U-Boot for Hummingboard/Cubox-i: - -$ make mrproper -$ make mx6cuboxi_defconfig -$ make - -This will generate the SPL image called SPL and the u-boot.img. - -- Flash the SPL image into the SD card: - -sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync - -- Flash the u-boot.img image into the SD card: - -sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync - -- Insert the SD card in the board, power it up and U-Boot messages should -come up.board/solidrun/mx6cuboxi/mx6cuboxi.c deleted +0
-857@@ -1,857 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2015 Freescale Semiconductor, Inc. -* -* Author: Fabio Estevam <[email protected]> -* -* Copyright (C) 2013 Jon Nettleton <[email protected]> -* -* Based on SPL code from Solidrun tree, which is: -* Author: Tungyi Lin <[email protected]> -* -* Derived from EDM_CF_IMX6 code by TechNexion,Inc -* Ported to SolidRun microSOM by Rabeeh Khoury <[email protected]> -*/ - -#include <asm/arch/clock.h> -#include <asm/arch/imx-regs.h> -#include <asm/arch/iomux.h> -#include <asm/arch/mx6-pins.h> -#include <asm/arch/mxc_hdmi.h> -#include <linux/errno.h> -#include <asm/gpio.h> -#include <asm/mach-imx/iomux-v3.h> -#include <asm/mach-imx/sata.h> -#include <asm/mach-imx/video.h> -#include <mmc.h> -#include <fsl_esdhc.h> -#include <malloc.h> -#include <miiphy.h> -#include <netdev.h> -#include <asm/arch/crm_regs.h> -#include <asm/io.h> -#include <asm/arch/sys_proto.h> -#include <spl.h> -#include <usb.h> -#include <usb/ehci-ci.h> - -DECLARE_GLOBAL_DATA_PTR ; - -#define UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ - PAD_CTL_SRE_FAST | PAD_CTL_HYS) - -#define USDHC_PAD_CTRL (PAD_CTL_PUS_47K_UP | \ - PAD_CTL_SPEED_LOW | PAD_CTL_DSE_80ohm | \ - PAD_CTL_SRE_FAST | PAD_CTL_HYS) - -#define ENET_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_HYS) - -#define ENET_PAD_CTRL_PD (PAD_CTL_PUS_100K_DOWN | \ - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_HYS) - -#define ENET_PAD_CTRL_CLK ((PAD_CTL_PUS_100K_UP & ~PAD_CTL_PKE) | \ - PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST) - -#define ETH_PHY_RESET IMX_GPIO_NR(4, 15) -#define USB_H1_VBUS IMX_GPIO_NR(1, 0) - -enum board_type { -CUBOXI =0x00 , -HUMMINGBOARD =0x01 , -HUMMINGBOARD2 =0x02 , -UNKNOWN =0x03 , -}; - -#define MEM_STRIDE 0x4000000 -static u32 get_ram_size_stride_test (u32 *base,u32 maxsize) -{ -volatile u32 *addr; -u32 save[64 ]; -u32 cnt; -u32 size; -int i =0 ; - -/* First save the data */ -for (cnt =0 ; cnt < maxsize; cnt +=MEM_STRIDE ) { - addr = (volatile u32 *)((u32 )base + cnt);/* pointer arith! */ -sync (); - save[i++] = *addr; -sync (); - } - -/* First write a signature */ - * (volatile u32 *)base =0x12345678 ; -for (size =MEM_STRIDE ; size < maxsize; size +=MEM_STRIDE ) { - * (volatile u32 *)((u32 )base + size) = size; -sync (); -if (* (volatile u32 *)((u32 )base) == size) {/* We reached the overlapping address */ -break ; - } - } - -/* Restore the data */ -for (cnt = (maxsize -MEM_STRIDE ); i >0 ; cnt -=MEM_STRIDE ) { - addr = (volatile u32 *)((u32 )base + cnt);/* pointer arith! */ -sync (); - *addr = save[i--]; -sync (); - } - -return (size); -} - -int dram_init (void ) -{ -u32 max_size =imx_ddr_size (); - - gd->ram_size =get_ram_size_stride_test ((u32 *)CONFIG_SYS_SDRAM_BASE , - (u32 )max_size); - -return 0 ; -} - -static iomux_v3_cfg_t const uart1_pads[] = { -IOMUX_PADS (PAD_CSI0_DAT10__UART1_TX_DATA |MUX_PAD_CTRL (UART_PAD_CTRL )), -IOMUX_PADS (PAD_CSI0_DAT11__UART1_RX_DATA |MUX_PAD_CTRL (UART_PAD_CTRL )), -}; - -static iomux_v3_cfg_t const usdhc2_pads[] = { -IOMUX_PADS (PAD_SD2_CLK__SD2_CLK |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_CMD__SD2_CMD |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_DAT0__SD2_DATA0 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_DAT1__SD2_DATA1 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_DAT2__SD2_DATA2 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD2_DAT3__SD2_DATA3 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -}; - -static iomux_v3_cfg_t const usdhc3_pads[] = { -IOMUX_PADS (PAD_SD3_CLK__SD3_CLK |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_CMD__SD3_CMD |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT0__SD3_DATA0 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT1__SD3_DATA1 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT2__SD3_DATA2 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT3__SD3_DATA3 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT4__SD3_DATA4 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT5__SD3_DATA5 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT6__SD3_DATA6 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_DAT7__SD3_DATA7 |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -IOMUX_PADS (PAD_SD3_RST__SD3_RESET |MUX_PAD_CTRL (USDHC_PAD_CTRL )), -}; - -static iomux_v3_cfg_t const board_detect[] = { -/* These pins are for sensing if it is a CuBox-i or a HummingBoard */ -IOMUX_PADS (PAD_KEY_ROW1__GPIO4_IO09 |MUX_PAD_CTRL (UART_PAD_CTRL )), -IOMUX_PADS (PAD_EIM_DA4__GPIO3_IO04 |MUX_PAD_CTRL (UART_PAD_CTRL )), -IOMUX_PADS (PAD_SD4_DAT0__GPIO2_IO08 |MUX_PAD_CTRL (UART_PAD_CTRL )), -}; - -static iomux_v3_cfg_t const som_rev_detect[] = { -/* These pins are for sensing if it is a CuBox-i or a HummingBoard */ -IOMUX_PADS (PAD_CSI0_DAT14__GPIO6_IO00 |MUX_PAD_CTRL (UART_PAD_CTRL )), -IOMUX_PADS (PAD_CSI0_DAT18__GPIO6_IO04 |MUX_PAD_CTRL (UART_PAD_CTRL )), -}; - -static iomux_v3_cfg_t const usb_pads[] = { -IOMUX_PADS (PAD_GPIO_0__GPIO1_IO00 |MUX_PAD_CTRL (NO_PAD_CTRL )), -}; - -static void setup_iomux_uart (void ) -{ -SETUP_IOMUX_PADS (uart1_pads); -} - -static struct fsl_esdhc_cfg usdhc_cfg = { - .esdhc_base =USDHC2_BASE_ADDR , - .max_bus_width =4 , -}; - -static struct fsl_esdhc_cfg emmc_cfg = { - .esdhc_base =USDHC3_BASE_ADDR , - .max_bus_width =8 , -}; - -int board_mmc_get_env_dev (int devno) -{ -return devno -1 ; -} - -#define USDHC2_CD_GPIO IMX_GPIO_NR(1, 4) - -int board_mmc_getcd (struct mmc *mmc) -{ -struct fsl_esdhc_cfg *cfg = mmc->priv; -int ret =0 ; - -switch (cfg->esdhc_base) { -case USDHC2_BASE_ADDR : - ret = !gpio_get_value (USDHC2_CD_GPIO ); -break ; -case USDHC3_BASE_ADDR : - ret = (mmc_get_op_cond (mmc) <0 ) ?0 :1 ;/* eMMC/uSDHC3 has no CD GPIO */ -break ; - } - -return ret; -} - -static int mmc_init_main (bd_t *bis) -{ -int ret; - -/* -* Following map is done: -* (U-Boot device node) (Physical Port) -* mmc0 Carrier board MicroSD -* mmc1 SOM eMMC -*/ -SETUP_IOMUX_PADS (usdhc2_pads); - usdhc_cfg.sdhc_clk =mxc_get_clock (MXC_ESDHC2_CLK ); - ret =fsl_esdhc_initialize (bis, &usdhc_cfg); -if (ret) -return ret; - -SETUP_IOMUX_PADS (usdhc3_pads); - emmc_cfg.sdhc_clk =mxc_get_clock (MXC_ESDHC3_CLK ); -return fsl_esdhc_initialize (bis, &emmc_cfg); -} - -static int mmc_init_spl (bd_t *bis) -{ -struct src *psrc = (struct src *)SRC_BASE_ADDR ; -unsigned reg =readl (&psrc->sbmr1) >>11 ; - -/* -* Upon reading BOOT_CFG register the following map is done: -* Bit 11 and 12 of BOOT_CFG register can determine the current -* mmc port -* 0x1 SD2 -* 0x2 SD3 -*/ -switch (reg &0x3 ) { -case 0x1 : -SETUP_IOMUX_PADS (usdhc2_pads); - usdhc_cfg.sdhc_clk =mxc_get_clock (MXC_ESDHC2_CLK ); - gd->arch.sdhc_clk = usdhc_cfg.sdhc_clk; -return fsl_esdhc_initialize (bis, &usdhc_cfg); -case 0x2 : -SETUP_IOMUX_PADS (usdhc3_pads); - emmc_cfg.sdhc_clk =mxc_get_clock (MXC_ESDHC3_CLK ); - gd->arch.sdhc_clk = emmc_cfg.sdhc_clk; -return fsl_esdhc_initialize (bis, &emmc_cfg); - } - -return -ENODEV ; -} - -int board_mmc_init (bd_t *bis) -{ -if (IS_ENABLED (CONFIG_SPL_BUILD )) -return mmc_init_spl (bis); - -return mmc_init_main (bis); -} - -static iomux_v3_cfg_t const enet_pads[] = { -IOMUX_PADS (PAD_ENET_MDIO__ENET_MDIO |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_ENET_MDC__ENET_MDC |MUX_PAD_CTRL (ENET_PAD_CTRL )), -/* AR8035 reset */ -IOMUX_PADS (PAD_KEY_ROW4__GPIO4_IO15 |MUX_PAD_CTRL (ENET_PAD_CTRL_PD )), -/* AR8035 interrupt */ -IOMUX_PADS (PAD_DI0_PIN2__GPIO4_IO18 |MUX_PAD_CTRL (NO_PAD_CTRL )), -/* GPIO16 -> AR8035 25MHz */ -IOMUX_PADS (PAD_GPIO_16__ENET_REF_CLK |MUX_PAD_CTRL (NO_PAD_CTRL )), -IOMUX_PADS (PAD_RGMII_TXC__RGMII_TXC |MUX_PAD_CTRL (NO_PAD_CTRL )), -IOMUX_PADS (PAD_RGMII_TD0__RGMII_TD0 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_RGMII_TD1__RGMII_TD1 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_RGMII_TD2__RGMII_TD2 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_RGMII_TD3__RGMII_TD3 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_RGMII_TX_CTL__RGMII_TX_CTL |MUX_PAD_CTRL (ENET_PAD_CTRL )), -/* AR8035 CLK_25M --> ENET_REF_CLK (V22) */ -IOMUX_PADS (PAD_ENET_REF_CLK__ENET_TX_CLK |MUX_PAD_CTRL (ENET_PAD_CTRL_CLK )), -IOMUX_PADS (PAD_RGMII_RXC__RGMII_RXC |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_RGMII_RD0__RGMII_RD0 |MUX_PAD_CTRL (ENET_PAD_CTRL_PD )), -IOMUX_PADS (PAD_RGMII_RD1__RGMII_RD1 |MUX_PAD_CTRL (ENET_PAD_CTRL_PD )), -IOMUX_PADS (PAD_RGMII_RD2__RGMII_RD2 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_RGMII_RD3__RGMII_RD3 |MUX_PAD_CTRL (ENET_PAD_CTRL )), -IOMUX_PADS (PAD_RGMII_RX_CTL__RGMII_RX_CTL |MUX_PAD_CTRL (ENET_PAD_CTRL_PD )), -IOMUX_PADS (PAD_ENET_RXD0__GPIO1_IO27 |MUX_PAD_CTRL (ENET_PAD_CTRL_PD )), -IOMUX_PADS (PAD_ENET_RXD1__GPIO1_IO26 |MUX_PAD_CTRL (ENET_PAD_CTRL_PD )), -}; - -static void setup_iomux_enet (void ) -{ -SETUP_IOMUX_PADS (enet_pads); - -gpio_direction_output (ETH_PHY_RESET ,0 ); -mdelay (10 ); -gpio_set_value (ETH_PHY_RESET ,1 ); -udelay (100 ); -} - -int board_phy_config (struct phy_device *phydev) -{ -if (phydev->drv->config) - phydev->drv->config (phydev); - -return 0 ; -} - -/* On Cuboxi Ethernet PHY can be located at addresses 0x0 or 0x4 */ -#define ETH_PHY_MASK ((1 << 0x0) | (1 << 0x4)) - -int board_eth_init (bd_t *bis) -{ -struct iomuxc *const iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR ; -struct mii_dev *bus; -struct phy_device *phydev; - -int ret =enable_fec_anatop_clock (0 ,ENET_25MHZ ); -if (ret) -return ret; - -/* set gpr1[ENET_CLK_SEL] */ -setbits_le32 (&iomuxc_regs->gpr[1 ],IOMUXC_GPR1_ENET_CLK_SEL_MASK ); - -setup_iomux_enet (); - - bus =fec_get_miibus (IMX_FEC_BASE ,-1 ); -if (!bus) -return -EINVAL ; - - phydev =phy_find_by_mask (bus,ETH_PHY_MASK ,PHY_INTERFACE_MODE_RGMII ); -if (!phydev) { - ret = -EINVAL ; - goto free_bus; - } - -debug ("using phy at address %d\n" , phydev->addr); - ret =fec_probe (bis,-1 ,IMX_FEC_BASE , bus, phydev); -if (ret) - goto free_phydev; - -return 0 ; - -free_phydev: -free (phydev); -free_bus: -free (bus); -return ret; -} - -#ifdef CONFIG_VIDEO_IPUV3 -static void do_enable_hdmi (struct display_info_t const *dev) -{ -imx_enable_hdmi_phy (); -} - -struct display_info_t const displays[] = { - { - .bus =-1 , - .addr =0 , - .pixfmt =IPU_PIX_FMT_RGB24 , - .detect = detect_hdmi, - .enable = do_enable_hdmi, - .mode = { - .name ="HDMI" , -/* 1024x768 at 60Hz (VESA)*/ - .refresh =60 , - .xres =1024 , - .yres =768 , - .pixclock =15384 , - .left_margin =160 , - .right_margin =24 , - .upper_margin =29 , - .lower_margin =3 , - .hsync_len =136 , - .vsync_len =6 , - .sync =FB_SYNC_EXT , - .vmode =FB_VMODE_NONINTERLACED - } - } -}; - -size_t display_count =ARRAY_SIZE (displays); - -static int setup_display (void ) -{ -struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR ; -int reg; -int timeout =100000 ; - -enable_ipu_clock (); -imx_setup_hdmi (); - -/* set video pll to 455MHz (24MHz * (37+11/12) / 2) */ -setbits_le32 (&ccm->analog_pll_video,BM_ANADIG_PLL_VIDEO_POWERDOWN ); - - reg =readl (&ccm->analog_pll_video); - reg &= ~BM_ANADIG_PLL_VIDEO_DIV_SELECT ; - reg |=BF_ANADIG_PLL_VIDEO_DIV_SELECT (37 ); - reg &= ~BM_ANADIG_PLL_VIDEO_POST_DIV_SELECT ; - reg |=BF_ANADIG_PLL_VIDEO_POST_DIV_SELECT (1 ); -writel (reg, &ccm->analog_pll_video); - -writel (BF_ANADIG_PLL_VIDEO_NUM_A (11 ), &ccm->analog_pll_video_num); -writel (BF_ANADIG_PLL_VIDEO_DENOM_B (12 ), &ccm->analog_pll_video_denom); - - reg &= ~BM_ANADIG_PLL_VIDEO_POWERDOWN ; -writel (reg, &ccm->analog_pll_video); - -while (timeout--) -if (readl (&ccm->analog_pll_video) &BM_ANADIG_PLL_VIDEO_LOCK ) -break ; -if (timeout <0 ) { -printf ("Warning: video pll lock timeout!\n" ); -return -ETIMEDOUT ; - } - - reg =readl (&ccm->analog_pll_video); - reg |=BM_ANADIG_PLL_VIDEO_ENABLE ; - reg &= ~BM_ANADIG_PLL_VIDEO_BYPASS ; -writel (reg, &ccm->analog_pll_video); - -/* gate ipu1_di0_clk */ -clrbits_le32 (&ccm->CCGR3,MXC_CCM_CCGR3_LDB_DI0_MASK ); - -/* select video_pll clock / 7 for ipu1_di0_clk -> 65MHz pixclock */ - reg =readl (&ccm->chsccdr); - reg &= ~(MXC_CCM_CHSCCDR_IPU1_DI0_PRE_CLK_SEL_MASK | -MXC_CCM_CHSCCDR_IPU1_DI0_PODF_MASK | -MXC_CCM_CHSCCDR_IPU1_DI0_CLK_SEL_MASK ); - reg |= (2 <<MXC_CCM_CHSCCDR_IPU1_DI0_PRE_CLK_SEL_OFFSET ) | - (6 <<MXC_CCM_CHSCCDR_IPU1_DI0_PODF_OFFSET ) | - (0 <<MXC_CCM_CHSCCDR_IPU1_DI0_CLK_SEL_OFFSET ); -writel (reg, &ccm->chsccdr); - -/* enable ipu1_di0_clk */ -setbits_le32 (&ccm->CCGR3,MXC_CCM_CCGR3_LDB_DI0_MASK ); - -return 0 ; -} -#endif /* CONFIG_VIDEO_IPUV3 */ - -#ifdef CONFIG_USB_EHCI_MX6 -static void setup_usb (void ) -{ -SETUP_IOMUX_PADS (usb_pads); -} - -int board_ehci_hcd_init (int port) -{ -if (port ==1 ) -gpio_direction_output (USB_H1_VBUS ,1 ); - -return 0 ; -} -#endif - -int board_early_init_f (void ) -{ -setup_iomux_uart (); - -#ifdef CONFIG_CMD_SATA -setup_sata (); -#endif - -#ifdef CONFIG_USB_EHCI_MX6 -setup_usb (); -#endif -return 0 ; -} - -int board_init (void ) -{ -int ret =0 ; - -/* address of boot parameters */ - gd->bd->bi_boot_params =CONFIG_SYS_SDRAM_BASE +0x100 ; - -#ifdef CONFIG_VIDEO_IPUV3 - ret =setup_display (); -#endif - -return ret; -} - -static enum board_type board_type (void ) -{ -int val1, val2, val3; - -SETUP_IOMUX_PADS (board_detect); - -/* -* Machine selection - -* Machine val1, val2, val3 -* ---------------------------- -* HB2 x x 0 -* HB rev 3.x x 0 x -* CBi 0 1 x -* HB 1 1 x -*/ - -gpio_direction_input (IMX_GPIO_NR (2 ,8 )); - val3 =gpio_get_value (IMX_GPIO_NR (2 ,8 )); - -if (val3 ==0 ) -return HUMMINGBOARD2 ; - -gpio_direction_input (IMX_GPIO_NR (3 ,4 )); - val2 =gpio_get_value (IMX_GPIO_NR (3 ,4 )); - -if (val2 ==0 ) -return HUMMINGBOARD ; - -gpio_direction_input (IMX_GPIO_NR (4 ,9 )); - val1 =gpio_get_value (IMX_GPIO_NR (4 ,9 )); - -if (val1 ==0 ) { -return CUBOXI ; - }else { -return HUMMINGBOARD ; - } -} - -static bool is_rev_15_som (void ) -{ -int val1, val2; -SETUP_IOMUX_PADS (som_rev_detect); - - val1 =gpio_get_value (IMX_GPIO_NR (6 ,0 )); - val2 =gpio_get_value (IMX_GPIO_NR (6 ,4 )); - -if (val1 ==1 && val2 ==0 ) -return true; - -return false; -} - -static bool has_emmc (void ) -{ -struct mmc *mmc; - mmc =find_mmc_device (1 ); -if (!mmc) -return 0 ; -return (mmc_get_op_cond (mmc) <0 ) ?0 :1 ; -} - -int checkboard (void ) -{ -switch (board_type ()) { -case CUBOXI : -puts ("Board: MX6 Cubox-i" ); -break ; -case HUMMINGBOARD : -puts ("Board: MX6 HummingBoard" ); -break ; -case HUMMINGBOARD2 : -puts ("Board: MX6 HummingBoard2" ); -break ; -case UNKNOWN : -default : -puts ("Board: Unknown\n" ); - goto out; - } - -if (is_rev_15_som ()) -puts (" (som rev 1.5)\n" ); -else -puts ("\n" ); - -out: -return 0 ; -} - -int board_late_init (void ) -{ -#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG -switch (board_type ()) { -case CUBOXI : -env_set ("board_name" ,"CUBOXI" ); -break ; -case HUMMINGBOARD : -env_set ("board_name" ,"HUMMINGBOARD" ); -break ; -case HUMMINGBOARD2 : -env_set ("board_name" ,"HUMMINGBOARD2" ); -break ; -case UNKNOWN : -default : -env_set ("board_name" ,"CUBOXI" ); - } - -if (is_mx6dq ()) -env_set ("board_rev" ,"MX6Q" ); -else -env_set ("board_rev" ,"MX6DL" ); - -if (is_rev_15_som ()) -env_set ("som_rev" ,"V15" ); - -if (has_emmc ()) -env_set ("has_emmc" ,"yes" ); - -#endif - -return 0 ; -} - -#ifdef CONFIG_SPL_BUILD -#include <asm/arch/mx6-ddr.h> -static const struct mx6dq_iomux_ddr_regs mx6q_ddr_ioregs = { - .dram_sdclk_0 =0x00020030 , - .dram_sdclk_1 =0x00020030 , - .dram_cas =0x00020030 , - .dram_ras =0x00020030 , - .dram_reset =0x000c0030 , - .dram_sdcke0 =0x00003000 , - .dram_sdcke1 =0x00003000 , - .dram_sdba2 =0x00000000 , - .dram_sdodt0 =0x00003030 , - .dram_sdodt1 =0x00003030 , - .dram_sdqs0 =0x00000030 , - .dram_sdqs1 =0x00000030 , - .dram_sdqs2 =0x00000030 , - .dram_sdqs3 =0x00000030 , - .dram_sdqs4 =0x00000030 , - .dram_sdqs5 =0x00000030 , - .dram_sdqs6 =0x00000030 , - .dram_sdqs7 =0x00000030 , - .dram_dqm0 =0x00020030 , - .dram_dqm1 =0x00020030 , - .dram_dqm2 =0x00020030 , - .dram_dqm3 =0x00020030 , - .dram_dqm4 =0x00020030 , - .dram_dqm5 =0x00020030 , - .dram_dqm6 =0x00020030 , - .dram_dqm7 =0x00020030 , -}; - -static const struct mx6sdl_iomux_ddr_regs mx6dl_ddr_ioregs = { - .dram_sdclk_0 =0x00000028 , - .dram_sdclk_1 =0x00000028 , - .dram_cas =0x00000028 , - .dram_ras =0x00000028 , - .dram_reset =0x000c0028 , - .dram_sdcke0 =0x00003000 , - .dram_sdcke1 =0x00003000 , - .dram_sdba2 =0x00000000 , - .dram_sdodt0 =0x00003030 , - .dram_sdodt1 =0x00003030 , - .dram_sdqs0 =0x00000028 , - .dram_sdqs1 =0x00000028 , - .dram_sdqs2 =0x00000028 , - .dram_sdqs3 =0x00000028 , - .dram_sdqs4 =0x00000028 , - .dram_sdqs5 =0x00000028 , - .dram_sdqs6 =0x00000028 , - .dram_sdqs7 =0x00000028 , - .dram_dqm0 =0x00000028 , - .dram_dqm1 =0x00000028 , - .dram_dqm2 =0x00000028 , - .dram_dqm3 =0x00000028 , - .dram_dqm4 =0x00000028 , - .dram_dqm5 =0x00000028 , - .dram_dqm6 =0x00000028 , - .dram_dqm7 =0x00000028 , -}; - -static const struct mx6dq_iomux_grp_regs mx6q_grp_ioregs = { - .grp_ddr_type =0x000C0000 , - .grp_ddrmode_ctl =0x00020000 , - .grp_ddrpke =0x00000000 , - .grp_addds =0x00000030 , - .grp_ctlds =0x00000030 , - .grp_ddrmode =0x00020000 , - .grp_b0ds =0x00000030 , - .grp_b1ds =0x00000030 , - .grp_b2ds =0x00000030 , - .grp_b3ds =0x00000030 , - .grp_b4ds =0x00000030 , - .grp_b5ds =0x00000030 , - .grp_b6ds =0x00000030 , - .grp_b7ds =0x00000030 , -}; - -static const struct mx6sdl_iomux_grp_regs mx6sdl_grp_ioregs = { - .grp_ddr_type =0x000c0000 , - .grp_ddrmode_ctl =0x00020000 , - .grp_ddrpke =0x00000000 , - .grp_addds =0x00000028 , - .grp_ctlds =0x00000028 , - .grp_ddrmode =0x00020000 , - .grp_b0ds =0x00000028 , - .grp_b1ds =0x00000028 , - .grp_b2ds =0x00000028 , - .grp_b3ds =0x00000028 , - .grp_b4ds =0x00000028 , - .grp_b5ds =0x00000028 , - .grp_b6ds =0x00000028 , - .grp_b7ds =0x00000028 , -}; - -/* microSOM with Dual processor and 1GB memory */ -static const struct mx6_mmdc_calibration mx6q_1g_mmcd_calib = { - .p0_mpwldectrl0 =0x00000000 , - .p0_mpwldectrl1 =0x00000000 , - .p1_mpwldectrl0 =0x00000000 , - .p1_mpwldectrl1 =0x00000000 , - .p0_mpdgctrl0 =0x0314031c , - .p0_mpdgctrl1 =0x023e0304 , - .p1_mpdgctrl0 =0x03240330 , - .p1_mpdgctrl1 =0x03180260 , - .p0_mprddlctl =0x3630323c , - .p1_mprddlctl =0x3436283a , - .p0_mpwrdlctl =0x36344038 , - .p1_mpwrdlctl =0x422a423c , -}; - -/* microSOM with Quad processor and 2GB memory */ -static const struct mx6_mmdc_calibration mx6q_2g_mmcd_calib = { - .p0_mpwldectrl0 =0x00000000 , - .p0_mpwldectrl1 =0x00000000 , - .p1_mpwldectrl0 =0x00000000 , - .p1_mpwldectrl1 =0x00000000 , - .p0_mpdgctrl0 =0x0314031c , - .p0_mpdgctrl1 =0x023e0304 , - .p1_mpdgctrl0 =0x03240330 , - .p1_mpdgctrl1 =0x03180260 , - .p0_mprddlctl =0x3630323c , - .p1_mprddlctl =0x3436283a , - .p0_mpwrdlctl =0x36344038 , - .p1_mpwrdlctl =0x422a423c , -}; - -/* microSOM with Solo processor and 512MB memory */ -static const struct mx6_mmdc_calibration mx6dl_512m_mmcd_calib = { - .p0_mpwldectrl0 =0x0045004D , - .p0_mpwldectrl1 =0x003A0047 , - .p0_mpdgctrl0 =0x023C0224 , - .p0_mpdgctrl1 =0x02000220 , - .p0_mprddlctl =0x44444846 , - .p0_mpwrdlctl =0x32343032 , -}; - -/* microSOM with Dual lite processor and 1GB memory */ -static const struct mx6_mmdc_calibration mx6dl_1g_mmcd_calib = { - .p0_mpwldectrl0 =0x0045004D , - .p0_mpwldectrl1 =0x003A0047 , - .p1_mpwldectrl0 =0x001F001F , - .p1_mpwldectrl1 =0x00210035 , - .p0_mpdgctrl0 =0x023C0224 , - .p0_mpdgctrl1 =0x02000220 , - .p1_mpdgctrl0 =0x02200220 , - .p1_mpdgctrl1 =0x02040208 , - .p0_mprddlctl =0x44444846 , - .p1_mprddlctl =0x4042463C , - .p0_mpwrdlctl =0x32343032 , - .p1_mpwrdlctl =0x36363430 , -}; - -static struct mx6_ddr3_cfg mem_ddr_2g = { - .mem_speed =1600 , - .density =2 , - .width =16 , - .banks =8 , - .rowaddr =14 , - .coladdr =10 , - .pagesz =2 , - .trcd =1375 , - .trcmin =4875 , - .trasmin =3500 , -}; - -static struct mx6_ddr3_cfg mem_ddr_4g = { - .mem_speed =1600 , - .density =4 , - .width =16 , - .banks =8 , - .rowaddr =16 , - .coladdr =10 , - .pagesz =2 , - .trcd =1375 , - .trcmin =4875 , - .trasmin =3500 , -}; - -static void ccgr_init (void ) -{ -struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR ; - -writel (0x00C03F3F , &ccm->CCGR0); -writel (0x0030FC03 , &ccm->CCGR1); -writel (0x0FFFC000 , &ccm->CCGR2); -writel (0x3FF00000 , &ccm->CCGR3); -writel (0x00FFF300 , &ccm->CCGR4); -writel (0x0F0000C3 , &ccm->CCGR5); -writel (0x000003FF , &ccm->CCGR6); -} - -static void spl_dram_init (int width) -{ -struct mx6_ddr_sysinfo sysinfo = { -/* width of data bus: 0=16, 1=32, 2=64 */ - .dsize = width /32 , -/* config for full 4GB range so that get_mem_size() works */ - .cs_density =32 ,/* 32Gb per CS */ - .ncs =1 ,/* single chip select */ - .cs1_mirror =0 , - .rtt_wr =1 /*DDR3_RTT_60_OHM*/ ,/* RTT_Wr = RZQ/4 */ - .rtt_nom =1 /*DDR3_RTT_60_OHM*/ ,/* RTT_Nom = RZQ/4 */ - .walat =1 ,/* Write additional latency */ - .ralat =5 ,/* Read additional latency */ - .mif3_mode =3 ,/* Command prediction working mode */ - .bi_on =1 ,/* Bank interleaving enabled */ - .sde_to_rst =0x10 ,/* 14 cycles, 200us (JEDEC default) */ - .rst_to_cke =0x23 ,/* 33 cycles, 500us (JEDEC default) */ - .ddr_type =DDR_TYPE_DDR3 , - .refsel =1 ,/* Refresh cycles at 32KHz */ - .refr =7 ,/* 8 refresh commands per refresh cycle */ - }; - -if (is_mx6dq ()) -mx6dq_dram_iocfg (width, &mx6q_ddr_ioregs, &mx6q_grp_ioregs); -else -mx6sdl_dram_iocfg (width, &mx6dl_ddr_ioregs, &mx6sdl_grp_ioregs); - -if (is_cpu_type (MXC_CPU_MX6D )) -mx6_dram_cfg (&sysinfo, &mx6q_1g_mmcd_calib, &mem_ddr_2g); -else if (is_cpu_type (MXC_CPU_MX6Q )) -mx6_dram_cfg (&sysinfo, &mx6q_2g_mmcd_calib, &mem_ddr_4g); -else if (is_cpu_type (MXC_CPU_MX6DL )) -mx6_dram_cfg (&sysinfo, &mx6dl_1g_mmcd_calib, &mem_ddr_2g); -else if (is_cpu_type (MXC_CPU_MX6SOLO )) -mx6_dram_cfg (&sysinfo, &mx6dl_512m_mmcd_calib, &mem_ddr_2g); -} - -void board_init_f (ulong dummy) -{ -/* setup AIPS and disable watchdog */ -arch_cpu_init (); - -ccgr_init (); -gpr_init (); - -/* iomux and setup of i2c */ -board_early_init_f (); - -/* setup GP timer */ -timer_init (); - -/* UART clocks enabled and gd valid - init serial console */ -preloader_console_init (); - -/* DDR initialization */ -if (is_cpu_type (MXC_CPU_MX6SOLO )) -spl_dram_init (32 ); -else -spl_dram_init (64 ); - -/* Clear the BSS. */ -memset (__bss_start,0 , __bss_end - __bss_start); - -/* load/boot image from boot device */ -board_init_r (NULL ,0 ); -} -#endif configs/mx6cuboxi_defconfig deleted +0
-43@@ -1,43 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 -CONFIG_SPL_GPIO_SUPPORT=y -CONFIG_SPL_LIBCOMMON_SUPPORT=y -CONFIG_SPL_LIBGENERIC_SUPPORT=y -CONFIG_TARGET_MX6CUBOXI=y -CONFIG_SPL_MMC_SUPPORT=y -CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_SPL=y -CONFIG_SPL_LIBDISK_SUPPORT=y -# CONFIG_CMD_BMODE is not set -CONFIG_CMD_HDMIDETECT=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=1 -CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg" -CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd" -CONFIG_BOARD_EARLY_INIT_F=y -CONFIG_SPL_EXT_SUPPORT=y -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_WATCHDOG_SUPPORT=y -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_GPIO=y -CONFIG_CMD_MMC=y -CONFIG_CMD_SATA=y -CONFIG_CMD_USB=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_EXT4_WRITE=y -# CONFIG_SPL_PARTITION_UUIDS is not set -CONFIG_ENV_IS_IN_MMC=y -CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y -CONFIG_DM=y -CONFIG_DWC_AHSATA=y -CONFIG_FSL_ESDHC=y -CONFIG_PHYLIB=y -CONFIG_MII=y -CONFIG_DM_THERMAL=y -CONFIG_USB=y -CONFIG_USB_STORAGE=y -CONFIG_USB_KEYBOARD=y -CONFIG_VIDEO=y -# CONFIG_VIDEO_SW_CURSOR is not set -CONFIG_OF_LIBFDT=yinclude/configs/mx6cuboxi.h deleted +0
-149@@ -1,149 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* Copyright (C) 2015 Freescale Semiconductor, Inc. -* -* Configuration settings for the SolidRun mx6 based boards -*/ -#ifndef __MX6CUBOXI_CONFIG_H -#define __MX6CUBOXI_CONFIG_H - -#include "mx6_common.h" - -#include "imx6_spl.h" - -#define CONFIG_IMX_THERMAL - -#define CONFIG_SYS_MALLOC_LEN (10 * SZ_1M) -#define CONFIG_MXC_UART - -/* MMC Configs */ -#define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR - -/* SATA Configuration */ -#ifdef CONFIG_CMD_SATA -#define CONFIG_SYS_SATA_MAX_DEVICE 1 -#define CONFIG_DWC_AHSATA_PORT_ID 0 -#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR -#define CONFIG_LBA48 -#endif - -/* Ethernet Configuration */ -#define CONFIG_FEC_MXC -#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII -#define CONFIG_FEC_MXC_PHYADDR 0 -#define CONFIG_PHY_ATHEROS - -/* Framebuffer */ -#define CONFIG_VIDEO_IPUV3 -#define CONFIG_VIDEO_BMP_RLE8 -#define CONFIG_SPLASH_SCREEN -#define CONFIG_SPLASH_SCREEN_ALIGN -#define CONFIG_BMP_16BPP -#define CONFIG_VIDEO_LOGO -#define CONFIG_VIDEO_BMP_LOGO -#define CONFIG_IMX_HDMI -#define CONFIG_IMX_VIDEO_SKIP - -/* USB */ -#define CONFIG_EHCI_HCD_INIT_AFTER_RESET -#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) -#define CONFIG_MXC_USB_FLAGS 0 -#define CONFIG_USB_MAX_CONTROLLER_COUNT 2 -#define CONFIG_PREBOOT \ - "if hdmidet; then " \ - "usb start; " \ - "setenv stdin serial,usbkbd; "\ - "setenv stdout serial,vga; " \ - "setenv stderr serial,vga; " \ - "else " \ - "setenv stdin serial; " \ - "setenv stdout serial; " \ - "setenv stderr serial; " \ - "fi;" - -/* Command definition */ - -#define CONFIG_MXC_UART_BASE UART1_BASE -#define CONSOLE_DEV "ttymxc0" -#define CONFIG_SYS_MMC_ENV_DEV 0/* SDHC2 */ - -#ifndef CONFIG_SPL_BUILD -#define CONFIG_EXTRA_ENV_SETTINGS \ - "som_rev=undefined\0" \ - "has_emmc=undefined\0" \ - "fdtfile=undefined\0" \ - "fdt_addr_r=0x18000000\0" \ - "fdt_addr=0x18000000\0" \ - "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ - "pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ - "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \ - "ramdisk_addr_r=0x13000000\0" \ - "ramdiskaddr=0x13000000\0" \ - "initrd_high=0xffffffff\0" \ - "fdt_high=0xffffffff\0" \ - "ip_dyn=yes\0" \ - "console=" CONSOLE_DEV ",115200\0" \ - "bootm_size=0x10000000\0" \ - "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \ - "finduuid=part uuid mmc 0:1 uuid\0" \ - "update_sd_firmware=" \ - "if test ${ip_dyn} = yes; then " \ - "setenv get_cmd dhcp; " \ - "else " \ - "setenv get_cmd tftp; " \ - "fi; " \ - "if mmc dev ${mmcdev}; then " \ - "if ${get_cmd} ${update_sd_firmware_filename}; then " \ - "setexpr fw_sz ${filesize} / 0x200; " \ - "setexpr fw_sz ${fw_sz} + 1; " \ - "mmc write ${loadaddr} 0x2 ${fw_sz}; " \ - "fi; " \ - "fi\0" \ - "findfdt="\ - "if test ${board_rev} = MX6Q; then " \ - "setenv fdtprefix imx6q; fi; " \ - "if test ${board_rev} = MX6DL; then " \ - "setenv fdtprefix imx6dl; fi; " \ - "if test ${som_rev} = V15; then " \ - "setenv fdtsuffix -som-v15; fi; " \ - "if test ${has_emmc} = yes; then " \ - "setenv emmcsuffix -emmc; fi; " \ - "if test ${board_name} = HUMMINGBOARD2 ; then " \ - "setenv fdtfile ${fdtprefix}-hummingboard2${emmcsuffix}${fdtsuffix}.dtb; fi; " \ - "if test ${board_name} = HUMMINGBOARD ; then " \ - "setenv fdtfile ${fdtprefix}-hummingboard${emmcsuffix}${fdtsuffix}.dtb; fi; " \ - "if test ${board_name} = CUBOXI ; then " \ - "setenv fdtfile ${fdtprefix}-cubox-i${emmcsuffix}${fdtsuffix}.dtb; fi; " \ - "if test ${fdtfile} = undefined; then " \ - "echo WARNING: Could not determine dtb to use; fi; \0" \ - BOOTENV - -#define BOOT_TARGET_DEVICES (func) \ - func(MMC, mmc, 0) \ - func(SATA, sata, 0) \ - func(USB, usb, 0) \ - func(PXE, pxe, na) \ - func(DHCP, dhcp, na) - -#include <config_distro_bootcmd.h> - -#else -#define CONFIG_EXTRA_ENV_SETTINGS -#endif /* CONFIG_SPL_BUILD */ - -/* Physical Memory Map */ -#define CONFIG_SYS_SDRAM_BASE MMDC0_ARB_BASE_ADDR -#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR -#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE - -#define CONFIG_SYS_INIT_SP_OFFSET \ - (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) -#define CONFIG_SYS_INIT_SP_ADDR \ - (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) - -/* Environment organization */ -#define CONFIG_ENV_SIZE (8 * 1024) -#define CONFIG_ENV_OFFSET (SZ_1M - CONFIG_ENV_SIZE) - -#endif /* __MX6CUBOXI_CONFIG_H */ Signature · 6 lines
2.19.1.1215.g8438c0b245-goog _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de https://lists.denx.de/listinfo/u-boot
PATCH 65/93 arm: Remove mx6cuboxi board
Hi Mark,
Quoted 11 lines · Mark Kettenis
Quoted 6 lines
Date: Mon, 19 Nov 2018 08:53:45 -0700
From: Simon Glass <[email protected]>This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Hmm, isn't there something going wrong if a maintained board is getting removed? Especially ones that are still on the market? Just happened to pick this one since there we use these a lot in the OpenBSD project for building stuff.
Yes, it looks like Fabio is the maintainer, so hopefully he will take a look.
Quoted 13 lines
Quoted 13 lines
Signed-off-by Simon Glass <[email protected]>---
arch/arm/mach-imx/mx6/Kconfig | 1 - board/solidrun/mx6cuboxi/Kconfig | 12 - board/solidrun/mx6cuboxi/MAINTAINERS | 6 - board/solidrun/mx6cuboxi/Makefile | 7 - board/solidrun/mx6cuboxi/README | 21 - board/solidrun/mx6cuboxi/mx6cuboxi.c | 857 --------------------------- configs/mx6cuboxi_defconfig | 43 -- include/configs/mx6cuboxi.h | 149 ----- 8 files changed, 1096 deletions(-)
Quoted 8 lines
Quoted 8 lines
delete mode 100644 board/solidrun/mx6cuboxi/Kconfig delete mode 100644 board/solidrun/mx6cuboxi/MAINTAINERS delete mode 100644 board/solidrun/mx6cuboxi/Makefile delete mode 100644 board/solidrun/mx6cuboxi/README delete mode 100644 board/solidrun/mx6cuboxi/mx6cuboxi.c delete mode 100644 configs/mx6cuboxi_defconfig delete mode 100644 include/configs/mx6cuboxi.h
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
board/bachmann/ot1200/Kconfig | 12 - board/bachmann/ot1200/MAINTAINERS | 6 - board/bachmann/ot1200/Makefile | 11 - board/bachmann/ot1200/README | 20 -- board/bachmann/ot1200/mx6q_4x_mt41j128.cfg | 154 --------- board/bachmann/ot1200/ot1200.c | 356 --------------------- board/bachmann/ot1200/ot1200_spl.c | 151 --------- configs/ot1200_defconfig | 46 --- configs/ot1200_spl_defconfig | 55 ---- include/configs/ot1200.h | 114 ------- 10 files changed, 925 deletions(-) delete mode 100644 board/bachmann/ot1200/Kconfig delete mode 100644 board/bachmann/ot1200/MAINTAINERS delete mode 100644 board/bachmann/ot1200/Makefile delete mode 100644 board/bachmann/ot1200/README delete mode 100644 board/bachmann/ot1200/mx6q_4x_mt41j128.cfg delete mode 100644 board/bachmann/ot1200/ot1200.c delete mode 100644 board/bachmann/ot1200/ot1200_spl.c delete mode 100644 configs/ot1200_defconfig delete mode 100644 configs/ot1200_spl_defconfig delete mode 100644 include/configs/ot1200.h
board/bachmann/ot1200/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_OT1200 - -config SYS_BOARD - default "ot1200" - -config SYS_VENDOR - default "bachmann" - -config SYS_CONFIG_NAME - default "ot1200" - -endif
board/bachmann/ot1200/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -BACHMANN ELECTRONIC OT1200 BOARD -M: Christian Gmeiner <[email protected]> -S: Maintained -F: board/bachmann/ot1200 -F: include/configs/ot1200.h -F: configs/ot1200*_defconfig
board/bachmann/ot1200/Makefile deleted +0 -11
@@ -1,11 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2012-2013, Guennadi Liakhovetski <[email protected]> -# (C) Copyright 2012-2013 Freescale Semiconductor, Inc. -# Copyright (C) 2013, Boundary Devices <[email protected]> - -ifdef CONFIG_SPL_BUILD -obj-y := ot1200.o ot1200_spl.o -else -obj-y := ot1200.o -endif
board/bachmann/ot1200/README deleted +0 -20
@@ -1,20 +0,0 @@ -U-Boot for the Bachmann electronic GmbH OT1200 devices - -There are two different versions of the base board, which differ -in the way ethernet is done. The variant detection is done during -runtime based on the address of the found phy. - -- "mr" variant -FEC is connected directly to an ethernet switch (KSZ8895). The ethernet -port is always up and auto-negotiation is not possible. - -- normal variant -FEC is connected to a normal phy and auto-negotiation is possible. - - -The variant name is part of the dtb file name loaded by u-boot. This -make is possible to boot the linux kernel and make use variant specific -devicetree (fixed-phy link). - -In order to support different display resoltuions/sizes the OT1200 devices -are making use of EDID data stored in an i2c EEPROM.
board/bachmann/ot1200/mx6q_4x_mt41j128.cfg deleted +0 -154
154 lines not on this page · raw message
board/bachmann/ot1200/ot1200.c deleted +0 -356
356 lines not on this page · raw message
board/bachmann/ot1200/ot1200_spl.c deleted +0 -151
151 lines not on this page · raw message
configs/ot1200_defconfig deleted +0 -46
46 lines not on this page · raw message
configs/ot1200_spl_defconfig deleted +0 -55
55 lines not on this page · raw message
include/configs/ot1200.h deleted +0 -114
114 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 66/93 arm: Remove ot1200 board
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <[email protected]>:
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.
As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?
Signature · 5 lines
greets -- Christian Gmeiner, MSc https://christian-gmeiner.info
PATCH 66/93 arm: Remove ot1200 board
Quoted 9 lines · Christian Gmeiner
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <[email protected]>:
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?
Yes, as a start you need to switch over to using CONFIG_OF_CONTROL and selecting/providing a dtb file. I see ot1200 is using DWC_AHSATA which needs more work, but this is the board-level work that needs doing.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181122/09a469af/attachment.sig>
PATCH 66/93 arm: Remove ot1200 board
Quoted 8 lines · Tom Rini
Quoted 6 lines · Christian Gmeiner
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <[email protected]>:
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.
Quoted 7 lines
Quoted 3 lines
As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
Signature · 2 lines
Best regards, Marek Vasut
PATCH 66/93 arm: Remove ot1200 board
Quoted 13 lines · Marek Vasut
Quoted 12 lines · Tom Rini
Quoted 9 lines · Christian Gmeiner
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <[email protected]>:
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?
Quoted 6 lines
Quoted 3 lines
Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181122/45680176/attachment.sig>
PATCH 66/93 arm: Remove ot1200 board
Quoted 18 lines · Tom Rini
Quoted 17 lines · Marek Vasut
Quoted 15 lines · Tom Rini
Quoted 9 lines · Christian Gmeiner
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <[email protected]>:
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.
Quoted 5 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
If the board is limited, can it use only platdata ? Some platforms don't even have DT support at all.
Signature · 2 lines
Best regards, Marek Vasut
PATCH 66/93 arm: Remove ot1200 board
Quoted 19 lines · Marek Vasut
Quoted 18 lines · Tom Rini
Quoted 17 lines · Marek Vasut
Quoted 15 lines · Tom Rini
Quoted 9 lines · Christian Gmeiner
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <[email protected]>:
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
If the board is limited, can it use only platdata ? Some platforms don't even have DT support at all.
I'm sorry, I don't quite follow you. If the board has limited resources prior to full U-Boot then yes, platform data. If the board has so limited resources during full U-Boot that we can't have a DT, what platform are we talking about?
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181122/4af5d5e6/attachment.sig>
PATCH 66/93 arm: Remove ot1200 board
Quoted 26 lines · Tom Rini
Quoted 25 lines · Marek Vasut
Quoted 23 lines · Tom Rini
Quoted 13 lines · Marek Vasut
Quoted 12 lines · Tom Rini
Quoted 9 lines · Christian Gmeiner
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <[email protected]>:
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Quoted 6 lines
Quoted 3 lines
Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 7 lines
Quoted 2 lines
If the board is limited, can it use only platdata ? Some platforms don't even have DT support at all.
I'm sorry, I don't quite follow you. If the board has limited resources prior to full U-Boot then yes, platform data. If the board has so limited resources during full U-Boot that we can't have a DT, what platform are we talking about?
I don't have one in mind, but I don't think the DT/platdata selection is specific to SPL. If a platform doesn't have DT support, it can very well use platdata throughout the whole process.
Signature · 2 lines
Best regards, Marek Vasut
PATCH 66/93 arm: Remove ot1200 board
In reply to Tom RiniAm Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.
Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Simon
Quoted 1 line
PATCH 66/93 arm: Remove ot1200 board
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint, am335x_hs_evm is a reasonable thing to look at in this case.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181122/799406f5/attachment.sig>
PATCH 66/93 arm: Remove ot1200 board
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.
Also 'rock' uses CONFIG_OF_PLATDATA which provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.
firefly-rk3288 is a pretty good DM/DT example, including SPL.
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
Quoted 50 lines · Simon Glass
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.
Quoted 5 lines
Also 'rock' uses
CONFIG_OF_PLATDATAwhich provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.firefly-rk3288 is a pretty good DM/DT example, including SPL.
I've currently got an issue on socfpga gen5 that could be solved best by enabling CONFIG_OF_EMBED (mixing const and non-const sections is a problem for CRC calculation). However, it could probably also solve by using platform data (but that doesn't work out of the box, yet). The problem with CONFIG_OF_EMBED is that I think it's OK to enable this for SPL but I don't like enabling it for U-Boot, so:
Would it make sense to duplicate the whole "Provider of DTB for OF control" choice so that it can be OF_EMBED for SPL but different for U-Boot? Or does it make more sense to convert socfpga gen5 to use OF_PLATDATA?
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
Hi Simon,
Quoted 65 lines · Simon Goldschmidt
Quoted 50 lines · Simon Glass
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.Quoted 5 lines
Also 'rock' uses
CONFIG_OF_PLATDATAwhich provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.firefly-rk3288 is a pretty good DM/DT example, including SPL.
I've currently got an issue on socfpga gen5 that could be solved best by enabling
CONFIG_OF_EMBED(mixing const and non-const sections is a problem for CRC calculation). However, it could probably also solve by using platform data (but that doesn't work out of the box, yet). The problem withCONFIG_OF_EMBEDis that I think it's OK to enable this for SPL but I don't like enabling it for U-Boot, so:
Quoted 4 lines
Would it make sense to duplicate the whole "Provider of DTB for OF control" choice so that it can be
OF_EMBEDfor SPL but different for U-Boot? Or does it make more sense to convert socfpga gen5 to useOF_PLATDATA?
We should not be using OF_EMBED in in-tree boards or production code. Can you please explain the issue a bit more?
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
[I've cut down the CC list a bit due to some gmail warnings]
Quoted 70 lines · Simon Glass
Hi Simon,
Quoted 65 lines · Simon Goldschmidt
Quoted 50 lines · Simon Glass
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.Quoted 5 lines
Also 'rock' uses
CONFIG_OF_PLATDATAwhich provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.firefly-rk3288 is a pretty good DM/DT example, including SPL.
I've currently got an issue on socfpga gen5 that could be solved best by enabling
CONFIG_OF_EMBED(mixing const and non-const sections is a problem for CRC calculation). However, it could probably also solve by using platform data (but that doesn't work out of the box, yet). The problem withCONFIG_OF_EMBEDis that I think it's OK to enable this for SPL but I don't like enabling it for U-Boot, so:
Quoted 6 lines
Quoted 4 lines
Would it make sense to duplicate the whole "Provider of DTB for OF control" choice so that it can be
OF_EMBEDfor SPL but different for U-Boot? Or does it make more sense to convert socfpga gen5 to useOF_PLATDATA?We should not be using
OF_EMBEDin in-tree boards or production code.
What's the reason for this? I can understand this for U-Boot, and I can understand that it's at least theoretically a bit cleaner for SPL, too. But there are some drawbacks when doing this in SPL where code is not relocated:
- you lose the ability to check total size in linker file (which is bad for size-constrained platforms: sometimes you notice failure only when booting)
- you get an inconsistent memory layout regarding read/write: the linker places bss at the end but then, DTB follows as const data
- binary size "on disk" grows due to this inconsistent memory layout (since the flat binary includes the DTB, it needs to include the zeroed-out bss, too)
- "spl/u-boot-spl.hex" created by the default Makefiles does not seem to include the DTB
Quoted 1 line
Can you please explain the issue a bit more?
Of course: socfpga gen5 has a feature where the boot rom can jump to SPL in SRAM on warm boot. To ensure SPL is still valid after a reboot, the boot rom can check its consistency by calculating a CRC over one specified range in SRAM. On first boot, SPL stores its start, length and CRC value to special registers for the boot rom. Since the contents of bss changes while SPL is running, bss cannot be included in this CRC range. (Same goes for the '.data' region, but it's possible to build SPL without actually using it.)
So to ensure the DTB is untouched, I have to make sure it has a lower address than the bss section. Using OF_EMBED does this for me. And I expect using platform data would work too. Do you have another idea how to achieve my goal of combining all write-only sections in SPL into one block?
Oh, and I currently count 109 defconfig files containing "OF_EMBED", so I wasn't aware that this should not be used. Maybe these platforms have similar reasons like I have and would enable OF_EMBED only for SPL if they could. At least for socfpga_stratix10 that should work.
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
Hi Simon,
Quoted 80 lines · Simon Goldschmidt
[I've cut down the CC list a bit due to some gmail warnings]
Quoted 70 lines · Simon Glass
Hi Simon,
Quoted 65 lines · Simon Goldschmidt
Quoted 50 lines · Simon Glass
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.Quoted 5 lines
Also 'rock' uses
CONFIG_OF_PLATDATAwhich provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.firefly-rk3288 is a pretty good DM/DT example, including SPL.
I've currently got an issue on socfpga gen5 that could be solved best by enabling
CONFIG_OF_EMBED(mixing const and non-const sections is a problem for CRC calculation). However, it could probably also solve by using platform data (but that doesn't work out of the box, yet). The problem withCONFIG_OF_EMBEDis that I think it's OK to enable this for SPL but I don't like enabling it for U-Boot, so:Quoted 6 lines
Quoted 4 lines
Would it make sense to duplicate the whole "Provider of DTB for OF control" choice so that it can be
OF_EMBEDfor SPL but different for U-Boot? Or does it make more sense to convert socfpga gen5 to useOF_PLATDATA?We should not be using
OF_EMBEDin in-tree boards or production code.
Quoted 7 lines
What's the reason for this? I can understand this for U-Boot, and I can understand that it's at least theoretically a bit cleaner for SPL, too. But there are some drawbacks when doing this in SPL where code is not relocated:
- you lose the ability to check total size in linker file (which is bad for size-constrained platforms: sometimes you notice failure only when booting)
You can add an SPL size check in Makefile.spl if you like.
Quoted 2 lines
- you get an inconsistent memory layout regarding read/write: the linker places bss at the end but then, DTB follows as const data
This should be handled by the $(SPL-BIN)-pad.bin file (or by binman if you are using that).
Quoted 3 lines
- binary size "on disk" grows due to this inconsistent memory layout (since the flat binary includes the DTB, it needs to include the zeroed-out bss, too)
Right, but this is a few bytes. Why does it matter?
Quoted 2 lines
- "spl/u-boot-spl.hex" created by the default Makefiles does not seem to include the DTB
That might just be a bug.
Quoted 11 lines
Quoted 2 lines
Can you please explain the issue a bit more?
Of course: socfpga gen5 has a feature where the boot rom can jump to SPL in SRAM on warm boot. To ensure SPL is still valid after a reboot, the boot rom can check its consistency by calculating a CRC over one specified range in SRAM. On first boot, SPL stores its start, length and CRC value to special registers for the boot rom. Since the contents of bss changes while SPL is running, bss cannot be included in this CRC range. (Same goes for the '.data' region, but it's possible to build SPL without actually using it.)
How about calculating that checksum at build time instead? You could use binman to do that.
Quoted 6 lines
So to ensure the DTB is untouched, I have to make sure it has a lower address than the bss section. Using
OF_EMBEDdoes this for me. And I expect using platform data would work too. Do you have another idea how to achieve my goal of combining all write-only sections in SPL into one block?
Yes, do it at build time. Or calculate your CRC before you write any BSS variables.
Quoted 5 lines
Oh, and I currently count 109 defconfig files containing "
OF_EMBED", so I wasn't aware that this should not be used. Maybe these platforms have similar reasons like I have and would enableOF_EMBEDonly for SPL if they could. At least forsocfpga_stratix10that should work.
That is very bad news. I'll see about adding a Makefile warning.
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
Quoted 93 lines · Simon Glass
Hi Simon,
Quoted 80 lines · Simon Goldschmidt
[I've cut down the CC list a bit due to some gmail warnings]
Quoted 70 lines · Simon Glass
Hi Simon,
Quoted 65 lines · Simon Goldschmidt
Quoted 50 lines · Simon Glass
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 4 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.Quoted 5 lines
Also 'rock' uses
CONFIG_OF_PLATDATAwhich provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.firefly-rk3288 is a pretty good DM/DT example, including SPL.
I've currently got an issue on socfpga gen5 that could be solved best by enabling
CONFIG_OF_EMBED(mixing const and non-const sections is a problem for CRC calculation). However, it could probably also solve by using platform data (but that doesn't work out of the box, yet). The problem withCONFIG_OF_EMBEDis that I think it's OK to enable this for SPL but I don't like enabling it for U-Boot, so:Quoted 6 lines
Quoted 4 lines
Would it make sense to duplicate the whole "Provider of DTB for OF control" choice so that it can be
OF_EMBEDfor SPL but different for U-Boot? Or does it make more sense to convert socfpga gen5 to useOF_PLATDATA?We should not be using
OF_EMBEDin in-tree boards or production code.Quoted 7 lines
What's the reason for this? I can understand this for U-Boot, and I can understand that it's at least theoretically a bit cleaner for SPL, too. But there are some drawbacks when doing this in SPL where code is not relocated:
- you lose the ability to check total size in linker file (which is bad for size-constrained platforms: sometimes you notice failure only when booting)
Quoted 1 line
You can add an SPL size check in Makefile.spl if you like.
That might be required, yes.
Quoted 5 lines
Quoted 2 lines
- you get an inconsistent memory layout regarding read/write: the linker places bss at the end but then, DTB follows as const data
This should be handled by the $(SPL-BIN)-pad.bin file (or by binman if you are using that).
I don't understand that. How does the padding help? I have these sections (roughly):
- text: readonly
- bss: writable
- DTB: readonly, added as post build step after linking
How does $(SPL-BIN)-pad.bin help?
Quoted 10 lines
Quoted 3 lines
- binary size "on disk" grows due to this inconsistent memory layout (since the flat binary includes the DTB, it needs to include the zeroed-out bss, too)
Right, but this is a few bytes. Why does it matter?
Quoted 2 lines
- "spl/u-boot-spl.hex" created by the default Makefiles does not seem to include the DTB
That might just be a bug.
It might, yes. The hex file is currently built from the elf file, so there's no DTB in there.
Quoted 16 lines
Quoted 11 lines
Quoted 2 lines
Can you please explain the issue a bit more?
Of course: socfpga gen5 has a feature where the boot rom can jump to SPL in SRAM on warm boot. To ensure SPL is still valid after a reboot, the boot rom can check its consistency by calculating a CRC over one specified range in SRAM. On first boot, SPL stores its start, length and CRC value to special registers for the boot rom. Since the contents of bss changes while SPL is running, bss cannot be included in this CRC range. (Same goes for the '.data' region, but it's possible to build SPL without actually using it.)
How about calculating that checksum at build time instead? You could use binman to do that.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
So to ensure the DTB is untouched, I have to make sure it has a lower address than the bss section. Using
OF_EMBEDdoes this for me. And I expect using platform data would work too. Do you have another idea how to achieve my goal of combining all write-only sections in SPL into one block?Yes, do it at build time. Or calculate your CRC before you write any BSS variables.
Creating the correct checksum is not the point. I can do that before using bss.
The problem is that on the next boot, this checksum is not valid any more because bss might have changed.
Quoted 7 lines
Quoted 5 lines
Oh, and I currently count 109 defconfig files containing "
OF_EMBED", so I wasn't aware that this should not be used. Maybe these platforms have similar reasons like I have and would enableOF_EMBEDonly for SPL if they could. At least forsocfpga_stratix10that should work.That is very bad news. I'll see about adding a
Makefilewarning.
OK. Looking forward to the discussion that starts then :-)
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
Hi Simon,
Quoted 105 lines · Simon Goldschmidt
Quoted 93 lines · Simon Glass
Hi Simon,
Quoted 80 lines · Simon Goldschmidt
[I've cut down the CC list a bit due to some gmail warnings]
Quoted 70 lines · Simon Glass
Hi Simon,
Quoted 65 lines · Simon Goldschmidt
Quoted 50 lines · Simon Glass
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 4 lines
This board has not been converted to CONFIG_DM_BLK by the deadline.
Remove it.As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.Quoted 5 lines
Also 'rock' uses
CONFIG_OF_PLATDATAwhich provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.firefly-rk3288 is a pretty good DM/DT example, including SPL.
I've currently got an issue on socfpga gen5 that could be solved best by enabling
CONFIG_OF_EMBED(mixing const and non-const sections is a problem for CRC calculation). However, it could probably also solve by using platform data (but that doesn't work out of the box, yet). The problem withCONFIG_OF_EMBEDis that I think it's OK to enable this for SPL but I don't like enabling it for U-Boot, so:Quoted 6 lines
Quoted 4 lines
Would it make sense to duplicate the whole "Provider of DTB for OF control" choice so that it can be
OF_EMBEDfor SPL but different for U-Boot? Or does it make more sense to convert socfpga gen5 to useOF_PLATDATA?We should not be using
OF_EMBEDin in-tree boards or production code.Quoted 7 lines
What's the reason for this? I can understand this for U-Boot, and I can understand that it's at least theoretically a bit cleaner for SPL, too. But there are some drawbacks when doing this in SPL where code is not relocated:
- you lose the ability to check total size in linker file (which is bad for size-constrained platforms: sometimes you notice failure only when booting)Quoted 1 line
You can add an SPL size check in Makefile.spl if you like.
That might be required, yes.
Quoted 5 lines
Quoted 2 lines
- you get an inconsistent memory layout regarding read/write: the linker places bss at the end but then, DTB follows as const data
This should be handled by the $(SPL-BIN)-pad.bin file (or by binman if you are using that).
Quoted 7 lines
I don't understand that. How does the padding help? I have these sections (roughly):
- text: readonly
- bss: writable
- DTB: readonly, added as post build step after linkingHow does $(SPL-BIN)-pad.bin help?
It covers over the BSS section so that the image ends where the DTB starts, thus fixing the addressing issue you mentioned. It allows you to do this:
cat u-boot-spl-nodtb.bin u-boot-spl.dtn >-u-boot-spl.bin
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
- binary size "on disk" grows due to this inconsistent memory layout (since the flat binary includes the DTB, it needs to include the zeroed-out bss, too)
Right, but this is a few bytes. Why does it matter?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
- "spl/u-boot-spl.hex" created by the default Makefiles does not seem to include the DTB
That might just be a bug.
It might, yes. The hex file is currently built from the elf file, so there's no DTB in there.
OK. Could be worth a patch.
Quoted 23 lines
Quoted 23 lines
Quoted 4 lines
Quoted 3 lines
Can you please explain the issue a bit more?
Quoted 8 lines
Of course: socfpga gen5 has a feature where the boot rom can jump to SPL in SRAM on warm boot. To ensure SPL is still valid after a reboot, the boot rom can check its consistency by calculating a CRC over one specified range in SRAM. On first boot, SPL stores its start, length and CRC value to special registers for the boot rom. Since the contents of bss changes while SPL is running, bss cannot be included in this CRC range. (Same goes for the '.data' region, but it's possible to build SPL without actually using it.)
How about calculating that checksum at build time instead? You could use binman to do that.
Quoted 6 lines
So to ensure the DTB is untouched, I have to make sure it has a lower address than the bss section. Using
OF_EMBEDdoes this for me. And I expect using platform data would work too. Do you have another idea how to achieve my goal of combining all write-only sections in SPL into one block?
Quoted 7 lines
Quoted 2 lines
Yes, do it at build time. Or calculate your CRC before you write any BSS variables.
Creating the correct checksum is not the point. I can do that before using bss.
The problem is that on the next boot, this checksum is not valid any more because bss might have changed.
Right, but just skip the BSS section when checksumming - i.e. checksum the code and then the DT but omit the BSS.
Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
Oh, and I currently count 109 defconfig files containing "
OF_EMBED", so I wasn't aware that this should not be used. Maybe these platforms have similar reasons like I have and would enableOF_EMBEDonly for SPL if they could. At least forsocfpga_stratix10that should work.That is very bad news. I'll see about adding a
Makefilewarning.OK. Looking forward to the discussion that starts then :-)
Yes...
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
Am 05.12.2018 um 14:54 schrieb Simon Glass:
Quoted 166 lines
Hi Simon,
Quoted 105 lines · Simon Goldschmidt
Quoted 93 lines · Simon Glass
Hi Simon,
Quoted 80 lines · Simon Goldschmidt
[I've cut down the CC list a bit due to some gmail warnings]
Quoted 70 lines · Simon Glass
Hi Simon,
Quoted 65 lines · Simon Goldschmidt
Quoted 50 lines · Simon Glass
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Quoted 2 lines
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
This board has not been converted to CONFIG_DM_BLK by the deadline.
Remove it.As the board is still mainted I will NAK it for the moment. Are there
any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using
CONFIG_OF_CONTROLand selecting/providing a dtb file. I see ot1200 is usingDWC_AHSATAwhich needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.Quoted 5 lines
Also 'rock' uses
CONFIG_OF_PLATDATAwhich provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.firefly-rk3288 is a pretty good DM/DT example, including SPL.
I've currently got an issue on socfpga gen5 that could be solved best by enabling
CONFIG_OF_EMBED(mixing const and non-const sections is a problem for CRC calculation). However, it could probably also solve by using platform data (but that doesn't work out of the box, yet). The problem withCONFIG_OF_EMBEDis that I think it's OK to enable this for SPL but I don't like enabling it for U-Boot, so:Quoted 6 lines
Quoted 4 lines
Would it make sense to duplicate the whole "Provider of DTB for OF control" choice so that it can be
OF_EMBEDfor SPL but different for U-Boot? Or does it make more sense to convert socfpga gen5 to useOF_PLATDATA?We should not be using
OF_EMBEDin in-tree boards or production code.Quoted 7 lines
What's the reason for this? I can understand this for U-Boot, and I can understand that it's at least theoretically a bit cleaner for SPL, too. But there are some drawbacks when doing this in SPL where code is not relocated:
- you lose the ability to check total size in linker file (which is bad for size-constrained platforms: sometimes you notice failure only when booting)Quoted 1 line
You can add an SPL size check in Makefile.spl if you like.
That might be required, yes.
Quoted 5 lines
Quoted 2 lines
- you get an inconsistent memory layout regarding read/write: the linker places bss at the end but then, DTB follows as const data
This should be handled by the $(SPL-BIN)-pad.bin file (or by binman if you are using that).
Quoted 7 lines
I don't understand that. How does the padding help? I have these sections (roughly):
- text: readonly
- bss: writable
- DTB: readonly, added as post build step after linkingHow does $(SPL-BIN)-pad.bin help?
It covers over the BSS section so that the image ends where the DTB starts, thus fixing the addressing issue you mentioned. It allows you to do this:
cat u-boot-spl-nodtb.bin u-boot-spl.dtn >-u-boot-spl.bin
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
- binary size "on disk" grows due to this inconsistent memory layout (since the flat binary includes the DTB, it needs to include the zeroed-out bss, too)
Right, but this is a few bytes. Why does it matter?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
- "spl/u-boot-spl.hex" created by the default Makefiles does not seem to include the DTB
That might just be a bug.
It might, yes. The hex file is currently built from the elf file, so there's no DTB in there.
OK. Could be worth a patch.
Quoted 26 lines
Quoted 25 lines
Quoted 4 lines
Quoted 3 lines
Can you please explain the issue a bit more?
Quoted 8 lines
Of course: socfpga gen5 has a feature where the boot rom can jump to SPL in SRAM on warm boot. To ensure SPL is still valid after a reboot, the boot rom can check its consistency by calculating a CRC over one specified range in SRAM. On first boot, SPL stores its start, length and CRC value to special registers for the boot rom. Since the contents of bss changes while SPL is running, bss cannot be included in this CRC range. (Same goes for the '.data' region, but it's possible to build SPL without actually using it.)
How about calculating that checksum at build time instead? You could use binman to do that.
Quoted 6 lines
So to ensure the DTB is untouched, I have to make sure it has a lower address than the bss section. Using
OF_EMBEDdoes this for me. And I expect using platform data would work too. Do you have another idea how to achieve my goal of combining all write-only sections in SPL into one block?Yes, do it at build time. Or calculate your CRC before you write any BSS variables.
Quoted 7 lines
Quoted 4 lines
Creating the correct checksum is not the point. I can do that before using bss.
The problem is that on the next boot, this checksum is not valid any more because bss might have changed.
Right, but just skip the BSS section when checksumming - i.e. checksum the code and then the DT but omit the BSS.
Yeah, well, good idea but that's not possible. The boot rom checks this checksum on warm restart and it can only check the CRC of one block. And of course I canno change the boot rom.
So the only option I have without using OF_EMBED is to drop the CRC of the DT, which is not really an option...
Regards,
Simon
Quoted 14 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Oh, and I currently count 109 defconfig files containing "
OF_EMBED", so I wasn't aware that this should not be used. Maybe these platforms have similar reasons like I have and would enableOF_EMBEDonly for SPL if they could. At least forsocfpga_stratix10that should work.That is very bad news. I'll see about adding a
Makefilewarning.OK. Looking forward to the discussion that starts then :-)
Yes...
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
Hi Simon,
Quoted 176 lines · Simon Goldschmidt
Am 05.12.2018 um 14:54 schrieb Simon Glass:
Quoted 166 lines
Hi Simon,
Quoted 105 lines · Simon Goldschmidt
Quoted 93 lines · Simon Glass
Hi Simon,
Quoted 80 lines · Simon Goldschmidt
[I've cut down the CC list a bit due to some gmail warnings]
Quoted 70 lines · Simon Glass
Hi Simon,
Quoted 65 lines · Simon Goldschmidt
Quoted 50 lines · Simon Glass
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
Quoted 3 lines · Christian Gmeiner
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
Quoted 12 lines
This board has not been converted to CONFIG_DM_BLK by the deadline.
Remove it.As the board is still mainted I will NAK it for the moment. Are there
any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using CONFIG_OF_CONTROL and
selecting/providing a dtb file. I see ot1200 is using DWC_AHSATA which
needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of DT ? Or is DT mandatory now , including the libfdt overhead ?
In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.Quoted 5 lines
Also 'rock' uses
CONFIG_OF_PLATDATAwhich provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.firefly-rk3288 is a pretty good DM/DT example, including SPL.
I've currently got an issue on socfpga gen5 that could be solved best by enabling
CONFIG_OF_EMBED(mixing const and non-const sections is a problem for CRC calculation). However, it could probably also solve by using platform data (but that doesn't work out of the box, yet). The problem withCONFIG_OF_EMBEDis that I think it's OK to enable this for SPL but I don't like enabling it for U-Boot, so:Quoted 6 lines
Quoted 4 lines
Would it make sense to duplicate the whole "Provider of DTB for OF control" choice so that it can be
OF_EMBEDfor SPL but different for U-Boot? Or does it make more sense to convert socfpga gen5 to useOF_PLATDATA?We should not be using
OF_EMBEDin in-tree boards or production code.Quoted 7 lines
What's the reason for this? I can understand this for U-Boot, and I can understand that it's at least theoretically a bit cleaner for SPL, too. But there are some drawbacks when doing this in SPL where code is not relocated:
- you lose the ability to check total size in linker file (which is bad for size-constrained platforms: sometimes you notice failure only when booting)Quoted 1 line
You can add an SPL size check in Makefile.spl if you like.
That might be required, yes.
Quoted 5 lines
Quoted 2 lines
- you get an inconsistent memory layout regarding read/write: the linker places bss at the end but then, DTB follows as const data
This should be handled by the $(SPL-BIN)-pad.bin file (or by binman if you are using that).
Quoted 7 lines
I don't understand that. How does the padding help? I have these sections (roughly):
- text: readonly
- bss: writable
- DTB: readonly, added as post build step after linkingHow does $(SPL-BIN)-pad.bin help?
It covers over the BSS section so that the image ends where the DTB starts, thus fixing the addressing issue you mentioned. It allows you to do this:
cat u-boot-spl-nodtb.bin u-boot-spl.dtn >-u-boot-spl.bin
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
- binary size "on disk" grows due to this inconsistent memory layout (since the flat binary includes the DTB, it needs to include the zeroed-out bss, too)
Right, but this is a few bytes. Why does it matter?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
- "spl/u-boot-spl.hex" created by the default Makefiles does not seem to include the DTB
That might just be a bug.
It might, yes. The hex file is currently built from the elf file, so there's no DTB in there.
OK. Could be worth a patch.
Quoted 26 lines
Quoted 25 lines
Quoted 4 lines
Quoted 3 lines
Can you please explain the issue a bit more?
Quoted 8 lines
Of course: socfpga gen5 has a feature where the boot rom can jump to SPL in SRAM on warm boot. To ensure SPL is still valid after a reboot, the boot rom can check its consistency by calculating a CRC over one specified range in SRAM. On first boot, SPL stores its start, length and CRC value to special registers for the boot rom. Since the contents of bss changes while SPL is running, bss cannot be included in this CRC range. (Same goes for the '.data' region, but it's possible to build SPL without actually using it.)
How about calculating that checksum at build time instead? You could use binman to do that.
Quoted 6 lines
So to ensure the DTB is untouched, I have to make sure it has a lower address than the bss section. Using
OF_EMBEDdoes this for me. And I expect using platform data would work too. Do you have another idea how to achieve my goal of combining all write-only sections in SPL into one block?Yes, do it at build time. Or calculate your CRC before you write any BSS variables.
Quoted 7 lines
Quoted 4 lines
Creating the correct checksum is not the point. I can do that before using bss.
The problem is that on the next boot, this checksum is not valid any more because bss might have changed.
Right, but just skip the BSS section when checksumming - i.e. checksum the code and then the DT but omit the BSS.
Quoted 6 lines
Yeah, well, good idea but that's not possible. The boot rom checks this checksum on warm restart and it can only check the CRC of one block. And of course I canno change the boot rom.
So the only option I have without using
OF_EMBEDis to drop the CRC of the DT, which is not really an option...
Really it sounds like you want to move the BSS after the DT. We don't have a way of doing that at present.
But I suppose it would be easy enough to arrange, by putting a placeholder for the DT in the link script. We just need a variable which holds the DT size and then can use '. = . + DT_SIZE' to reserve the space.
Regards,
Simon
Quoted 19 lines
Regards,
SimonQuoted 14 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Oh, and I currently count 109 defconfig files containing "
OF_EMBED", so I wasn't aware that this should not be used. Maybe these platforms have similar reasons like I have and would enableOF_EMBEDonly for SPL if they could. At least forsocfpga_stratix10that should work.That is very bad news. I'll see about adding a
Makefilewarning.OK. Looking forward to the discussion that starts then :-)
Yes...
Regards,
Simon
PATCH 66/93 arm: Remove ot1200 board
Am 05.12.2018 um 16:55 schrieb Simon Glass:
Quoted 187 lines
Hi Simon,
Quoted 176 lines · Simon Goldschmidt
Am 05.12.2018 um 14:54 schrieb Simon Glass:
Quoted 166 lines
Hi Simon,
Quoted 105 lines · Simon Goldschmidt
Quoted 93 lines · Simon Glass
Hi Simon,
Quoted 80 lines · Simon Goldschmidt
[I've cut down the CC list a bit due to some gmail warnings]
Quoted 70 lines · Simon Glass
Hi Simon,
Quoted 65 lines · Simon Goldschmidt
Quoted 50 lines · Simon Glass
Hi,
Quoted 37 lines · Tom Rini
Quoted 28 lines · Simon Goldschmidt
Am Do., 22. Nov. 2018, 14:44 hat Tom Rini <[email protected]> geschrieben:
Quoted 19 lines · Marek Vasut
Quoted 4 lines · Tom Rini
On Thu, Nov 22, 2018 at 10:25:14AM +0100, Christian Gmeiner wrote:
Am Mo., 19. Nov. 2018 um 16:56 Uhr schrieb Simon Glass <
sjg at chromium.org>:
Quoted 13 lines
This board has not been converted to CONFIG_DM_BLK by the deadline.
Remove it.As the board is still mainted I will NAK it for the moment. Are there
any hints want needs to be done
to port thie board over to new DM stuff?Yes, as a start you need to switch over to using CONFIG_OF_CONTROL and
selecting/providing a dtb file. I see ot1200 is using DWC_AHSATA which
needs more work, but this is the board-level work that needs doing.Quoted 6 lines
Quoted 2 lines
Wasn't there a possibility to use platform data in board file instead of
DT ? Or is DT mandatory now , including the libfdt overhead ?In short, DT for U-Boot and platform data for SPL is what's recommended, yes.
Quoted 6 lines
This is a little confusing for me. Socfpga gen5 SPL doesn't do that. And it seems a little strange or outdated overall.
Would there be some kind of reference architecture or mach to look at what's the suggested/up-to-date way to implement SPL? Also regarding code flow?
Quoted 8 lines
So, SPL is where things get, ahem, fuzzy. While I don't want to encourage boundless growth in U-Boot proper, we aren't exactly size constrained (but rather, functional/logical constrained). But in SPL, yes, we have many platforms with 32/64/128 kilobyte hard limits (and some smaller) and we can't always shove in a "TPL" before SPL either. So in SPL we do make use of platform data instead. While not the smallest size constraint,
am335x_hs_evmis a reasonable thing to look at in this case.Quoted 5 lines
Also 'rock' uses
CONFIG_OF_PLATDATAwhich provides a halfway house - still uses DT, but it gets converted into C structs so saves code space.firefly-rk3288 is a pretty good DM/DT example, including SPL.
I've currently got an issue on socfpga gen5 that could be solved best by enabling
CONFIG_OF_EMBED(mixing const and non-const sections is a problem for CRC calculation). However, it could probably also solve by using platform data (but that doesn't work out of the box, yet). The problem withCONFIG_OF_EMBEDis that I think it's OK to enable this for SPL but I don't like enabling it for U-Boot, so:Quoted 6 lines
Quoted 4 lines
Would it make sense to duplicate the whole "Provider of DTB for OF control" choice so that it can be
OF_EMBEDfor SPL but different for U-Boot? Or does it make more sense to convert socfpga gen5 to useOF_PLATDATA?We should not be using
OF_EMBEDin in-tree boards or production code.Quoted 7 lines
What's the reason for this? I can understand this for U-Boot, and I can understand that it's at least theoretically a bit cleaner for SPL, too. But there are some drawbacks when doing this in SPL where code is not relocated:
- you lose the ability to check total size in linker file (which is bad for size-constrained platforms: sometimes you notice failure only when booting)Quoted 1 line
You can add an SPL size check in Makefile.spl if you like.
That might be required, yes.
Quoted 5 lines
Quoted 2 lines
- you get an inconsistent memory layout regarding read/write: the linker places bss at the end but then, DTB follows as const data
This should be handled by the $(SPL-BIN)-pad.bin file (or by binman if you are using that).
Quoted 7 lines
I don't understand that. How does the padding help? I have these sections (roughly):
- text: readonly
- bss: writable
- DTB: readonly, added as post build step after linkingHow does $(SPL-BIN)-pad.bin help?
It covers over the BSS section so that the image ends where the DTB starts, thus fixing the addressing issue you mentioned. It allows you to do this:
cat u-boot-spl-nodtb.bin u-boot-spl.dtn >-u-boot-spl.bin
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
- binary size "on disk" grows due to this inconsistent memory layout (since the flat binary includes the DTB, it needs to include the zeroed-out bss, too)
Right, but this is a few bytes. Why does it matter?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
- "spl/u-boot-spl.hex" created by the default Makefiles does not seem to include the DTB
That might just be a bug.
It might, yes. The hex file is currently built from the elf file, so there's no DTB in there.
OK. Could be worth a patch.
Quoted 26 lines
Quoted 25 lines
Quoted 4 lines
Quoted 3 lines
Can you please explain the issue a bit more?
Quoted 8 lines
Of course: socfpga gen5 has a feature where the boot rom can jump to SPL in SRAM on warm boot. To ensure SPL is still valid after a reboot, the boot rom can check its consistency by calculating a CRC over one specified range in SRAM. On first boot, SPL stores its start, length and CRC value to special registers for the boot rom. Since the contents of bss changes while SPL is running, bss cannot be included in this CRC range. (Same goes for the '.data' region, but it's possible to build SPL without actually using it.)
How about calculating that checksum at build time instead? You could use binman to do that.
Quoted 6 lines
So to ensure the DTB is untouched, I have to make sure it has a lower address than the bss section. Using
OF_EMBEDdoes this for me. And I expect using platform data would work too. Do you have another idea how to achieve my goal of combining all write-only sections in SPL into one block?Yes, do it at build time. Or calculate your CRC before you write any BSS variables.
Quoted 7 lines
Quoted 4 lines
Creating the correct checksum is not the point. I can do that before using bss.
The problem is that on the next boot, this checksum is not valid any more because bss might have changed.
Right, but just skip the BSS section when checksumming - i.e. checksum the code and then the DT but omit the BSS.
Quoted 6 lines
Yeah, well, good idea but that's not possible. The boot rom checks this checksum on warm restart and it can only check the CRC of one block. And of course I canno change the boot rom.
So the only option I have without using
OF_EMBEDis to drop the CRC of the DT, which is not really an option...
Quoted 7 lines
Really it sounds like you want to move the BSS after the DT. We don't have a way of doing that at present.
But I suppose it would be easy enough to arrange, by putting a placeholder for the DT in the link script. We just need a variable which holds the DT size and then can use '. = . +
DT_SIZE' to reserve the space.
That's a good idea. I might try that as soon as I find the time to continue working on that boot-crc issue.
Thanks,
Simon
Quoted 23 lines
Regards,
SimonQuoted 19 lines
Regards,
SimonQuoted 14 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Oh, and I currently count 109 defconfig files containing "
OF_EMBED", so I wasn't aware that this should not be used. Maybe these platforms have similar reasons like I have and would enableOF_EMBEDonly for SPL if they could. At least forsocfpga_stratix10that should work.That is very bad news. I'll see about adding a
Makefilewarning.OK. Looking forward to the discussion that starts then :-)
Yes...
Regards,
Simon
Fabio Estevam
reviewerPATCH 66/93 arm: Remove ot1200 board
In reply to Christian GmeinerHi Christian,
Quoted 3 lines · Christian Gmeiner
As the board is still mainted I will NAK it for the moment. Are there any hints want needs to be done
to port thie board over to new DM stuff?
There are some imx boards that use DM:
git grep CONFIG_OF_CONTROL configs/ | grep mx
You can use them as a reference for converting ot1200.
Regards,
Fabio Estevam
PATCH 67/93 arm: Remove socfpga_stratix10 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
board/altera/stratix10-socdk/MAINTAINERS | 7 - board/altera/stratix10-socdk/Makefile | 7 - board/altera/stratix10-socdk/socfpga.c | 7 - configs/socfpga_stratix10_defconfig | 59 ------ include/configs/socfpga_stratix10_socdk.h | 221 ---------------------- 5 files changed, 301 deletions(-) delete mode 100644 board/altera/stratix10-socdk/MAINTAINERS delete mode 100644 board/altera/stratix10-socdk/Makefile delete mode 100644 board/altera/stratix10-socdk/socfpga.c delete mode 100644 configs/socfpga_stratix10_defconfig delete mode 100644 include/configs/socfpga_stratix10_socdk.h
board/altera/stratix10-socdk/MAINTAINERS deleted +0 -7
@@ -1,7 +0,0 @@ -SOCFPGA BOARD -M: Chin-Liang See <[email protected]> -M: Dinh Nguyen <[email protected]> -S: Maintained -F: board/altera/stratix10-socdk/ -F: include/configs/socfpga_stratix10_socdk.h -F: configs/socfpga_stratix10_defconfig
board/altera/stratix10-socdk/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# Copyright (C) 2016-2017 Intel Corporation <www.intel.com> -# -# SPDX-License-Identifier: GPL-2.0 -# - -obj-y := socfpga.o
board/altera/stratix10-socdk/socfpga.c deleted +0 -7
@@ -1,7 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2016-2018 Intel Corporation <www.intel.com> -* -*/ - -#include <common.h>
configs/socfpga_stratix10_defconfig deleted +0 -59
59 lines not on this page · raw message
include/configs/socfpga_stratix10_socdk.h deleted +0 -221
221 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
Ley Foon Tan
NAKPATCH 67/93 arm: Remove socfpga_stratix10 board
Quoted 7 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 12 lines
board/altera/stratix10-socdk/MAINTAINERS | 7 - board/altera/stratix10-socdk/Makefile | 7 - board/altera/stratix10-socdk/socfpga.c | 7 - configs/socfpga_stratix10_defconfig | 59 ------ include/configs/socfpga_stratix10_socdk.h | 221 ---------------------- 5 files changed, 301 deletions(-) delete mode 100644 board/altera/stratix10-socdk/MAINTAINERS delete mode 100644 board/altera/stratix10-socdk/Makefile delete mode 100644 board/altera/stratix10-socdk/socfpga.c delete mode 100644 configs/socfpga_stratix10_defconfig delete mode 100644 include/configs/socfpga_stratix10_socdk.h
NAK
Are you refer to CONFIG_BLK?
After "make socfpga_stratix10_defconfig", CONFIG_BLK and CONIF_DM are enabled.
$ make socfpga_stratix10_defconfig # # configuration written to .config #
$ cat .config | grep CONFIG_BLK CONFIG_BLK=y
$ cat .config | grep -w CONFIG_DM CONFIG_DM=y
$ cat .config | grep -w CONFIG_DM_MMC CONFIG_DM_MMC=y
CONFIG_BLK is not in socfpga_stratix10_defconfig because it is enabled by default if CONFIG_DM_MMC is enabled.
In drivers/block/Kconfig:
config BLK
bool "Support block devices"
depends on DM
default y if DM_MMC
Regards
Ley Foon
PATCH 67/93 arm: Remove socfpga_stratix10 board
Hi,
Quoted 21 lines · Ley Foon Tan
Quoted 7 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 12 lines
board/altera/stratix10-socdk/MAINTAINERS | 7 - board/altera/stratix10-socdk/Makefile | 7 - board/altera/stratix10-socdk/socfpga.c | 7 - configs/socfpga_stratix10_defconfig | 59 ------ include/configs/socfpga_stratix10_socdk.h | 221 ---------------------- 5 files changed, 301 deletions(-) delete mode 100644 board/altera/stratix10-socdk/MAINTAINERS delete mode 100644 board/altera/stratix10-socdk/Makefile delete mode 100644 board/altera/stratix10-socdk/socfpga.c delete mode 100644 configs/socfpga_stratix10_defconfig delete mode 100644 include/configs/socfpga_stratix10_socdk.h
Quoted 4 lines
NAK
Are you refer to
CONFIG_BLK?
Yes that's right
Quoted 22 lines
After "make
socfpga_stratix10_defconfig",CONFIG_BLKandCONIF_DMare enabled.$ make socfpga_stratix10_defconfig # # configuration written to .config #$ cat .config | grep CONFIG_BLK CONFIG_BLK=y$ cat .config | grep -w CONFIG_DM CONFIG_DM=y$ cat .config | grep -w CONFIG_DM_MMC CONFIG_DM_MMC=y
CONFIG_BLKis not insocfpga_stratix10_defconfigbecause it is enabled by default ifCONFIG_DM_MMCis enabled.
Quoted 7 lines
In
drivers/block/Kconfig:config BLK
bool "Support block devices"
depends on DM
default y ifDM_MMC
The problem here is in SPL - I removed the 'default y' for SPL_BLK. This was because it created a lot more breakages.
However, I think it is best that I put that back, and require boards that doesn't support CONFIG_BLK in SPL to remove it themselves. It will require more work now, but in the long run, defaulting to on in SPL seems better.
So your board will be fine, sorry for the trouble.
Regards,
Simon
PATCH 67/93 arm: Remove socfpga_stratix10 board
Quoted 63 lines · Simon Glass
Hi,
Quoted 21 lines · Ley Foon Tan
Quoted 7 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 12 lines
board/altera/stratix10-socdk/MAINTAINERS | 7 - board/altera/stratix10-socdk/Makefile | 7 - board/altera/stratix10-socdk/socfpga.c | 7 - configs/socfpga_stratix10_defconfig | 59 ------ include/configs/socfpga_stratix10_socdk.h | 221 ---------------------- 5 files changed, 301 deletions(-) delete mode 100644 board/altera/stratix10-socdk/MAINTAINERS delete mode 100644 board/altera/stratix10-socdk/Makefile delete mode 100644 board/altera/stratix10-socdk/socfpga.c delete mode 100644 configs/socfpga_stratix10_defconfig delete mode 100644 include/configs/socfpga_stratix10_socdk.hQuoted 4 lines
NAK
Are you refer to
CONFIG_BLK?Yes that's right
Quoted 22 lines
After "make
socfpga_stratix10_defconfig",CONFIG_BLKandCONIF_DMare enabled.$ make socfpga_stratix10_defconfig # # configuration written to .config #$ cat .config | grep CONFIG_BLK CONFIG_BLK=y$ cat .config | grep -w CONFIG_DM CONFIG_DM=y$ cat .config | grep -w CONFIG_DM_MMC CONFIG_DM_MMC=y
CONFIG_BLKis not insocfpga_stratix10_defconfigbecause it is enabled by default ifCONFIG_DM_MMCis enabled.Quoted 7 lines
In
drivers/block/Kconfig:config BLK
bool "Support block devices"
depends on DM
default y ifDM_MMCThe problem here is in SPL - I removed the 'default y' for
SPL_BLK. This was because it created a lot more breakages.
Quoted 6 lines
However, I think it is best that I put that back, and require boards that doesn't support
CONFIG_BLKin SPL to remove it themselves. It will require more work now, but in the long run, defaulting to on in SPL seems better.So your board will be fine, sorry for the trouble.
Note that we're going to need to come up with some sort of compromise for what we do in SPL as we do have serious size constraints to worry about.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181122/a780433e/attachment.sig>
PATCH 67/93 arm: Remove socfpga_stratix10 board
Hi Tom,
Quoted 70 lines · Tom Rini
Quoted 68 lines · Simon Glass
Hi,
Quoted 21 lines · Ley Foon Tan
Quoted 7 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 12 lines
board/altera/stratix10-socdk/MAINTAINERS | 7 - board/altera/stratix10-socdk/Makefile | 7 - board/altera/stratix10-socdk/socfpga.c | 7 - configs/socfpga_stratix10_defconfig | 59 ------ include/configs/socfpga_stratix10_socdk.h | 221 ---------------------- 5 files changed, 301 deletions(-) delete mode 100644 board/altera/stratix10-socdk/MAINTAINERS delete mode 100644 board/altera/stratix10-socdk/Makefile delete mode 100644 board/altera/stratix10-socdk/socfpga.c delete mode 100644 configs/socfpga_stratix10_defconfig delete mode 100644 include/configs/socfpga_stratix10_socdk.hQuoted 4 lines
NAK
Are you refer to
CONFIG_BLK?Yes that's right
Quoted 22 lines
After "make
socfpga_stratix10_defconfig",CONFIG_BLKandCONIF_DMare enabled.$ make socfpga_stratix10_defconfig # # configuration written to .config #$ cat .config | grep CONFIG_BLK CONFIG_BLK=y$ cat .config | grep -w CONFIG_DM CONFIG_DM=y$ cat .config | grep -w CONFIG_DM_MMC CONFIG_DM_MMC=y
CONFIG_BLKis not insocfpga_stratix10_defconfigbecause it is enabled by default ifCONFIG_DM_MMCis enabled.Quoted 7 lines
In
drivers/block/Kconfig:config BLK
bool "Support block devices"
depends on DM
default y ifDM_MMCThe problem here is in SPL - I removed the 'default y' for
SPL_BLK. This was because it created a lot more breakages.However, I think it is best that I put that back, and require boards that doesn't support
CONFIG_BLKin SPL to remove it themselves. It will require more work now, but in the long run, defaulting to on in SPL seems better.
Quoted 5 lines
Quoted 1 line
So your board will be fine, sorry for the trouble.
Note that we're going to need to come up with some sort of compromise for what we do in SPL as we do have serious size constraints to worry about.
Indeed. I think I might need to dig into this a bit. SPL_BLK itself is about the same size as the legacy code (or was when I do the conversion) as I was very concerned about size. However if we have anything using the legacy block stuff, we cannot remove it. This might need more thought.
Regards,
Simon
PATCH 68/93 arm: Remove am65x_evm_a53 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-k3/Kconfig | 1 - board/ti/am65x/Kconfig | 52 -------- board/ti/am65x/MAINTAINERS | 7 -- board/ti/am65x/Makefile | 8 -- board/ti/am65x/README | 211 -------------------------------- board/ti/am65x/evm.c | 68 ---------- configs/am65x_evm_a53_defconfig | 71 ----------- configs/am65x_evm_r5_defconfig | 87 ------------- include/configs/am65x_evm.h | 75 ------------ 9 files changed, 580 deletions(-) delete mode 100644 board/ti/am65x/Kconfig delete mode 100644 board/ti/am65x/MAINTAINERS delete mode 100644 board/ti/am65x/Makefile delete mode 100644 board/ti/am65x/README delete mode 100644 board/ti/am65x/evm.c delete mode 100644 configs/am65x_evm_a53_defconfig delete mode 100644 configs/am65x_evm_r5_defconfig delete mode 100644 include/configs/am65x_evm.h
arch/arm/mach-k3/Kconfig +0 -1
@@ -65,5 +65,4 @@ config SYS_K3_SPL_ATF Enabling this will try to start Cortex-A (typically with ATF) after SPL from R5. -source "board/ti/am65x/Kconfig" endif
board/ti/am65x/Kconfig deleted +0 -52
52 lines not on this page · raw message
board/ti/am65x/MAINTAINERS deleted +0 -7
@@ -1,7 +0,0 @@ -AM65x BOARD -M: Lokesh Vutla <[email protected]> -S: Maintained -F: board/ti/am65x/ -F: include/configs/am65x_evm.h -F: configs/am65x_evm_a53_defconfig -F: configs/am65x_evm_r5_defconfig
board/ti/am65x/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# -# Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/ -# Lokesh Vutla <[email protected]> -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y := evm.o
board/ti/am65x/README deleted +0 -211
211 lines not on this page · raw message
board/ti/am65x/evm.c deleted +0 -68
68 lines not on this page · raw message
configs/am65x_evm_a53_defconfig deleted +0 -71
71 lines not on this page · raw message
configs/am65x_evm_r5_defconfig deleted +0 -87
87 lines not on this page · raw message
include/configs/am65x_evm.h deleted +0 -75
75 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 68/93 arm: Remove am65x_evm_a53 board
Hi Simon,
Quoted 4 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>
Not sure if this is by mistake, but I see CONFIG_BLK is enabled in both the configs. Am I missing something?
➜ u-boot git:(master) make am65x_evm_r5_defconfig;cat .config | grep BLK #
# configuration written to .config # CONFIG_BLK=y CONFIG_SPL_BLK=y
➜ u-boot git:(master) make am65x_evm_a53_defconfig;cat .config | grep BLK #
# configuration written to .config # CONFIG_BLK=y CONFIG_SPL_BLK=y
Thanks and regards,
Lokesh
Quoted 659 lines
---
arch/arm/mach-k3/Kconfig | 1 - board/ti/am65x/Kconfig | 52 -------- board/ti/am65x/MAINTAINERS | 7 -- board/ti/am65x/Makefile | 8 -- board/ti/am65x/README | 211 -------------------------------- board/ti/am65x/evm.c | 68 ---------- configs/am65x_evm_a53_defconfig | 71 ----------- configs/am65x_evm_r5_defconfig | 87 ------------- include/configs/am65x_evm.h | 75 ------------ 9 files changed, 580 deletions(-) delete mode 100644 board/ti/am65x/Kconfig delete mode 100644 board/ti/am65x/MAINTAINERS delete mode 100644 board/ti/am65x/Makefile delete mode 100644 board/ti/am65x/README delete mode 100644 board/ti/am65x/evm.c delete mode 100644 configs/am65x_evm_a53_defconfig delete mode 100644 configs/am65x_evm_r5_defconfig delete mode 100644 include/configs/am65x_evm.harch/arm/mach-k3/Kconfig +0
-1@@ -65,5 +65,4 @@ config SYS_K3_SPL_ATF Enabling this will try to start Cortex-A (typically with ATF) after SPL from R5. -source "board/ti/am65x/Kconfig" endifboard/ti/am65x/Kconfig deleted +0
-52@@ -1,52 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/ -# Lokesh Vutla <[email protected]> - -choice - prompt "K3 AM65 based boards" - optional - -config TARGET_AM654_A53_EVM - bool "TI K3 based AM654 EVM running on A53" - select ARM64 - select SOC_K3_AM6 - -config TARGET_AM654_R5_EVM - bool "TI K3 based AM654 EVM running on R5" - select CPU_V7R - select SYS_THUMB_BUILD - select SOC_K3_AM6 - select K3_AM654_DDRSS - imply SYS_K3_SPL_ATF - -endchoice - -if TARGET_AM654_A53_EVM - -config SYS_BOARD - default "am65x" - -config SYS_VENDOR - default "ti" - -config SYS_CONFIG_NAME - default "am65x_evm" - -endif - -if TARGET_AM654_R5_EVM - -config SYS_BOARD - default "am65x" - -config SYS_VENDOR - default "ti" - -config SYS_CONFIG_NAME - default "am65x_evm" - -config SPL_LDSCRIPT - default "arch/arm/mach-omap2/u-boot-spl.lds" - -endifboard/ti/am65x/MAINTAINERS deleted +0
-7@@ -1,7 +0,0 @@ -AM65x BOARD -M: Lokesh Vutla <[email protected]> -S: Maintained -F: board/ti/am65x/ -F: include/configs/am65x_evm.h -F: configs/am65x_evm_a53_defconfig -F: configs/am65x_evm_r5_defconfigboard/ti/am65x/Makefile deleted +0
-8@@ -1,8 +0,0 @@ -# -# Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/ -# Lokesh Vutla <[email protected]> -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y := evm.oboard/ti/am65x/README deleted +0
-211@@ -1,211 +0,0 @@ -Introduction: -------------- -The AM65x family of SoCs is the first device family from K3 Multicore -SoC architecture, targeted for broad market and industrial control with -aim to meet the complex processing needs of modern embedded products. - -The device is built over three domains, each containing specific processing -cores, voltage domains and peripherals: -1. Wake-up (WKUP) domain: - - Device Management and Security Controller (DMSC) -2. Microcontroller (MCU) domain: - - Dual Core ARM Cortex-R5F processor -3. MAIN domain: - - Quad core 64-bit ARM Cortex-A53 - -More info can be found in TRM: http://www.ti.com/lit/pdf/spruid7 - -Boot Flow: ----------- -On AM65x family devices, ROM supports boot only via MCU(R5). This means that -bootloader has to run on R5 core. In order to meet this constraint, and for -the following reasons the boot flow is designed as mentioned: -1. Need to move away from R5 asap, so that we want to start *any* -firmware on the r5 cores like.... autosar can be loaded to receive CAN -response and other safety operations to be started. This operation is -very time critical and is applicable for all automotive use cases. -2. U-Boot on A53 should start other remotecores for various -applications. This should happen before running Linux. -3. In production boot flow, we might not like to use full u-boot, -instead use Flacon boot flow to reduce boot time. - -+------------------------------------------------------------------------+ -| DMSC | R5 | A53 | -+------------------------------------------------------------------------+ -| +--------+ | | | -| | Reset | | | | -| +--------+ | | | -| : | | | -| +--------+ | +-----------+ | | -| | *ROM* |----------|-->| Reset rls | | | -| +--------+ | +-----------+ | | -| | | | : | | -| | ROM | | : | | -| |services| | : | | -| | | | +-------------+ | | -| | | | | *R5 ROM* | | | -| | | | +-------------+ | | -| | |<---------|---|Load and auth| | | -| | | | | tiboot3.bin | | | -| | | | +-------------+ | | -| | | | : | | -| | | | : | | -| | | | : | | -| | | | +-------------+ | | -| | | | | *R5 SPL* | | | -| | | | +-------------+ | | -| | | | | Load | | | -| | | | | sysfw.itb | | | -| | Start | | +-------------+ | | -| | System |<---------|---| Start | | | -| |Firmware| | | SYSFW | | | -| +--------+ | +-------------+ | | -| : | | | | | -| +---------+ | | Load | | | -| | *SYSFW* | | | system | | | -| +---------+ | | Config data | | | -| | |<--------|---| | | | -| | | | +-------------+ | | -| | | | | | | | -| | | | | DDR | | | -| | | | | config | | | -| | | | +-------------+ | | -| | | | | | | | -| | |<--------|---| Start A53 | | | -| | | | | and Reset | | | -| | | | +-------------+ | | -| | | | | +-----------+ | -| | |---------|-----------------------|---->| Reset rls | | -| | | | | +-----------+ | -| | DMSC | | | : | -| |Services | | | +-----------+ | -| | |<--------|-----------------------|---->|*ATF/OPTEE*| | -| | | | | +-----------+ | -| | | | | : | -| | | | | +-----------+ | -| | |<--------|-----------------------|---->| *A53 SPL* | | -| | | | | +-----------+ | -| | | | | | Load | | -| | | | | | u-boot.img| | -| | | | | +-----------+ | -| | | | | : | -| | | | | +-----------+ | -| | |<--------|-----------------------|---->| *U-Boot* | | -| | | | | +-----------+ | -| | | | | | prompt | | -| | | | | +-----------+ | -| +---------+ | | | -| | | | -+------------------------------------------------------------------------+ - -- Here DMSC acts as master and provides all the critical services. R5/A53 -requests DMSC to get these services done as shown in the above diagram. - -Sources: --------- -1. SYSFW: - Tree: git://git.ti.com/processor-firmware/system-firmware-image-gen.git - Branch: master - -2. ATF: - Tree: https://github.com/ARM-software/arm-trusted-firmware.git - Branch: master - -3. OPTEE: - Tree: https://github.com/OP-TEE/optee_os.git - Branch: master - -4. U-Boot: - Tree: http://git.denx.de/u-boot.git - Branch: master - -Build procedure: ----------------- -1. SYSFW: -$ make CROSS_COMPILE=arm-linux-gnueabihf- - -2. ATF: -$ make CROSS_COMPILE=aarch64-linux-gnu- ARCH=aarch64 PLAT=k3 TARGET_BOARD=generic SPD=opteed - -3. OPTEE: -$ make PLATFORM=k3-am65x CFG_ARM64_core=y - -4. U-Boot: - -4.1. R5: -$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am65x_evm_r5_defconfig O=/tmp/r5 -$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=/tmp/r5 - -4.2. A53: -$ make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- am65x_evm_a53_defconfig O=/tmp/a53 -$ make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- ATF=<path to ATF dir>/build/k3/generic/release/bl31.bin TEE=<path to OPTEE OS dir>/out/arm-plat-k3/core/tee-pager.bin O=/tmp/a53 - -Target Images --------------- -Copy the below images to an SD card and boot: -- sysfw.itb from step 1 -- tiboot3.bin from step 4.1 -- tispl.bin, u-boot.img from 4.2 - -Image formats: --------------- - -- tiboot3.bin: - +-----------------------+ - | X.509 | - | Certificate | - | +-------------------+ | - | | | | - | | R5 | | - | | u-boot-spl.bin | | - | | | | - | +-------------------+ | - | | | | - | | FIT header | | - | | +---------------+ | | - | | | | | | - | | | DTB 1...N | | | - | | +---------------+ | | - | +-------------------+ | - +-----------------------+ - -- tispl.bin - +-----------------------+ - | | - | FIT HEADER | - | +-------------------+ | - | | | | - | | A53 ATF | | - | +-------------------+ | - | | | | - | | A53 OPTEE | | - | +-------------------+ | - | | | | - | | A53 SPL | | - | +-------------------+ | - | | | | - | | SPL DTB 1...N | | - | +-------------------+ | - +-----------------------+ - -- sysfw.itb - +-----------------------+ - | | - | FIT HEADER | - | +-------------------+ | - | | | | - | | sysfw.bin | | - | +-------------------+ | - | | | | - | | board config | | - | +-------------------+ | - | | | | - | | PM config | | - | +-------------------+ | - | | | | - | | RM config | | - | +-------------------+ | - | | | | - | | Secure config | | - | +-------------------+ | - +-----------------------+board/ti/am65x/evm.c deleted +0
-68@@ -1,68 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Board specific initialization for AM654 EVM -* -* Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/ -* Lokesh Vutla <[email protected]> -* -*/ - -#include <common.h> -#include <asm/io.h> -#include <spl.h> - -DECLARE_GLOBAL_DATA_PTR ; - -int board_init (void ) -{ -return 0 ; -} - -int dram_init (void ) -{ -#ifdef CONFIG_PHYS_64BIT - gd->ram_size =0x100000000 ; -#else - gd->ram_size =0x80000000 ; -#endif - -return 0 ; -} - -ulong board_get_usable_ram_top (ulong total_size) -{ -#ifdef CONFIG_PHYS_64BIT -/* Limit RAM used by U-Boot to the DDR low region */ -if (gd->ram_top >0x100000000 ) -return 0x100000000 ; -#endif - -return gd->ram_top; -} - -int dram_init_banksize (void ) -{ -/* Bank 0 declares the memory available in the DDR low region */ - gd->bd->bi_dram[0 ].start =CONFIG_SYS_SDRAM_BASE ; - gd->bd->bi_dram[0 ].size =0x80000000 ; - -#ifdef CONFIG_PHYS_64BIT -/* Bank 1 declares the memory available in the DDR high region */ - gd->bd->bi_dram[1 ].start =CONFIG_SYS_SDRAM_BASE1 ; - gd->bd->bi_dram[1 ].size =0x80000000 ; -#endif - -return 0 ; -} - -#ifdef CONFIG_SPL_LOAD_FIT -int board_fit_config_name_match (const char *name) -{ -#ifdef CONFIG_TARGET_AM654_A53_EVM -if (!strcmp (name,"k3-am654-base-board" )) -return 0 ; -#endif - -return -1 ; -} -#endif configs/am65x_evm_a53_defconfig deleted +0
-71@@ -1,71 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_K3=y -CONFIG_SPL_LIBCOMMON_SUPPORT=y -CONFIG_SPL_LIBGENERIC_SUPPORT=y -CONFIG_SYS_MALLOC_F_LEN=0x2000 -CONFIG_SOC_K3_AM6=y -CONFIG_TARGET_AM654_A53_EVM=y -CONFIG_SPL_MMC_SUPPORT=y -CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_SPL_DRIVERS_MISC_SUPPORT=y -CONFIG_SPL_STACK_R_ADDR=0x82000000 -CONFIG_SPL_FAT_SUPPORT=y -CONFIG_SPL_LIBDISK_SUPPORT=y -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=2 -# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set -CONFIG_SPL_LOAD_FIT=y -CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot}; run run_kern" -# CONFIG_DISPLAY_CPUINFO is not set -CONFIG_SPL_SYS_MALLOC_SIMPLE=y -CONFIG_SPL_STACK_R=y -CONFIG_SPL_SEPARATE_BSS=y -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_DM_MAILBOX=y -CONFIG_SPL_DM_RESET=y -CONFIG_SPL_POWER_DOMAIN=y -CONFIG_SPL_REMOTEPROC=y -CONFIG_SPL_YMODEM_SUPPORT=y -CONFIG_CMD_ASKENV=y -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_MMC=y -CONFIG_CMD_REMOTEPROC=y -# CONFIG_CMD_SETEXPR is not set -CONFIG_CMD_TIME=y -# CONFIG_ISO_PARTITION is not set -# CONFIG_EFI_PARTITION is not set -CONFIG_OF_CONTROL=y -CONFIG_SPL_OF_CONTROL=y -CONFIG_DEFAULT_DEVICE_TREE="k3-am654-base-board" -CONFIG_SPL_MULTI_DTB_FIT=y -CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y -CONFIG_ENV_IS_IN_FAT=y -CONFIG_ENV_FAT_INTERFACE="mmc" -CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" -CONFIG_DM=y -CONFIG_SPL_DM=y -CONFIG_SPL_DM_SEQ_ALIAS=y -CONFIG_CLK=y -CONFIG_SPL_CLK=y -CONFIG_CLK_TI_SCI=y -CONFIG_TI_SCI_PROTOCOL=y -CONFIG_DM_MAILBOX=y -CONFIG_K3_SEC_PROXY=y -CONFIG_MISC=y -CONFIG_DM_MMC=y -CONFIG_MMC_SDHCI=y -CONFIG_MMC_SDHCI_K3_ARASAN=y -CONFIG_PINCTRL=y -# CONFIG_PINCTRL_GENERIC is not set -CONFIG_SPL_PINCTRL=y -# CONFIG_SPL_PINCTRL_GENERIC is not set -CONFIG_PINCTRL_SINGLE=y -CONFIG_POWER_DOMAIN=y -CONFIG_TI_SCI_POWER_DOMAIN=y -CONFIG_K3_SYSTEM_CONTROLLER=y -CONFIG_REMOTEPROC_K3=y -CONFIG_DM_RESET=y -CONFIG_RESET_TI_SCI=y -CONFIG_DM_SERIAL=y -CONFIG_SYSRESET=y -CONFIG_SYSRESET_TI_SCI=yconfigs/am65x_evm_r5_defconfig deleted +0
-87@@ -1,87 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_K3=y -CONFIG_SPL_GPIO_SUPPORT=y -CONFIG_SPL_LIBCOMMON_SUPPORT=y -CONFIG_SPL_LIBGENERIC_SUPPORT=y -CONFIG_SYS_MALLOC_F_LEN=0x2000 -CONFIG_SOC_K3_AM6=y -CONFIG_TARGET_AM654_R5_EVM=y -CONFIG_SPL_MMC_SUPPORT=y -CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_SPL_DRIVERS_MISC_SUPPORT=y -CONFIG_SPL_STACK_R_ADDR=0x82000000 -CONFIG_SPL_FAT_SUPPORT=y -CONFIG_SPL_LIBDISK_SUPPORT=y -CONFIG_NR_DRAM_BANKS=2 -# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set -CONFIG_SPL_LOAD_FIT=y -CONFIG_USE_BOOTCOMMAND=y -# CONFIG_DISPLAY_CPUINFO is not set -CONFIG_SPL_SYS_MALLOC_SIMPLE=y -CONFIG_SPL_STACK_R=y -CONFIG_SPL_SEPARATE_BSS=y -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_DM_MAILBOX=y -CONFIG_SPL_DM_RESET=y -CONFIG_SPL_POWER_SUPPORT=y -CONFIG_SPL_POWER_DOMAIN=y -CONFIG_SPL_RAM_SUPPORT=y -CONFIG_SPL_RAM_DEVICE=y -CONFIG_SPL_REMOTEPROC=y -CONFIG_SPL_YMODEM_SUPPORT=y -CONFIG_HUSH_PARSER=y -CONFIG_CMD_BOOTZ=y -CONFIG_CMD_ASKENV=y -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_MMC=y -CONFIG_CMD_REMOTEPROC=y -# CONFIG_CMD_SETEXPR is not set -CONFIG_CMD_TIME=y -CONFIG_CMD_FAT=y -CONFIG_OF_CONTROL=y -CONFIG_SPL_OF_CONTROL=y -CONFIG_DEFAULT_DEVICE_TREE="k3-am654-r5-base-board" -CONFIG_SPL_MULTI_DTB_FIT=y -CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y -CONFIG_ENV_IS_IN_FAT=y -CONFIG_ENV_FAT_INTERFACE="mmc" -CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" -CONFIG_DM=y -CONFIG_SPL_DM=y -CONFIG_SPL_DM_SEQ_ALIAS=y -CONFIG_SPL_OF_TRANSLATE=y -CONFIG_CLK=y -CONFIG_SPL_CLK=y -CONFIG_CLK_TI_SCI=y -CONFIG_TI_SCI_PROTOCOL=y -CONFIG_DM_GPIO=y -CONFIG_DA8XX_GPIO=y -CONFIG_DM_MAILBOX=y -CONFIG_K3_SEC_PROXY=y -CONFIG_MISC=y -CONFIG_DM_MMC=y -CONFIG_MMC_SDHCI=y -CONFIG_MMC_SDHCI_K3_ARASAN=y -CONFIG_PINCTRL=y -# CONFIG_PINCTRL_GENERIC is not set -CONFIG_SPL_PINCTRL=y -# CONFIG_SPL_PINCTRL_GENERIC is not set -CONFIG_PINCTRL_SINGLE=y -CONFIG_POWER_DOMAIN=y -CONFIG_TI_SCI_POWER_DOMAIN=y -CONFIG_DM_REGULATOR=y -CONFIG_SPL_DM_REGULATOR=y -CONFIG_DM_REGULATOR_GPIO=y -CONFIG_SPL_DM_REGULATOR_GPIO=y -CONFIG_RAM=y -CONFIG_SPL_RAM=y -CONFIG_K3_SYSTEM_CONTROLLER=y -CONFIG_REMOTEPROC_K3=y -CONFIG_DM_RESET=y -CONFIG_RESET_TI_SCI=y -CONFIG_DM_SERIAL=y -CONFIG_SYSRESET=y -CONFIG_SYSRESET_TI_SCI=y -CONFIG_TIMER=y -CONFIG_SPL_TIMER=y -CONFIG_OMAP_TIMER=yinclude/configs/am65x_evm.h deleted +0
-75@@ -1,75 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* Configuration header file for K3 AM654 EVM -* -* Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/ -* Lokesh Vutla <[email protected]> -*/ - -#ifndef __CONFIG_AM654_EVM_H -#define __CONFIG_AM654_EVM_H - -#include <linux/sizes.h> -#include <config_distro_bootcmd.h> -#include <environment/ti/mmc.h> - -#define CONFIG_ENV_SIZE (128 << 10) - -/* DDR Configuration */ -#define CONFIG_SYS_SDRAM_BASE1 0x880000000 - -/* SPL Loader Configuration */ -#ifdef CONFIG_TARGET_AM654_A53_EVM -#define CONFIG_SPL_TEXT_BASE 0x80080000 -#else -#define CONFIG_SPL_TEXT_BASE 0x41c00000 -#endif - -#ifdef CONFIG_SYS_K3_SPL_ATF -#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "tispl.bin" -#endif - -#define CONFIG_SKIP_LOWLEVEL_INIT - -#define CONFIG_SPL_MAX_SIZE CONFIG_SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE -#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SPL_TEXT_BASE + \ - CONFIG_SYS_K3_NON_SECURE_MSRAM_SIZE - 4) - -/* U-Boot general configuration */ -#define EXTRA_ENV_AM65X_BOARD_SETTINGS \ - "findfdt=" \ - "if test $board_name = am65x; then " \ - "setenv name_fdt k3-am654-base-board.dtb; " \ - "else if test $name_fdt = undefined; then " \ - "echo WARNING: Could not determine device tree to use;"\ - "fi; fi; " \ - "setenv fdtfile ${name_fdt}\0" \ - "loadaddr=0x80080000\0" \ - "fdtaddr=0x82000000\0" \ - "name_kern=Image\0" \ - "console=ttyS2,115200n8\0" \ - "args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000\0" \ - "run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" - -/* U-Boot MMC-specific configuration */ -#define EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC \ - "boot=mmc\0" \ - "mmcdev=1\0" \ - "bootpart=1:2\0" \ - "bootdir=/boot\0" \ - "rd_spec=-\0" \ - "init_mmc=run args_all args_mmc\0" \ - "get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0" \ - "get_kern_mmc=load mmc ${bootpart} ${loadaddr} " \ - "${bootdir}/${name_kern}\0" - -/* Incorporate settings into the U-Boot environment */ -#define CONFIG_EXTRA_ENV_SETTINGS \ - DEFAULT_MMC_TI_ARGS \ - EXTRA_ENV_AM65X_BOARD_SETTINGS \ - EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC - -/* Now for the remaining common defines */ -#include <configs/ti_armv7_common.h> - -#endif /* __CONFIG_AM654_EVM_H */
PATCH 68/93 arm: Remove am65x_evm_a53 board
Hi Lokesh,
Quoted 19 lines · Lokesh Vutla
Hi Simon,
Quoted 4 lines · Simon Glass
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>Not sure if this is by mistake, but I see
CONFIG_BLKis enabled in both the configs. Am I missing something?➜ u-boot git:(master) make am65x_evm_r5_defconfig;cat .config | grep BLK #
# configuration written to .config # CONFIG_BLK=y CONFIG_SPL_BLK=y
Quoted 7 lines
➜ u-boot git:(master) make am65x_evm_a53_defconfig;cat .config | grep BLK #
# configuration written to .config # CONFIG_BLK=y CONFIG_SPL_BLK=y
This was the result of my removing the default CONFIG_SPL_BLK=y in the Kconfig, since it produced a smaller list of broken boards. But having thought about it, it is not the right thing to do.
So your board should be fine. Sorry for the trouble.
Regards,
Simon
PATCH 69/93 arm: Remove ap143 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/mips/mach-ath79/Kconfig | 1 - board/qca/ap143/Kconfig | 27 ---------------- board/qca/ap143/MAINTAINERS | 6 ---- board/qca/ap143/Makefile | 3 -- board/qca/ap143/ap143.c | 62 ------------------------------------ configs/ap143_defconfig | 55 -------------------------------- include/configs/ap143.h | 50 ----------------------------- 7 files changed, 204 deletions(-) delete mode 100644 board/qca/ap143/Kconfig delete mode 100644 board/qca/ap143/MAINTAINERS delete mode 100644 board/qca/ap143/Makefile delete mode 100644 board/qca/ap143/ap143.c delete mode 100644 configs/ap143_defconfig delete mode 100644 include/configs/ap143.h
arch/mips/mach-ath79/Kconfig +0 -1
@@ -51,7 +51,6 @@ config BOARD_TPLINK_WDR4300 endchoice source "board/qca/ap121/Kconfig" -source "board/qca/ap143/Kconfig" source "board/tplink/wdr4300/Kconfig" endmenu
board/qca/ap143/Kconfig deleted +0 -27
@@ -1,27 +0,0 @@ -if TARGET_AP143 - -config SYS_VENDOR - default "qca" - -config SYS_BOARD - default "ap143" - -config SYS_CONFIG_NAME - default "ap143" - -config SYS_TEXT_BASE - default 0x9f000000 - -config SYS_DCACHE_SIZE - default 32768 - -config SYS_DCACHE_LINE_SIZE - default 32 - -config SYS_ICACHE_SIZE - default 65536 - -config SYS_ICACHE_LINE_SIZE - default 32 - -endif
board/qca/ap143/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -AP143 BOARD -M: Wills Wang <[email protected]> -S: Maintained -F: board/qca/ap143/ -F: include/configs/ap143.h -F: configs/ap143_defconfig
board/qca/ap143/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y = ap143.o
board/qca/ap143/ap143.c deleted +0 -62
62 lines not on this page · raw message
configs/ap143_defconfig deleted +0 -55
55 lines not on this page · raw message
include/configs/ap143.h deleted +0 -50
50 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 70/93 arm: Remove ap121 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/mips/mach-ath79/Kconfig | 1 - board/qca/ap121/Kconfig | 27 ---------------- board/qca/ap121/MAINTAINERS | 6 ---- board/qca/ap121/Makefile | 3 -- board/qca/ap121/ap121.c | 46 --------------------------- configs/ap121_defconfig | 60 ------------------------------------ include/configs/ap121.h | 46 --------------------------- 7 files changed, 189 deletions(-) delete mode 100644 board/qca/ap121/Kconfig delete mode 100644 board/qca/ap121/MAINTAINERS delete mode 100644 board/qca/ap121/Makefile delete mode 100644 board/qca/ap121/ap121.c delete mode 100644 configs/ap121_defconfig delete mode 100644 include/configs/ap121.h
arch/mips/mach-ath79/Kconfig +0 -1
@@ -50,7 +50,6 @@ config BOARD_TPLINK_WDR4300 endchoice -source "board/qca/ap121/Kconfig" source "board/tplink/wdr4300/Kconfig" endmenu
board/qca/ap121/Kconfig deleted +0 -27
@@ -1,27 +0,0 @@ -if TARGET_AP121 - -config SYS_VENDOR - default "qca" - -config SYS_BOARD - default "ap121" - -config SYS_CONFIG_NAME - default "ap121" - -config SYS_TEXT_BASE - default 0x9f000000 - -config SYS_DCACHE_SIZE - default 32768 - -config SYS_DCACHE_LINE_SIZE - default 32 - -config SYS_ICACHE_SIZE - default 65536 - -config SYS_ICACHE_LINE_SIZE - default 32 - -endif
board/qca/ap121/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -AP121 BOARD -M: Wills Wang <[email protected]> -S: Maintained -F: board/qca/ap121/ -F: include/configs/ap121.h -F: configs/ap121_defconfig
board/qca/ap121/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y = ap121.o
board/qca/ap121/ap121.c deleted +0 -46
46 lines not on this page · raw message
configs/ap121_defconfig deleted +0 -60
60 lines not on this page · raw message
include/configs/ap121.h deleted +0 -46
46 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 70/93 arm: Remove ap121 board
Hi Simon,
Am 19.11.18 um 16:53 schrieb Simon Glass:
Quoted 6 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 14 lines
arch/mips/mach-ath79/Kconfig | 1 - board/qca/ap121/Kconfig | 27 ---------------- board/qca/ap121/MAINTAINERS | 6 ---- board/qca/ap121/Makefile | 3 -- board/qca/ap121/ap121.c | 46 --------------------------- configs/ap121_defconfig | 60 ------------------------------------ include/configs/ap121.h | 46 --------------------------- 7 files changed, 189 deletions(-) delete mode 100644 board/qca/ap121/Kconfig delete mode 100644 board/qca/ap121/MAINTAINERS delete mode 100644 board/qca/ap121/Makefile delete mode 100644 board/qca/ap121/ap121.c delete mode 100644 configs/ap121_defconfig delete mode 100644 include/configs/ap121.h
your approach with simply forcing CONFIG_BLK is flawed. This board doesn't use any block devices. If I enable CONFIG_BLK manually via menuconfig, I get this link error:
LD u-bootdrivers/built-in.o: In function `blk_post_probe':
drivers/block/blk-uclass.c:(.text.blk_post_probe+0x10): undefined reference to `part_init'
make: *** [Makefile:1381: u-boot] Error 1
But part_init() is defined in disk/part.c and guarded by CONFIG_HAVE_BLOCK_DEVICE. If I enable that too, the board will build fine.
So the actual bug is that CONFIG_BLK doesn't do a SELECT PARTITIONS or that drivers/block/blk-uclass.c doesn't guard the call to part_init() with CONFIG_HAVE_BLOCK_DEVICE. Maybe you should fix that and then try again. I guess you will have much less failing boards.
Signature · 9 lines
- Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181122/59718b92/attachment.sig>
PATCH 70/93 arm: Remove ap121 board
Quoted 34 lines · Daniel Schwierzeck
Hi Simon,
Am 19.11.18 um 16:53 schrieb Simon Glass:
Quoted 6 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 14 lines
arch/mips/mach-ath79/Kconfig | 1 - board/qca/ap121/Kconfig | 27 ---------------- board/qca/ap121/MAINTAINERS | 6 ---- board/qca/ap121/Makefile | 3 -- board/qca/ap121/ap121.c | 46 --------------------------- configs/ap121_defconfig | 60 ------------------------------------ include/configs/ap121.h | 46 --------------------------- 7 files changed, 189 deletions(-) delete mode 100644 board/qca/ap121/Kconfig delete mode 100644 board/qca/ap121/MAINTAINERS delete mode 100644 board/qca/ap121/Makefile delete mode 100644 board/qca/ap121/ap121.c delete mode 100644 configs/ap121_defconfig delete mode 100644 include/configs/ap121.hyour approach with simply forcing
CONFIG_BLKis flawed. This board doesn't use any block devices. If I enableCONFIG_BLKmanually via menuconfig, I get this link error:LD u-boot
drivers/built-in.o: In function `blk_post_probe':
drivers/block/blk-uclass.c:(.text.blk_post_probe+0x10): undefined reference to `part_init'
make: *** [Makefile:1381: u-boot] Error 1
Quoted 7 lines
But
part_init()is defined indisk/part.cand guarded byCONFIG_HAVE_BLOCK_DEVICE. If I enable that too, the board will build fine.So the actual bug is that
CONFIG_BLKdoesn't do a SELECT PARTITIONS or thatdrivers/block/blk-uclass.cdoesn't guard the call topart_init()withCONFIG_HAVE_BLOCK_DEVICE. Maybe you should fix that and then try again. I guess you will have much less failing boards.
There's a few different parts to the problem of switching more globally to BLK being enabled. And yes, you're right, we need to do something to ensure that disk/part.o is linked in or drivers/block/blk-uclass.c only calls part_init() in fewer cases. Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181121/2a3680e9/attachment.sig>
PATCH 70/93 arm: Remove ap121 board
In reply to Daniel SchwierzeckHi Daniel,
Quoted 35 lines · Daniel Schwierzeck
Hi Simon,
Am 19.11.18 um 16:53 schrieb Simon Glass:
Quoted 6 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 14 lines
arch/mips/mach-ath79/Kconfig | 1 - board/qca/ap121/Kconfig | 27 ---------------- board/qca/ap121/MAINTAINERS | 6 ---- board/qca/ap121/Makefile | 3 -- board/qca/ap121/ap121.c | 46 --------------------------- configs/ap121_defconfig | 60 ------------------------------------ include/configs/ap121.h | 46 --------------------------- 7 files changed, 189 deletions(-) delete mode 100644 board/qca/ap121/Kconfig delete mode 100644 board/qca/ap121/MAINTAINERS delete mode 100644 board/qca/ap121/Makefile delete mode 100644 board/qca/ap121/ap121.c delete mode 100644 configs/ap121_defconfig delete mode 100644 include/configs/ap121.hyour approach with simply forcing
CONFIG_BLKis flawed. This board doesn't use any block devices. If I enableCONFIG_BLKmanually via menuconfig, I get this link error:LD u-boot
drivers/built-in.o: In function `blk_post_probe':
drivers/block/blk-uclass.c:(.text.blk_post_probe+0x10): undefined reference to `part_init'
make: *** [Makefile:1381: u-boot] Error 1
Quoted 7 lines
But
part_init()is defined indisk/part.cand guarded byCONFIG_HAVE_BLOCK_DEVICE. If I enable that too, the board will build fine.So the actual bug is that
CONFIG_BLKdoesn't do a SELECT PARTITIONS or thatdrivers/block/blk-uclass.cdoesn't guard the call topart_init()withCONFIG_HAVE_BLOCK_DEVICE. Maybe you should fix that and then try again. I guess you will have much less failing boards.
Unfortunately there are many things that can go wrong.
CONFIG_HAVE_BLOCK_DEVICE should be removed, I think, and the 5 boards that use it updated. With DM we can just use CONFIG_BLK.
If CONFIG_BLK is enabled, that means we have block devices. Ideally we would not enable it by default, and perhaps there is some Kconfig magic that can enable it only when USB/MMC/etc, are enabled in Kconfig? But that will not cause us to detect all boards that need updating, since boards that don't use DM for the subsystem would then get CONFIG_BLK enabled.
Here I think the best solution is for you to send a patch which disables CONFIG_BLK for your boards (either in Kconfig or defconfig). That should take precedence over CONFIG_BLK becoming the default.
Regards,
Simon
PATCH 70/93 arm: Remove ap121 board
Quoted 59 lines · Simon Glass
Hi Daniel,
Quoted 35 lines · Daniel Schwierzeck
Hi Simon,
Am 19.11.18 um 16:53 schrieb Simon Glass:
Quoted 6 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 14 lines
arch/mips/mach-ath79/Kconfig | 1 - board/qca/ap121/Kconfig | 27 ---------------- board/qca/ap121/MAINTAINERS | 6 ---- board/qca/ap121/Makefile | 3 -- board/qca/ap121/ap121.c | 46 --------------------------- configs/ap121_defconfig | 60 ------------------------------------ include/configs/ap121.h | 46 --------------------------- 7 files changed, 189 deletions(-) delete mode 100644 board/qca/ap121/Kconfig delete mode 100644 board/qca/ap121/MAINTAINERS delete mode 100644 board/qca/ap121/Makefile delete mode 100644 board/qca/ap121/ap121.c delete mode 100644 configs/ap121_defconfig delete mode 100644 include/configs/ap121.hyour approach with simply forcing
CONFIG_BLKis flawed. This board doesn't use any block devices. If I enableCONFIG_BLKmanually via menuconfig, I get this link error:LD u-boot
drivers/built-in.o: In function `blk_post_probe':
drivers/block/blk-uclass.c:(.text.blk_post_probe+0x10): undefined reference to `part_init'
make: *** [Makefile:1381: u-boot] Error 1Quoted 7 lines
But
part_init()is defined indisk/part.cand guarded byCONFIG_HAVE_BLOCK_DEVICE. If I enable that too, the board will build fine.So the actual bug is that
CONFIG_BLKdoesn't do a SELECT PARTITIONS or thatdrivers/block/blk-uclass.cdoesn't guard the call topart_init()withCONFIG_HAVE_BLOCK_DEVICE. Maybe you should fix that and then try again. I guess you will have much less failing boards.Unfortunately there are many things that can go wrong.
CONFIG_HAVE_BLOCK_DEVICEshould be removed, I think, and the 5 boards that use it updated. With DM we can just useCONFIG_BLK.If
CONFIG_BLKis enabled, that means we have block devices. Ideally we would not enable it by default, and perhaps there is someKconfigmagic that can enable it only when USB/MMC/etc, are enabled inKconfig? But that will not cause us to detect all boards that need updating, since boards that don't use DM for the subsystem would then getCONFIG_BLKenabled.
Quoted 3 lines
Here I think the best solution is for you to send a patch which disables
CONFIG_BLKfor your boards (either inKconfigor defconfig). That should take precedence overCONFIG_BLKbecoming the default.
No, the problem we have right here is that the logic in drivers/block/blk-uclass.c to call part_init() doesn't match the logic we have around when we build disk/part.c that defines part_init(). Locally I've made disk/part.o be built with CONFIG_BLK (and SPL/TPL). Once we've got the transition done we can see what clean-ups follow from it.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181122/17b6c118/attachment.sig>
PATCH 70/93 arm: Remove ap121 board
Hi Tom,
Quoted 65 lines · Tom Rini
Quoted 59 lines · Simon Glass
Hi Daniel,
Quoted 35 lines · Daniel Schwierzeck
Hi Simon,
Am 19.11.18 um 16:53 schrieb Simon Glass:
Quoted 6 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 14 lines
arch/mips/mach-ath79/Kconfig | 1 - board/qca/ap121/Kconfig | 27 ---------------- board/qca/ap121/MAINTAINERS | 6 ---- board/qca/ap121/Makefile | 3 -- board/qca/ap121/ap121.c | 46 --------------------------- configs/ap121_defconfig | 60 ------------------------------------ include/configs/ap121.h | 46 --------------------------- 7 files changed, 189 deletions(-) delete mode 100644 board/qca/ap121/Kconfig delete mode 100644 board/qca/ap121/MAINTAINERS delete mode 100644 board/qca/ap121/Makefile delete mode 100644 board/qca/ap121/ap121.c delete mode 100644 configs/ap121_defconfig delete mode 100644 include/configs/ap121.hyour approach with simply forcing
CONFIG_BLKis flawed. This board doesn't use any block devices. If I enableCONFIG_BLKmanually via menuconfig, I get this link error:LD u-boot
drivers/built-in.o: In function `blk_post_probe':
drivers/block/blk-uclass.c:(.text.blk_post_probe+0x10): undefined reference to `part_init'
make: *** [Makefile:1381: u-boot] Error 1Quoted 7 lines
But
part_init()is defined indisk/part.cand guarded byCONFIG_HAVE_BLOCK_DEVICE. If I enable that too, the board will build fine.So the actual bug is that
CONFIG_BLKdoesn't do a SELECT PARTITIONS or thatdrivers/block/blk-uclass.cdoesn't guard the call topart_init()withCONFIG_HAVE_BLOCK_DEVICE. Maybe you should fix that and then try again. I guess you will have much less failing boards.Unfortunately there are many things that can go wrong.
CONFIG_HAVE_BLOCK_DEVICEshould be removed, I think, and the 5 boards that use it updated. With DM we can just useCONFIG_BLK.If
CONFIG_BLKis enabled, that means we have block devices. Ideally we would not enable it by default, and perhaps there is someKconfigmagic that can enable it only when USB/MMC/etc, are enabled inKconfig? But that will not cause us to detect all boards that need updating, since boards that don't use DM for the subsystem would then getCONFIG_BLKenabled.Quoted 3 lines
Here I think the best solution is for you to send a patch which disables
CONFIG_BLKfor your boards (either inKconfigor defconfig). That should take precedence overCONFIG_BLKbecoming the default.
Quoted 6 lines
No, the problem we have right here is that the logic in
drivers/block/blk-uclass.cto callpart_init()doesn't match the logic we have around when we builddisk/part.cthat definespart_init(). Locally I've madedisk/part.obe built withCONFIG_BLK(and SPL/TPL). Once we've got the transition done we can see what clean-ups follow from it.
Oh wow I see.
But it seems to me that CONFIG_HAVE_BLOCK_DEVICE could be dropped and we could just use CONFIG_BLK?
Regards,
Simon
PATCH 70/93 arm: Remove ap121 board
Quoted 75 lines · Simon Glass
Hi Tom,
Quoted 65 lines · Tom Rini
Quoted 59 lines · Simon Glass
Hi Daniel,
Quoted 35 lines · Daniel Schwierzeck
Hi Simon,
Am 19.11.18 um 16:53 schrieb Simon Glass:
Quoted 6 lines
This board has not been converted to
CONFIG_DM_BLKby the deadline. Remove it.Signed-off-by Simon Glass <[email protected]>---
Quoted 14 lines
arch/mips/mach-ath79/Kconfig | 1 - board/qca/ap121/Kconfig | 27 ---------------- board/qca/ap121/MAINTAINERS | 6 ---- board/qca/ap121/Makefile | 3 -- board/qca/ap121/ap121.c | 46 --------------------------- configs/ap121_defconfig | 60 ------------------------------------ include/configs/ap121.h | 46 --------------------------- 7 files changed, 189 deletions(-) delete mode 100644 board/qca/ap121/Kconfig delete mode 100644 board/qca/ap121/MAINTAINERS delete mode 100644 board/qca/ap121/Makefile delete mode 100644 board/qca/ap121/ap121.c delete mode 100644 configs/ap121_defconfig delete mode 100644 include/configs/ap121.hyour approach with simply forcing
CONFIG_BLKis flawed. This board doesn't use any block devices. If I enableCONFIG_BLKmanually via menuconfig, I get this link error:LD u-boot
drivers/built-in.o: In function `blk_post_probe':
drivers/block/blk-uclass.c:(.text.blk_post_probe+0x10): undefined reference to `part_init'
make: *** [Makefile:1381: u-boot] Error 1Quoted 7 lines
But
part_init()is defined indisk/part.cand guarded byCONFIG_HAVE_BLOCK_DEVICE. If I enable that too, the board will build fine.So the actual bug is that
CONFIG_BLKdoesn't do a SELECT PARTITIONS or thatdrivers/block/blk-uclass.cdoesn't guard the call topart_init()withCONFIG_HAVE_BLOCK_DEVICE. Maybe you should fix that and then try again. I guess you will have much less failing boards.Unfortunately there are many things that can go wrong.
CONFIG_HAVE_BLOCK_DEVICEshould be removed, I think, and the 5 boards that use it updated. With DM we can just useCONFIG_BLK.If
CONFIG_BLKis enabled, that means we have block devices. Ideally we would not enable it by default, and perhaps there is someKconfigmagic that can enable it only when USB/MMC/etc, are enabled inKconfig? But that will not cause us to detect all boards that need updating, since boards that don't use DM for the subsystem would then getCONFIG_BLKenabled.Quoted 3 lines
Here I think the best solution is for you to send a patch which disables
CONFIG_BLKfor your boards (either inKconfigor defconfig). That should take precedence overCONFIG_BLKbecoming the default.Quoted 6 lines
No, the problem we have right here is that the logic in
drivers/block/blk-uclass.cto callpart_init()doesn't match the logic we have around when we builddisk/part.cthat definespart_init(). Locally I've madedisk/part.obe built withCONFIG_BLK(and SPL/TPL). Once we've got the transition done we can see what clean-ups follow from it.
Quoted 4 lines
Oh wow I see.
But it seems to me that
CONFIG_HAVE_BLOCK_DEVICEcould be dropped and we could just useCONFIG_BLK?
Now? Not sure. Eventually? Yes.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181124/4c703bbc/attachment.sig>
PATCH 71/93 arm: Remove imgtec_xilfpga board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/mips/Kconfig | 1 - board/imgtec/xilfpga/Kconfig | 15 --------- board/imgtec/xilfpga/MAINTAINERS | 6 ---- board/imgtec/xilfpga/Makefile | 7 ---- board/imgtec/xilfpga/README | 55 -------------------------------- board/imgtec/xilfpga/xilfpga.c | 23 ------------- configs/imgtec_xilfpga_defconfig | 27 ---------------- 7 files changed, 134 deletions(-) delete mode 100644 board/imgtec/xilfpga/Kconfig delete mode 100644 board/imgtec/xilfpga/MAINTAINERS delete mode 100644 board/imgtec/xilfpga/Makefile delete mode 100644 board/imgtec/xilfpga/README delete mode 100644 board/imgtec/xilfpga/xilfpga.c delete mode 100644 configs/imgtec_xilfpga_defconfig
arch/mips/Kconfig +0 -1
@@ -131,7 +131,6 @@ endchoice source "board/imgtec/boston/Kconfig" source "board/imgtec/malta/Kconfig" -source "board/imgtec/xilfpga/Kconfig" source "board/micronas/vct/Kconfig" source "board/qemu-mips/Kconfig" source "arch/mips/mach-ath79/Kconfig"
board/imgtec/xilfpga/Kconfig deleted +0 -15
@@ -1,15 +0,0 @@ -if TARGET_XILFPGA - -config SYS_BOARD - default "xilfpga" - -config SYS_VENDOR - default "imgtec" - -config SYS_CONFIG_NAME - default "imgtec_xilfpga" - -config SYS_TEXT_BASE - default 0x80C00000 - -endif
board/imgtec/xilfpga/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -XILFPGA BOARD -M: Zubair Lutfullah Kakakhel <[email protected]> -S: Maintained -F: board/imgtec/xilfpga -F: include/configs/xilfpga.h -F: configs/imgtec_xilfpga_defconfig
board/imgtec/xilfpga/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# Copyright (C) 2016, Imagination Technologies Ltd. -# Zubair Lutfullah Kakakhel <[email protected]> -# -# SPDX-License-Identifier: GPL-2.0+ -# -obj-y := xilfpga.o
board/imgtec/xilfpga/README deleted +0 -55
55 lines not on this page · raw message
board/imgtec/xilfpga/xilfpga.c deleted +0 -23
@@ -1,23 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Imagination Technologies MIPSfpga platform code -* -* Copyright (C) 2016, Imagination Technologies Ltd. -* -* Zubair Lutfullah Kakakhel <[email protected]> -* -*/ - -#include <common.h> - -DECLARE_GLOBAL_DATA_PTR ; - -/* initialize the DDR Controller and PHY */ -int dram_init (void ) -{ -/* MIG IP block is smart and doesn't need SW -* to do any init */ - gd->ram_size =CONFIG_SYS_SDRAM_SIZE ;/* in bytes */ - -return 0 ; -}
configs/imgtec_xilfpga_defconfig deleted +0 -27
@@ -1,27 +0,0 @@ -CONFIG_MIPS=y -CONFIG_SYS_MALLOC_F_LEN=0x600 -CONFIG_TARGET_XILFPGA=y -# CONFIG_MIPS_BOOT_ENV_LEGACY is not set -CONFIG_MIPS_BOOT_FDT=y -CONFIG_BOOTDELAY=5 -# CONFIG_DISPLAY_BOARDINFO is not set -CONFIG_HUSH_PARSER=y -# CONFIG_CMDLINE_EDITING is not set -# CONFIG_AUTO_COMPLETE is not set -CONFIG_SYS_PROMPT="MIPSfpga # " -# CONFIG_CMD_SAVEENV is not set -CONFIG_CMD_MEMINFO=y -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_DHCP=y -CONFIG_CMD_MII=y -CONFIG_CMD_PING=y -CONFIG_CMD_TIME=y -# CONFIG_ISO_PARTITION is not set -CONFIG_OF_EMBED=y -CONFIG_DEFAULT_DEVICE_TREE="nexys4ddr" -CONFIG_NET_RANDOM_ETHADDR=y -CONFIG_NETCONSOLE=y -CONFIG_CLK=y -CONFIG_XILINX_EMACLITE=y -CONFIG_SYS_NS16550=y -CONFIG_CMD_DHRYSTONE=y
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 72/93 arm: Remove socfpga_de0_nano_soc board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
configs/socfpga_de0_nano_soc_defconfig | 72 -------------------------- include/configs/socfpga_de0_nano_soc.h | 22 -------- 2 files changed, 94 deletions(-) delete mode 100644 configs/socfpga_de0_nano_soc_defconfig delete mode 100644 include/configs/socfpga_de0_nano_soc.h
configs/socfpga_de0_nano_soc_defconfig deleted +0 -72
@@ -1,72 +0,0 @@ -CONFIG_ARM=y -CONFIG_ARCH_SOCFPGA=y -CONFIG_SYS_TEXT_BASE=0x01000040 -CONFIG_SYS_MALLOC_F_LEN=0x2000 -CONFIG_TARGET_SOCFPGA_TERASIC_DE0_NANO=y -CONFIG_SPL=y -CONFIG_SPL_STACK_R_ADDR=0x00800000 -CONFIG_DISTRO_DEFAULTS=y -CONFIG_NR_DRAM_BANKS=1 -CONFIG_FIT=y -# CONFIG_USE_BOOTCOMMAND is not set -CONFIG_SYS_CONSOLE_IS_IN_ENV=y -CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y -CONFIG_SYS_CONSOLE_ENV_OVERWRITE=y -CONFIG_DEFAULT_FDT_FILE="socfpga_cyclone5_de0_nano_soc.dtb" -CONFIG_VERSION_VARIABLE=y -# CONFIG_DISPLAY_BOARDINFO is not set -CONFIG_DISPLAY_BOARDINFO_LATE=y -# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set -CONFIG_SPL_SYS_MALLOC_SIMPLE=y -CONFIG_SPL_STACK_R=y -CONFIG_SPL_SPI_LOAD=y -CONFIG_CMD_ASKENV=y -CONFIG_CMD_GREPENV=y -CONFIG_CMD_DFU=y -# CONFIG_CMD_FLASH is not set -CONFIG_CMD_GPIO=y -CONFIG_CMD_I2C=y -CONFIG_CMD_MMC=y -CONFIG_CMD_SF=y -CONFIG_CMD_SPI=y -CONFIG_CMD_USB=y -CONFIG_CMD_USB_MASS_STORAGE=y -CONFIG_CMD_CACHE=y -CONFIG_CMD_EXT4_WRITE=y -CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0" -CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),256k(env1),256k(env2),14848k(boot),16m(rootfs),- at 1536k(UBI)0" -CONFIG_CMD_UBI=y -# CONFIG_ISO_PARTITION is not set -# CONFIG_EFI_PARTITION is not set -CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_de0_nano_soc" -CONFIG_ENV_IS_IN_MMC=y -CONFIG_SPL_DM=y -CONFIG_DFU_MMC=y -CONFIG_FPGA_SOCFPGA=y -CONFIG_DM_GPIO=y -CONFIG_DWAPB_GPIO=y -CONFIG_DM_I2C=y -CONFIG_SYS_I2C_DW=y -CONFIG_DM_MMC=y -CONFIG_MMC_DW=y -CONFIG_MTD_DEVICE=y -CONFIG_PHY_MICREL=y -CONFIG_PHY_MICREL_KSZ90X1=y -CONFIG_DM_ETH=y -CONFIG_ETH_DESIGNWARE=y -CONFIG_MII=y -CONFIG_DM_RESET=y -CONFIG_SPI=y -CONFIG_CADENCE_QSPI=y -CONFIG_DESIGNWARE_SPI=y -CONFIG_USB=y -CONFIG_DM_USB=y -CONFIG_USB_DWC2=y -CONFIG_USB_STORAGE=y -CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="terasic" -CONFIG_USB_GADGET_VENDOR_NUM=0x0525 -CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 -CONFIG_USB_GADGET_DWC2_OTG=y -CONFIG_USB_GADGET_DOWNLOAD=y -CONFIG_USE_TINY_PRINTF=y
include/configs/socfpga_de0_nano_soc.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* Copyright (C) 2015 Marek Vasut <[email protected]> -*/ -#ifndef __CONFIG_TERASIC_DE0_H__ -#define __CONFIG_TERASIC_DE0_H__ - -#include <asm/arch/base_addr_ac5.h> - -/* Memory configurations */ -#define PHYS_SDRAM_1_SIZE 0x40000000/* 1GiB */ - -/* Booting Linux */ -#define CONFIG_LOADADDR 0x01000000 -#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR - -/* Ethernet on SoC (EMAC) */ - -/* The rest of the configuration is shared */ -#include <configs/socfpga_common.h> - -#endif /* __CONFIG_TERASIC_DE0_H__ */
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 73/93 arm: Remove clearfog board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
board/solidrun/clearfog/MAINTAINERS | 6 -- board/solidrun/clearfog/Makefile | 5 - board/solidrun/clearfog/README | 51 --------- board/solidrun/clearfog/clearfog.c | 141 ------------------------- configs/clearfog_defconfig | 66 ------------ include/configs/clearfog.h | 157 ---------------------------- 6 files changed, 426 deletions(-) delete mode 100644 board/solidrun/clearfog/MAINTAINERS delete mode 100644 board/solidrun/clearfog/Makefile delete mode 100644 board/solidrun/clearfog/README delete mode 100644 board/solidrun/clearfog/clearfog.c delete mode 100644 configs/clearfog_defconfig delete mode 100644 include/configs/clearfog.h
board/solidrun/clearfog/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -CLEARFOG BOARD -M: Stefan Roese <[email protected]> -S: Maintained -F: board/solidrun/clearfog/ -F: include/configs/clearfog.h -F: configs/clearfog_defconfig
board/solidrun/clearfog/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2015 Stefan Roese <[email protected]> - -obj-y := clearfog.o
board/solidrun/clearfog/README deleted +0 -51
51 lines not on this page · raw message
board/solidrun/clearfog/clearfog.c deleted +0 -141
141 lines not on this page · raw message
configs/clearfog_defconfig deleted +0 -66
66 lines not on this page · raw message
include/configs/clearfog.h deleted +0 -157
157 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 74/93 arm: Remove socfpga_arria10 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
board/altera/arria10-socdk/Kconfig | 18 --------- board/altera/arria10-socdk/MAINTAINERS | 7 ---- board/altera/arria10-socdk/Makefile | 5 --- board/altera/arria10-socdk/socfpga.c | 6 --- configs/socfpga_arria10_defconfig | 44 ---------------------- include/configs/socfpga_arria10_socdk.h | 50 ------------------------- 6 files changed, 130 deletions(-) delete mode 100644 board/altera/arria10-socdk/Kconfig delete mode 100644 board/altera/arria10-socdk/MAINTAINERS delete mode 100644 board/altera/arria10-socdk/Makefile delete mode 100644 board/altera/arria10-socdk/socfpga.c delete mode 100644 configs/socfpga_arria10_defconfig delete mode 100644 include/configs/socfpga_arria10_socdk.h
board/altera/arria10-socdk/Kconfig deleted +0 -18
@@ -1,18 +0,0 @@ -if TARGET_SOCFPGA_ARRIA10 - -config SYS_CPU - default "armv7" - -config SYS_BOARD - default "socfpga_arria10" - -config SYS_VENDOR - default "altera" - -config SYS_SOC - default "socfpga_arria10" - -config SYS_CONFIG_NAME - default "socfpga_arria10" - -endif
board/altera/arria10-socdk/MAINTAINERS deleted +0 -7
@@ -1,7 +0,0 @@ -SOCFPGA BOARD -M: Dinh Nguyen <[email protected]> -M: Chin-Liang See <[email protected]> -S: Maintained -F: board/altera/arria10-socdk/ -F: include/configs/socfpga_arria10_socdk.h -F: configs/socfpga_arria10_defconfig
board/altera/arria10-socdk/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# Copyright (C) 2015 Altera Corporation <www.altera.com> - -obj-y := socfpga.o
board/altera/arria10-socdk/socfpga.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2015 Altera Corporation <www.altera.com> -*/ - -#include <common.h>
configs/socfpga_arria10_defconfig deleted +0 -44
44 lines not on this page · raw message
include/configs/socfpga_arria10_socdk.h deleted +0 -50
50 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 75/93 arm: Remove omap3_beagle board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
arch/arm/mach-omap2/omap3/Kconfig | 1 - board/ti/beagle/Kconfig | 12 - board/ti/beagle/MAINTAINERS | 6 - board/ti/beagle/Makefile | 7 - board/ti/beagle/beagle.c | 591 ------------------------------ board/ti/beagle/beagle.h | 545 --------------------------- board/ti/beagle/led.c | 71 ---- configs/omap3_beagle_defconfig | 82 ----- include/configs/omap3_beagle.h | 233 ------------ 9 files changed, 1548 deletions(-) delete mode 100644 board/ti/beagle/Kconfig delete mode 100644 board/ti/beagle/MAINTAINERS delete mode 100644 board/ti/beagle/Makefile delete mode 100644 board/ti/beagle/beagle.c delete mode 100644 board/ti/beagle/beagle.h delete mode 100644 board/ti/beagle/led.c delete mode 100644 configs/omap3_beagle_defconfig delete mode 100644 include/configs/omap3_beagle.h
arch/arm/mach-omap2/omap3/Kconfig +0 -1
@@ -195,7 +195,6 @@ config SYS_SOC source "board/logicpd/am3517evm/Kconfig" source "board/teejet/mt_ventoux/Kconfig" -source "board/ti/beagle/Kconfig" source "board/compulab/cm_t35/Kconfig" source "board/compulab/cm_t3517/Kconfig" source "board/ti/evm/Kconfig"
board/ti/beagle/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -if TARGET_OMAP3_BEAGLE - -config SYS_BOARD - default "beagle" - -config SYS_VENDOR - default "ti" - -config SYS_CONFIG_NAME - default "omap3_beagle" - -endif
board/ti/beagle/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -BEAGLE BOARD -M: Tom Rini <[email protected]> -S: Maintained -F: board/ti/beagle/ -F: include/configs/omap3_beagle.h -F: configs/omap3_beagle_defconfig
board/ti/beagle/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2000, 2001, 2002 -# Wolfgang Denk, DENX Software Engineering, wd at denx.de. - -obj-y := beagle.o -obj-$(CONFIG_LED_STATUS) += led.o
board/ti/beagle/beagle.c deleted +0 -591
591 lines not on this page · raw message
board/ti/beagle/beagle.h deleted +0 -545
545 lines not on this page · raw message
board/ti/beagle/led.c deleted +0 -71
71 lines not on this page · raw message
configs/omap3_beagle_defconfig deleted +0 -82
82 lines not on this page · raw message
include/configs/omap3_beagle.h deleted +0 -233
233 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 76/93 arm: Remove helios4 board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
board/kobol/helios4/MAINTAINERS | 6 -- board/kobol/helios4/Makefile | 5 - board/kobol/helios4/README | 46 --------- board/kobol/helios4/helios4.c | 163 ------------------------------ configs/helios4_defconfig | 60 ----------- include/configs/helios4.h | 172 -------------------------------- 6 files changed, 452 deletions(-) delete mode 100644 board/kobol/helios4/MAINTAINERS delete mode 100644 board/kobol/helios4/Makefile delete mode 100644 board/kobol/helios4/README delete mode 100644 board/kobol/helios4/helios4.c delete mode 100644 configs/helios4_defconfig delete mode 100644 include/configs/helios4.h
board/kobol/helios4/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -HELIOS4 BOARD -M: Dennis Gilmore <[email protected]> -S: Maintained -F: board/kobol/helios4/ -F: include/configs/helios4.h -F: configs/helios4_defconfig
board/kobol/helios4/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2018 Dennis Gilmore <[email protected]> - -obj-y := helios4.o
board/kobol/helios4/README deleted +0 -46
46 lines not on this page · raw message
board/kobol/helios4/helios4.c deleted +0 -163
163 lines not on this page · raw message
configs/helios4_defconfig deleted +0 -60
60 lines not on this page · raw message
include/configs/helios4.h deleted +0 -172
172 lines not on this page · raw message
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
PATCH 77/93 arm: Remove socfpga_socrates board
In reply to Simon GlassThis board has not been converted to CONFIG_DM_BLK by the deadline. Remove it.
---
board/altera/cyclone5-socdk/MAINTAINERS | 12 - board/altera/cyclone5-socdk/Makefile | 7 - .../altera/cyclone5-socdk/qts/iocsr_config.h | 659 ------------------ .../altera/cyclone5-socdk/qts/pinmux_config.h | 218 ------ board/altera/cyclone5-socdk/qts/pll_config.h | 84 --- .../altera/cyclone5-socdk/qts/sdram_config.h | 344 --------- board/altera/cyclone5-socdk/socfpga.c | 5 - board/ebv/socrates/MAINTAINERS | 6 - board/ebv/socrates/Makefile | 7 - board/ebv/socrates/qts/iocsr_config.h | 659 ------------------ board/ebv/socrates/qts/pinmux_config.h | 218 ------ board/ebv/socrates/qts/pll_config.h | 84 --- board/ebv/socrates/qts/sdram_config.h | 343 --------- board/ebv/socrates/socfpga.c | 5 - configs/socfpga_cyclone5_defconfig | 78 --- configs/socfpga_socrates_defconfig | 78 --- include/configs/socfpga_cyclone5_socdk.h | 22 - include/configs/socfpga_socrates.h | 22 - 18 files changed, 2851 deletions(-) delete mode 100644 board/altera/cyclone5-socdk/MAINTAINERS delete mode 100644 board/altera/cyclone5-socdk/Makefile delete mode 100644 board/altera/cyclone5-socdk/qts/iocsr_config.h delete mode 100644 board/altera/cyclone5-socdk/qts/pinmux_config.h delete mode 100644 board/altera/cyclone5-socdk/qts/pll_config.h delete mode 100644 board/altera/cyclone5-socdk/qts/sdram_config.h delete mode 100644 board/altera/cyclone5-socdk/socfpga.c delete mode 100644 board/ebv/socrates/MAINTAINERS delete mode 100644 board/ebv/socrates/Makefile delete mode 100644 board/ebv/socrates/qts/iocsr_config.h delete mode 100644 board/ebv/socrates/qts/pinmux_config.h delete mode 100644 board/ebv/socrates/qts/pll_config.h delete mode 100644 board/ebv/socrates/qts/sdram_config.h delete mode 100644 board/ebv/socrates/socfpga.c delete mode 100644 configs/socfpga_cyclone5_defconfig delete mode 100644 configs/socfpga_socrates_defconfig delete mode 100644 include/configs/socfpga_cyclone5_socdk.h delete mode 100644 include/configs/socfpga_socrates.h
board/altera/cyclone5-socdk/MAINTAINERS deleted +0 -12
@@ -1,12 +0,0 @@ -SOCFPGA BOARD -M: Dinh Nguyen <[email protected]> -M: Chin-Liang See <[email protected]> -S: Maintained -F: board/altera/cyclone5-socdk/ -F: include/configs/socfpga_cyclone5_socdk.h -F: configs/socfpga_cyclone5_defconfig - -SOCRATES BOARD -M: Stefan Roese <[email protected]> -S: Maintained -F: configs/socfpga_socrates_defconfig
board/altera/cyclone5-socdk/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2001-2006 -# Wolfgang Denk, DENX Software Engineering, wd at denx.de. -# (C) Copyright 2010, Thomas Chou <[email protected]> - -obj-y := socfpga.o
board/altera/cyclone5-socdk/qts/iocsr_config.h deleted +0 -659
659 lines not on this page · raw message
board/altera/cyclone5-socdk/qts/pinmux_config.h deleted +0 -218
218 lines not on this page · raw message
board/altera/cyclone5-socdk/qts/pll_config.h deleted +0 -84
84 lines not on this page · raw message
board/altera/cyclone5-socdk/qts/sdram_config.h deleted +0 -344
344 lines not on this page · raw message
board/altera/cyclone5-socdk/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2012 Altera Corporation <www.altera.com> -*/ -#include <common.h>
board/ebv/socrates/MAINTAINERS deleted +0 -6
@@ -1,6 +0,0 @@ -SOCRATES BOARD -M: Stefan Roese <[email protected]> -S: Maintained -F: board/ebv/socrates/ -F: include/configs/socfpga_socrates.h -F: configs/socfpga_socrates_defconfig
board/ebv/socrates/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2001-2006 -# Wolfgang Denk, DENX Software Engineering, wd at denx.de. -# (C) Copyright 2010, Thomas Chou <[email protected]> - -obj-y := socfpga.o
board/ebv/socrates/qts/iocsr_config.h deleted +0 -659
659 lines not on this page · raw message
board/ebv/socrates/qts/pinmux_config.h deleted +0 -218
218 lines not on this page · raw message
board/ebv/socrates/qts/pll_config.h deleted +0 -84
84 lines not on this page · raw message
board/ebv/socrates/qts/sdram_config.h deleted +0 -343
343 lines not on this page · raw message
board/ebv/socrates/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2012 Altera Corporation <www.altera.com> -*/ -#include <common.h>
configs/socfpga_cyclone5_defconfig deleted +0 -78
78 lines not on this page · raw message
configs/socfpga_socrates_defconfig deleted +0 -78
78 lines not on this page · raw message
include/configs/socfpga_cyclone5_socdk.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* Copyright (C) 2014 Marek Vasut <[email protected]> -*/ -#ifndef __CONFIG_SOCFPGA_CYCLONE5_H__ -#define __CONFIG_SOCFPGA_CYCLONE5_H__ - -#include <asm/arch/base_addr_ac5.h> - -/* Memory configurations */ -#define PHYS_SDRAM_1_SIZE 0x40000000/* 1GiB on SoCDK */ - -/* Booting Linux */ -#define CONFIG_LOADADDR 0x01000000 -#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR - -/* Ethernet on SoC (EMAC) */ - -/* The rest of the configuration is shared */ -#include <configs/socfpga_common.h> - -#endif /* __CONFIG_SOCFPGA_CYCLONE5_H__ */
include/configs/socfpga_socrates.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* Copyright (C) 2015 Marek Vasut <[email protected]> -*/ -#ifndef __CONFIG_SOCFPGA_SOCRATES_H__ -#define __CONFIG_SOCFPGA_SOCRATES_H__ - -#include <asm/arch/base_addr_ac5.h> - -/* Memory configurations */ -#define PHYS_SDRAM_1_SIZE 0x40000000/* 1GiB on SoCrates */ - -/* Booting Linux */ -#define CONFIG_LOADADDR 0x01000000 -#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR - -/* Ethernet on SoC (EMAC) */ - -/* The rest of the configuration is shared */ -#include <configs/socfpga_common.h> - -#endif /* __CONFIG_SOCFPGA_SOCRATES_H__ */
Signature · 1 line
2.19.1.1215.g8438c0b245-goog