Add support for the MT41K128M16JT125K memory modules
Subsystems (3)
PATCH 1/3 Add support for the MT41K128M16JT125K memory modules
From: Sjoerd Simons <[email protected]>
Add configuration for the MT41K128M16JT125K memory modules as used on the Bosch Guardian device.
Based on a patch by:
Govindaraji Sivanantham <[email protected]>
---
arch/arm/include/asm/arch-am33xx/ddr_defs.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm/include/asm/arch-am33xx/ddr_defs.h +16 -0
@@ -84,6 +84,22 @@#define MT41K128MJT187E_PHY_FIFO_WE 0x100#define MT41K128MJT187E_IOCTRL_VALUE 0x18B +/* Micron MT41K128M16JT-125 IT:K (256 MB) at 400MHz */ +#define MT41K128M16JT125K_EMIF_READ_LATENCY 0x07 +#define MT41K128M16JT125K_EMIF_TIM1 0x0AAAD4DB +#define MT41K128M16JT125K_EMIF_TIM2 0x2A437FDA +#define MT41K128M16JT125K_EMIF_TIM3 0x501F83FF +#define MT41K128M16JT125K_EMIF_SDCFG 0x61A052B2 +#define MT41K128M16JT125K_EMIF_SDREF 0x00000C30 +#define MT41K128M16JT125K_ZQ_CFG 0x50074BE4 +#define MT41K128M16JT125K_RATIO 0x80 +#define MT41K128M16JT125K_INVERT_CLKOUT 0x0 +#define MT41K128M16JT125K_RD_DQS 0x38 +#define MT41K128M16JT125K_WR_DQS 0x46 +#define MT41K128M16JT125K_PHY_WR_DATA 0x7D +#define MT41K128M16JT125K_PHY_FIFO_WE 0x9B +#define MT41K128M16JT125K_IOCTRL_VALUE 0x18B +/* Micron MT41J64M16JT-125 */ #define MT41J64MJT125_EMIF_SDCFG 0x61C04A32
Signature · 1 line
2.20.1
PATCH 2/3 env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build
Currently CONFIG_ENV_OFFSET_REDUND is checked regardless of the type of build being performed, but this doesn't seem to be needed in SPL builds.
Don't check this configuration option for SPL builds.
---
env/nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
env/nand.c +1 -1
@@ -26,7 +26,7 @@#if defined(CONFIG_CMD_SAVEENV ) && defined(CONFIG_CMD_NAND ) && \ !defined(CONFIG_SPL_BUILD )#define CMD_SAVEENV -#elif defined(CONFIG_ENV_OFFSET_REDUND ) +#elif defined(CONFIG_ENV_OFFSET_REDUND ) && !defined(CONFIG_SPL_BUILD )#error CONFIG_ENV_OFFSET_REDUND must have CONFIG_CMD_SAVEENV & CONFIG_CMD_NAND#endif
Signature · 1 line
2.20.1
PATCH 2/3 env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build
Quoted 16 lines · Martyn Welch
Currently
CONFIG_ENV_OFFSET_REDUNDis checked regardless of the type of build being performed, but this doesn't seem to be needed in SPL builds.Don't check this configuration option for SPL builds.
Signed-off-by Martyn Welch <[email protected]>---
env/nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)env/nand.c +0
-0
env/nand.c line 31
Quoted 7 lines
env/nand.c +1
-1@@ -26,7 +26,7 @@#if defined(CONFIG_CMD_SAVEENV ) && defined(CONFIG_CMD_NAND ) && \ !defined(CONFIG_SPL_BUILD )#define CMD_SAVEENV -#elif defined(CONFIG_ENV_OFFSET_REDUND ) +#elif defined(CONFIG_ENV_OFFSET_REDUND ) && !defined(CONFIG_SPL_BUILD )#error CONFIG_ENV_OFFSET_REDUND must have CONFIG_CMD_SAVEENV & CONFIG_CMD_NAND#endif
I'm confused. If we have redundant env, and we have env in nand, we need to know. That said, I guess this is just a sanity check for build time, and until we have ENV_OFFSET_REDUND (and others) move to Kconfig we can't also delete those #error lines. Am I at least right about where/how you hit this problem? 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/20190221/c32d604d/attachment.sig>
PATCH 2/3 env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build
Quoted 30 lines · Tom Rini
Quoted 25 lines · Martyn Welch
Currently
CONFIG_ENV_OFFSET_REDUNDis checked regardless of the type of
build being performed, but this doesn't seem to be needed in SPL builds.Don't check this configuration option for SPL builds.
Signed-off-by Martyn Welch <[email protected]>---
env/nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)env/nand.c +1
-1@@ -26,7 +26,7 @@#if defined(CONFIG_CMD_SAVEENV ) && defined(CONFIG_CMD_NAND ) && \ !defined(CONFIG_SPL_BUILD )#define CMD_SAVEENV -#elif defined(CONFIG_ENV_OFFSET_REDUND ) +#elif defined(CONFIG_ENV_OFFSET_REDUND ) && !defined(CONFIG_SPL_BUILD )#error CONFIG_ENV_OFFSET_REDUND must have CONFIG_CMD_SAVEENV &Quoted 2 lines
CONFIG_CMD_NAND
#endif
Quoted 8 lines
I'm confused. If we have redundant env, and we have env in nand, we need to know. That said, I guess this is just a sanity check for build
time, and until we haveENV_OFFSET_REDUND(and others) move toKconfig
we can't also delete those #error lines. Am I at least right about where/how you hit this problem? Thanks!
We are booting the board with an SPL. We can either do this from NAND, SDCard or via USB with the boot ROM loader. The boot ROM in the am335x can use RNDIS via the USB and thus we use gadget eth from the SPL to load the main U-Boot image. To enable CONFIG_SPL_ETH_SUPPORT, we must enable CONFIG_SPL_ENV_SUPPORT as the environment is used by the eth support, but we don't actually need to have environment variables saved in the SPL environment.
We do however have environment variables saved in the main U-Boot image and enable CONFIG_ENV_OFFSET_REDUND (we are storing in raw NAND) and my .config shows that both CONFIG_CMD_SAVEENV and CONFIG_CMD_NAND are set, they just don't seem to be visible when building the SPL. This didn't seem overly odd so haven't looked into why, my assumption was that the above combination wasn't widely used and thus the need to avoid the check when building the SPL in this instance hadn't been anticipated.
Am I just looking at this from the wrong angle?
Martyn
PATCH 2/3 env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build
Quoted 56 lines · Martyn Welch
Quoted 30 lines · Tom Rini
Quoted 25 lines · Martyn Welch
Currently
CONFIG_ENV_OFFSET_REDUNDis checked regardless of the type of
build being performed, but this doesn't seem to be needed in SPL builds.Don't check this configuration option for SPL builds.
Signed-off-by Martyn Welch <[email protected]>---
env/nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)env/nand.c +1
-1@@ -26,7 +26,7 @@#if defined(CONFIG_CMD_SAVEENV ) && defined(CONFIG_CMD_NAND ) && \ !defined(CONFIG_SPL_BUILD )#define CMD_SAVEENV -#elif defined(CONFIG_ENV_OFFSET_REDUND ) +#elif defined(CONFIG_ENV_OFFSET_REDUND ) && !defined(CONFIG_SPL_BUILD )#error CONFIG_ENV_OFFSET_REDUND must have CONFIG_CMD_SAVEENV &Quoted 2 lines
CONFIG_CMD_NAND
#endifQuoted 8 lines
I'm confused. If we have redundant env, and we have env in nand, we need to know. That said, I guess this is just a sanity check for build
time, and until we haveENV_OFFSET_REDUND(and others) move toKconfig
we can't also delete those #error lines. Am I at least right about where/how you hit this problem? Thanks!We are booting the board with an SPL. We can either do this from NAND, SDCard or via USB with the boot ROM loader. The boot ROM in the am335x can use RNDIS via the USB and thus we use gadget eth from the SPL to load the main U-Boot image. To enable
CONFIG_SPL_ETH_SUPPORT, we must enableCONFIG_SPL_ENV_SUPPORTas the environment is used by the eth support, but we don't actually need to have environment variables saved in the SPL environment.We do however have environment variables saved in the main U-Boot image and enable
CONFIG_ENV_OFFSET_REDUND(we are storing in raw NAND) and my .config shows that bothCONFIG_CMD_SAVEENVandCONFIG_CMD_NANDare set, they just don't seem to be visible when building the SPL. This didn't seem overly odd so haven't looked into why, my assumption was that the above combination wasn't widely used and thus the need to avoid the check when building the SPL in this instance hadn't been anticipated.
Quoted 1 line
Am I just looking at this from the wrong angle?
OK, so I think your patch is OK in that yes, for now there's some sanity checks we do with #errors that should be Kconfig, once things are migrated fully. But you may also want CONFIG_ENV_IS_IN_NAND and CONFIG_SPL_ENV_IS_NOWHERE for CONFIG_SPL_ETH_SUPPORT as that would avoid this problem and perhaps save you some space?
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/20190222/6f822833/attachment.sig>
PATCH 2/3 env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build
Quoted 74 lines · Tom Rini
Quoted 71 lines · Martyn Welch
Quoted 33 lines · Tom Rini
Quoted 27 lines · Martyn Welch
Currently
CONFIG_ENV_OFFSET_REDUNDis checked regardless of the type of
build being performed, but this doesn't seem to be needed in SPL
builds.Don't check this configuration option for SPL builds.
Signed-off-by Martyn Welch <[email protected]>---
env/nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)env/nand.c +1
-1@@ -26,7 +26,7 @@#if defined(CONFIG_CMD_SAVEENV ) && defined(CONFIG_CMD_NAND ) && \ !defined(CONFIG_SPL_BUILD )#define CMD_SAVEENV -#elif defined(CONFIG_ENV_OFFSET_REDUND ) +#elif defined(CONFIG_ENV_OFFSET_REDUND ) && !defined(CONFIG_SPL_BUILD )#error CONFIG_ENV_OFFSET_REDUND must have CONFIG_CMD_SAVEENV &Quoted 2 lines
CONFIG_CMD_NAND
#endifI'm confused. If we have redundant env, and we have env in nand,
Quoted 9 lines
we
need to know. That said, I guess this is just a sanity check for build
time, and until we haveENV_OFFSET_REDUND(and others) move toKconfig
we can't also delete those #error lines. Am I at least right about
where/how you hit this problem? Thanks!We are booting the board with an SPL. We can either do this from NAND,
SDCard or via USB with the boot ROM loader. The boot ROM in the am335x
can use RNDIS via the USB and thus we use gadget eth from the SPL to
load the main U-Boot image. To enableCONFIG_SPL_ETH_SUPPORT, we must
enableCONFIG_SPL_ENV_SUPPORTas the environment is used by the eth support, but we don't actually need to have environment variables saved
in the SPL environment.We do however have environment variables saved in the main U-Boot image
and enableCONFIG_ENV_OFFSET_REDUND(we are storing in raw NAND) and my
.config shows that bothCONFIG_CMD_SAVEENVandCONFIG_CMD_NANDare set,
they just don't seem to be visible when building the SPL. This didn't
seem overly odd so haven't looked into why, my assumption was that the
above combination wasn't widely used and thus the need to avoid the check when building the SPL in this instance hadn't been anticipated.Quoted 1 line
Am I just looking at this from the wrong angle?
Quoted 8 lines
OK, so I think your patch is OK in that yes, for now there's some sanity
checks we do with #errors that should beKconfig, once things are migrated fully. But you may also wantCONFIG_ENV_IS_IN_NANDandCONFIG_SPL_ENV_IS_NOWHEREforCONFIG_SPL_ETH_SUPPORTas that would avoid
this problem and perhaps save you some space?
Those are already set in the config :-)
Thanks,
Martyn
PATCH 2/3 env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build
In reply to Martyn WelchQuoted 20 lines · Martyn Welch
Currently
CONFIG_ENV_OFFSET_REDUNDis checked regardless of the type of build being performed, but this doesn't seem to be needed in SPL builds.Don't check this configuration option for SPL builds.
Signed-off-by Martyn Welch <[email protected]>---
env/nand.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)env/nand.c +0
-0
env/nand.c line 31
Quoted 7 lines
env/nand.c +1
-1@@ -26,7 +26,7 @@#if defined(CONFIG_CMD_SAVEENV ) && defined(CONFIG_CMD_NAND ) && \ !defined(CONFIG_SPL_BUILD )#define CMD_SAVEENV -#elif defined(CONFIG_ENV_OFFSET_REDUND ) +#elif defined(CONFIG_ENV_OFFSET_REDUND ) && !defined(CONFIG_SPL_BUILD )#error CONFIG_ENV_OFFSET_REDUND must have CONFIG_CMD_SAVEENV & CONFIG_CMD_NAND#endif
Could we use CONFIG_IS_ENABLED and then differentiate via Kconfig and ENV_OFFSET_REDUND, SPL_ENV_OFFSET_REDUND and TPL_ENV_OFFSET_REDUND?
PATCH 2/3 env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build
Quoted 15 lines · Philipp Tomsich
Quoted 15 lines · Martyn Welch
Currently
CONFIG_ENV_OFFSET_REDUNDis checked regardless of the type of build being performed, but this doesn't seem to be needed in SPL builds.Don't check this configuration option for SPL builds.
Signed-off-by Martyn Welch <[email protected]>---
env/nand.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
env/nand.c line 31
Quoted 12 lines
env/nand.c +1
-1@@ -26,7 +26,7 @@#if defined(CONFIG_CMD_SAVEENV ) && defined(CONFIG_CMD_NAND ) && \ !defined(CONFIG_SPL_BUILD )#define CMD_SAVEENV -#elif defined(CONFIG_ENV_OFFSET_REDUND ) +#elif defined(CONFIG_ENV_OFFSET_REDUND ) && !defined(CONFIG_SPL_BUILD )#error CONFIG_ENV_OFFSET_REDUND must have CONFIG_CMD_SAVEENV & CONFIG_CMD_NAND#endif Could we use
CONFIG_IS_ENABLEDand then differentiate viaKconfigandENV_OFFSET_REDUND,SPL_ENV_OFFSET_REDUNDandTPL_ENV_OFFSET_REDUND?
We need another round of non-trivial ENV related Kconfig migration and then we would remove this hunk entirely and express things correctly. CONFIG_CMD_NAND check here is an abuse from before we had globally a real CONFIG_NAND to check on, and I'm not sure CMD_SAVEENV is _really_ needed (I mean, it is, in order to populate the alt location, I think anyhow).
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/20190222/27436602/attachment.sig>
PATCH 3/3 am335x, guardian: Add support for the bosch guardian board
In reply to Martyn WelchFrom: Sjoerd Simons <[email protected]>
Add support for the Bosch Guardian board.
CPU : AM335X-GP rev 2.1 Model: Bosch AM335x Guardian I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0
---
arch/arm/Kconfig | 1 + arch/arm/dts/am335x-guardian-u-boot.dtsi | 66 +++ arch/arm/dts/am335x-guardian.dts | 511 +++++++++++++++++++++++ arch/arm/mach-omap2/am33xx/Kconfig | 7 + board/bosch/guardian/Kconfig | 15 + board/bosch/guardian/MAINTAINERS | 6 + board/bosch/guardian/Makefile | 12 + board/bosch/guardian/board.c | 204 +++++++++ board/bosch/guardian/board.h | 17 + board/bosch/guardian/mux.c | 99 +++++ configs/am335x_guardian_defconfig | 90 ++++ include/configs/am335x_guardian.h | 134 ++++++ 12 files changed, 1162 insertions(+) create mode 100644 arch/arm/dts/am335x-guardian-u-boot.dtsi create mode 100644 arch/arm/dts/am335x-guardian.dts create mode 100644 board/bosch/guardian/Kconfig create mode 100644 board/bosch/guardian/MAINTAINERS create mode 100644 board/bosch/guardian/Makefile create mode 100644 board/bosch/guardian/board.c create mode 100644 board/bosch/guardian/board.h create mode 100644 board/bosch/guardian/mux.c create mode 100644 configs/am335x_guardian_defconfig create mode 100644 include/configs/am335x_guardian.h
arch/arm/Kconfig +1 -0
@@ -1524,6 +1524,7 @@ source "arch/arm/cpu/armv8/Kconfig" source "arch/arm/mach-imx/Kconfig" source "board/bosch/shc/Kconfig" +source "board/bosch/guardian/Kconfig" source "board/CarMediaLab/flea3/Kconfig" source "board/Marvell/aspenite/Kconfig" source "board/Marvell/gplugd/Kconfig"
arch/arm/dts/am335x-guardian-u-boot.dtsi new file +66 -0
66 lines not on this page · raw message
arch/arm/dts/am335x-guardian.dts new file +511 -0
511 lines not on this page · raw message
arch/arm/mach-omap2/am33xx/Kconfig +7 -0
@@ -87,6 +87,13 @@ config TARGET_AM335X_SHC imply CMD_DM imply CMD_SPL +config TARGET_AM335X_GUARDIAN + bool "Support am335x based guardian board from bosch" + select DM + select DM_SERIAL + select DM_GPIO + select DM_USB + config TARGET_AM335X_SL50 bool "Support am335x_sl50" select BOARD_LATE_INIT
board/bosch/guardian/Kconfig new file +15 -0
@@ -0,0 +1,15 @@ +if TARGET_AM335X_GUARDIAN + +config SYS_BOARD + default "guardian" + +config SYS_VENDOR + default "bosch" + +config SYS_SOC + default "am33xx" + +config SYS_CONFIG_NAME + default "am335x_guardian" + +endif
board/bosch/guardian/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +Guardian BOARD +M: Sjoerd Simons <[email protected]> +S: Maintained +F: board/bosch/guardian/ +F: include/configs/am335x_guardian.h +F: configs/am335x_guardian_defconfig
board/bosch/guardian/Makefile new file +12 -0
@@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Makefile +# +# Copyright (C) 2018 Robert Bosch Power Tools GmbH +# + +ifeq ($(CONFIG_SKIP_LOWLEVEL_INIT),) +obj-y := mux.o +endif + +obj-y += board.o
board/bosch/guardian/board.c new file +204 -0
204 lines not on this page · raw message
board/bosch/guardian/board.h new file +17 -0
@@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* board.h +* +* Board header for Bosch Guardian +* +* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ +* Copyright (C) 2018 Robert Bosch Power Tools GmbH +*/ + +#ifndef _BOARD_H_ +#define _BOARD_H_ + +void enable_uart0_pin_mux (void ); +void enable_i2c0_pin_mux (void ); +void enable_board_pin_mux (void ); +#endif
board/bosch/guardian/mux.c new file +99 -0
99 lines not on this page · raw message
configs/am335x_guardian_defconfig new file +90 -0
90 lines not on this page · raw message
include/configs/am335x_guardian.h new file +134 -0
134 lines not on this page · raw message
Signature · 1 line
2.20.1
PATCH 3/3 am335x, guardian: Add support for the bosch guardian board
Hi Martyn,
Quoted 40 lines · Martyn Welch
From: Sjoerd Simons <[email protected]>
Add support for the Bosch Guardian board.
CPU : AM335X-GP rev 2.1 Model: Bosch AM335x Guardian I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0Signed-off-by Sjoerd Simons <[email protected]>Signed-off-by Martyn Welch <[email protected]>---
arch/arm/Kconfig | 1 + arch/arm/dts/am335x-guardian-u-boot.dtsi | 66 +++ arch/arm/dts/am335x-guardian.dts | 511 +++++++++++++++++++++++ arch/arm/mach-omap2/am33xx/Kconfig | 7 + board/bosch/guardian/Kconfig | 15 + board/bosch/guardian/MAINTAINERS | 6 + board/bosch/guardian/Makefile | 12 + board/bosch/guardian/board.c | 204 +++++++++ board/bosch/guardian/board.h | 17 + board/bosch/guardian/mux.c | 99 +++++ configs/am335x_guardian_defconfig | 90 ++++ include/configs/am335x_guardian.h | 134 ++++++ 12 files changed, 1162 insertions(+) create mode 100644 arch/arm/dts/am335x-guardian-u-boot.dtsi create mode 100644 arch/arm/dts/am335x-guardian.dts create mode 100644 board/bosch/guardian/Kconfig create mode 100644 board/bosch/guardian/MAINTAINERS create mode 100644 board/bosch/guardian/Makefile create mode 100644 board/bosch/guardian/board.c create mode 100644 board/bosch/guardian/board.h create mode 100644 board/bosch/guardian/mux.c create mode 100644 configs/am335x_guardian_defconfig create mode 100644 include/configs/am335x_guardian.h
[...]
Quoted 8 lines
include/configs/am335x_guardian.h new file +2
-0@@ -0,0 +1,134 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/*
include/configs/am335x_guardian.h line 12
Quoted 10 lines
include/configs/am335x_guardian.h new file +10
-0+* am335x_guardian_.h +* +* Copyright (C) 2015 Toby Churchill Ltd - http://www.toby-churchill.com/ +* Copyright (C) 2018 Robert Bosch Power Tools GmbH +* Copyright (C) 2018 sjoerd Simons <[email protected]> +* +*/ + +#ifndef __CONFIG_AM335X_EVM_H +#define __CONFIG_AM335X_EVM_H
Shouldn't that be __CONFIG_AM335X_GUARDIAN_H instead of __CONFIG_AM335X_EVM_H ?
Quoted 113 lines
include/configs/am335x_guardian.h new file +112
-0+ +#include <configs/ti_am335x_common.h> + +#ifndef CONFIG_SPL_BUILD +# define CONFIG_TIMESTAMP +#endif + +#define CONFIG_SYS_BOOTM_LEN (16 << 20) + +/* Clock Defines */ +#define V_OSCK 24000000/* Clock output from T2 */ +#define V_SCLK (V_OSCK) + +#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG + +#ifndef CONFIG_SPL_BUILD + +#define MEM_LAYOUT_ENV_SETTINGS \ + "scriptaddr=0x80000000\0" \ + "pxefile_addr_r=0x80100000\0" \ + "kernel_addr_r=0x82000000\0" \ + "fdt_addr_r=0x88000000\0" \ + "ramdisk_addr_r=0x88080000\0" \ + +#define BOOT_TARGET_DEVICES (func) \ + func(MMC, mmc, 0) \ + func(UBIFS, ubifs, 0) \ + func(PXE, pxe, na) \ + func(DHCP, dhcp, na) + +#define AM335XX_BOARD_FDTFILE "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" + +#include <config_distro_bootcmd.h> + +#define CONFIG_EXTRA_ENV_SETTINGS \ + AM335XX_BOARD_FDTFILE \ + MEM_LAYOUT_ENV_SETTINGS \ + BOOTENV \ + "bootlimit=3\0" \ + "altbootcmd=" \ + "setenv boot_config \"extlinux-rollback.conf\"; " \ + "run distro_bootcmd\0" +#endif + +/* 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 */ + +/* PMIC support */ +#define CONFIG_POWER_TPS65217 +#define CONFIG_POWER_TPS65910 + +/* SPL */ + +/* Bootcount using the RTC block */ +#define CONFIG_SYS_BOOTCOUNT_LE + +#if defined(CONFIG_SPL_BUILD ) && defined(CONFIG_SPL_USB_ETHER ) +/* Remove other SPL modes. */ +/* disable host part of MUSB in SPL */ +#undef CONFIG_MUSB_HOST +/* disable EFI partitions and partition UUID support */ +#endif + +#if defined(CONFIG_EMMC_BOOT ) +#define CONFIG_SYS_MMC_ENV_DEV 1 +#define CONFIG_ENV_SIZE (128 << 10) +#define CONFIG_ENV_OFFSET (896 << 10)/* 896 KiB in */ +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT +#endif + +#ifdef CONFIG_NAND + +#define CONFIG_ENV_OFFSET 0x300000 +#define CONFIG_ENV_OFFSET_REDUND 0x340000 +#define CONFIG_ENV_SIZE 0x040000 + +#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 4096 +#define CONFIG_SYS_NAND_OOBSIZE 256 +#define CONFIG_SYS_NAND_BLOCK_SIZE (256 * 1024) + +#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, 58, 59, \ + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, \ + 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, \ + 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, \ + 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, \ + 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, \ + 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, \ + 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, \ + 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, \ + 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, \ + 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, \ + 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, \ + 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, \ + 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, \ + 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, \ + 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, \ + } +#define CONFIG_SYS_NAND_ECCSIZE 512
include/configs/am335x_guardian.h line 134
Quoted 10 lines
include/configs/am335x_guardian.h new file +10
-0+#define CONFIG_SYS_NAND_ECCBYTES 26 +#define CONFIG_SYS_NAND_ONFI_DETECTION +#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH16_CODE_HW +#define MTDIDS_DEFAULT "nand0=nand.0" + +#define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS + +#endif + +#endif /* ! __CONFIG_AM335X_GUARDIAN_H */
regards Felix
PATCH 3/3 am335x, guardian: Add support for the bosch guardian board
Quoted 8 lines · Felix Brack
Hi Martyn,
include/configs/am335x_guardian.h line 12
Quoted 2 lines · Martyn Welch
include/configs/am335x_guardian.h new file +2
-0+#ifndef __CONFIG_AM335X_EVM_H +#define __CONFIG_AM335X_EVM_HShouldn't that be
__CONFIG_AM335X_GUARDIAN_Hinstead of__CONFIG_AM335X_EVM_H?
Yes it should, thanks for spotting this.
Martyn
PATCH 3/3 am335x, guardian: Add support for the bosch guardian board
In reply to Martyn WelchQuoted 13 lines · Martyn Welch
From: Sjoerd Simons <[email protected]>
Add support for the Bosch Guardian board.
CPU : AM335X-GP rev 2.1 Model: Bosch AM335x Guardian I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0Signed-off-by Sjoerd Simons <[email protected]>Signed-off-by Martyn Welch <[email protected]>
[snip]
include/configs/am335x_guardian.h line 79
Quoted 11 lines
include/configs/am335x_guardian.h new file +11
-0+/* SPL */ + +/* Bootcount using the RTC block */ +#define CONFIG_SYS_BOOTCOUNT_LE + +#if defined(CONFIG_SPL_BUILD ) && defined(CONFIG_SPL_USB_ETHER ) +/* Remove other SPL modes. */ +/* disable host part of MUSB in SPL */ +#undef CONFIG_MUSB_HOST +/* disable EFI partitions and partition UUID support */ +#endif
There's some uplifting cleanup still to be done here. Do you even have SPL_USB_ETHER support? But regardless CONFIG_MUSB_HOST isn't even a symbol now. Please drop this and then give the config.h file itself a good hard read for other bits like this, or things that should be in the defconfig file now, 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/20190221/d4a3961c/attachment.sig>