Re: [U-Boot] pull request for u-boot-tegra/master into ARM/master
Hi Tom, On Fri, 6 Jun 2014 08:53:39 -0700, Tom Warren twarren.nvi...@gmail.com wrote: Albert, Please pull u-boot-tegra/master into ARM/master. Thanks! ./MAKEALL -s tegra AOK, checkpatch.pl is OK, and ./MAKEALL -a arm only shows failures that were already present in ARM/master. The following changes since commit cc49da249cf2f380d2fed5571fad65ce6494fc95: Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' (2014-06-02 08:43:48 +0200) are available in the git repository at: git://git.denx.de/u-boot-tegra.git master for you to fetch changes up to e6607cffef965011ef0ddc0fbe6f4b7c0d53aeec: ARM: tegra: enable USB device mode and UMS on some boards (2014-06-05 11:25:54 -0700) Stephen Warren (1): ARM: tegra: enable USB device mode and UMS on some boards arch/arm/dts/tegra124-jetson-tk1.dts | 9 - arch/arm/dts/tegra124-venice2.dts| 9 - arch/arm/dts/tegra30-beaver.dts | 9 - include/configs/beaver.h | 2 ++ include/configs/jetson-tk1.h | 2 ++ include/configs/tegra-common-ums.h | 26 ++ include/configs/venice2.h| 2 ++ 7 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 include/configs/tegra-common-ums.h Applied to u-boot-arm/master, thanks! Amicalement, -- Albert. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Please pull u-boot-ti/master
Hi Tom, On Fri, 6 Jun 2014 17:56:51 -0400, Tom Rini tr...@ti.com wrote: Hello, The following changes since commit cc49da249cf2f380d2fed5571fad65ce6494fc95: Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' (2014-06-02 08:43:48 +0200) are available in the git repository at: git://git.denx.de/u-boot-ti.git master for you to fetch changes up to 83bad1026b9e3a4f6b7783cc1cbb434c1bbd3fa2: arm:am43xx: Add TPS65218 support to scale voltages up (2014-06-06 17:46:16 -0400) Brian Norris (2): mtd: nand: don't use read_buf for 8-bit ONFI transfers mtd: nand: force NAND_CMD_READID onto 8-bit bus David Mosberger (1): mtd: nand: fix GET/SET_FEATURES address on 16-bit devices Hannes Petermaier (6): arch-am33xx: Add defines for timer0-7 board/BuR/common: introduce usage of CONFIG_SYS_GENERIC_BOARD board/BuR/tseries: Add support for using 8-bit on eMMC board/BuR/tseries: only run gpmc_init(...) in NAND-build board/BuR/common: Add CONFIG_CMD_I2C board/BuR/tseries: cosmetic changes Jeroen Hofstee (1): tam3517: fix NAND detection Lokesh Vutla (2): ARM: AM43xx: Fix mmcboot command in EXTRA_ENV_SETTINGS ARM: AM43xx: Fix UART clocks enabling Murali Karicheri (1): keystone: init: enable UART1 to be able use it from kernel Sourav Poddar (2): am43xx_evm: Add qspiboot target ti: qspi: populate slave device to set flash quad bit. Tom Rini (6): arm:am33xx: Make dram_init call sdram_init() in some contexts arm:am33xx: Rework s_init and add board_early_init_f am43xx: Only read the MPU frequency bits of CTRL_DEV_ATTR arm:am33xx: Add a scale_vcores() hook power: Add support for the TPS65218 PMIC arm:am43xx: Add TPS65218 support to scale voltages up WingMan Kwok (1): keystone: k2hk: enable support of nand ecclayout command pekon gupta (12): mtd: nand: omap_elm: remove #include omap_gpmc.h mtd: nand: omap_elm: use bch_type instead of nibble count to differentiate between BCH4/BCH8/BCH16 mtd: nand: omap_elm: use macros for register definitions mtd: nand: omap_gpmc: remove unused members of 'struct nand_bch_priv' mtd: nand: omap_gpmc: rename struct nand_bch_priv to struct omap_nand_info mtd: nand: omap_gpmc: minor cleanup of omap_correct_data_bch mtd: nand: omap: fix error-codes returned from omap-elm driver mtd: nand: omap: add CONFIG_SYS_NAND_BUSWIDTH_16BIT to indicate NAND device bus-width omap3: remove remnant macros GPMC_NAND_ECC_LP_x8_LAYOUT and GPMC_NAND_ECC_LP_x16_LAYOUT mtd: nand: omap_gpmc: use macro for register definitions mtd: nand: omap: add support for BCH16_ECC - NAND driver updates am335x: update README for BCH16 arch/arm/cpu/armv7/am33xx/board.c | 20 +- arch/arm/cpu/armv7/am33xx/clock.c | 11 ++ arch/arm/cpu/armv7/am33xx/clock_am43xx.c |9 + arch/arm/cpu/armv7/am33xx/emif4.c |4 + arch/arm/cpu/armv7/keystone/init.c |9 + arch/arm/cpu/armv7/omap3/mem.c | 12 -- arch/arm/include/asm/arch-am33xx/clock.h |1 + arch/arm/include/asm/arch-am33xx/cpu.h | 35 +++- arch/arm/include/asm/arch-keystone/hardware-k2hk.h |2 - arch/arm/include/asm/arch-keystone/hardware.h |3 + arch/arm/include/asm/arch-omap3/mem.h |8 - board/BuR/tseries/board.c |2 + board/BuR/tseries/mux.c|9 +- board/compulab/cm_t35/cm_t35.c | 12 +- board/ti/am43xx/Makefile |2 +- board/ti/am43xx/board.c| 55 +- boards.cfg |1 + doc/README.nand| 60 ++ drivers/mtd/nand/am335x_spl_bch.c |2 +- drivers/mtd/nand/atmel_nand.c |2 +- drivers/mtd/nand/nand_base.c | 11 +- drivers/mtd/nand/nand_spl_simple.c |2 +- drivers/mtd/nand/omap_elm.c| 28 ++- drivers/mtd/nand/omap_gpmc.c | 193 +--- drivers/power/pmic/Makefile|1 + drivers/power/pmic/pmic_tps65218.c | 97 ++ drivers/spi/ti_qspi.c |1 + include/configs/am3517_crane.h |1 + include/configs/am43xx_evm.h | 45 - include/configs/bur_am335x_common.h|4 +- include/configs/cm_t335.h |1 - include/configs/cm_t35.h |1 -
[U-Boot] Pull request: u-boot-arm/master
Hi Tom, The following changes since commit 9637a1bb896efe392a58dd2772e2c3fcb646409d: ARM: at91sam9m10g45ek: add mmc environment configuration support (2014-05-27 00:10:55 +0200) are available in the git repository at: git://git.denx.de/u-boot-arm master for you to fetch changes up to 5ed28948a3ffe6c735386e59c132989869beaa3e: Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' (2014-06-08 09:14:19 +0200) Aaron Durbin (3): exynos5: Enable tps65090 on exynos5-dt power: Explicitly select pmic device's bus exynos5: support tps65090 pmic Albert ARIBAUD (2): Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' Beomho Seo (3): arm: exynos: pinmux: add sdmmc4 gpio configratuion arm: exynos: clock: Remove exynos4x12_set_mmc_clk function board: trats2: Enable device tree on Trats2 Brian Norris (2): mtd: nand: don't use read_buf for 8-bit ONFI transfers mtd: nand: force NAND_CMD_READID onto 8-bit bus David Mosberger (1): mtd: nand: fix GET/SET_FEATURES address on 16-bit devices Doug Anderson (1): Exynos: Make sure ps_hold gets set in the SPL Hannes Petermaier (6): arch-am33xx: Add defines for timer0-7 board/BuR/common: introduce usage of CONFIG_SYS_GENERIC_BOARD board/BuR/tseries: Add support for using 8-bit on eMMC board/BuR/tseries: only run gpmc_init(...) in NAND-build board/BuR/common: Add CONFIG_CMD_I2C board/BuR/tseries: cosmetic changes Jaehoon Chung (12): ARM: exynos: board: change the mmc/sd init sequence ARM: exynos: clock: modify the set_mmc_clk for exynos4 ARM: dts: exynos: rename from EXYNOS5_DWMMC to EXYNOS_DWMMC mmc: exynos_dw_mmc: restore the property into host mmc: remove the unnecessary define and fix the wrong bit control mmc: support the DDR mode for eMMC mmc: dw_mmc: support the DDR mode ARM: dts: exnyos: enable dw-mmc controller mmc: exynos_dw_mmc: enable the DDR mode ARM: exynos4: enable the dwmmc configuration mmc: s5p_sdhci: add the s5p_sdhci_core_init function ARM: exynos5420: removed undefined gpio structure Jeroen Hofstee (1): tam3517: fix NAND detection Lokesh Vutla (2): ARM: AM43xx: Fix mmcboot command in EXTRA_ENV_SETTINGS ARM: AM43xx: Fix UART clocks enabling Mateusz Zalega (4): arm: goni: Update configuration for Goni target arm: goni: dfu: Add support for DFU to Goni target arm: goni: enable GPT command arm: goni: enable USB Mass Storage Murali Karicheri (1): keystone: init: enable UART1 to be able use it from kernel Piotr Wilczek (1): arm:board:exynos4: add CONFIG_SYS_GENERIC_BOARD Simon Glass (8): exynos: dts: Correct EC interrupt GPIO exynos: Drop old smdk5250.c file power: Rename CONFIG_PMIC_... to CONFIG_POWER_... power: Add PMIC_ prefix to CHARGER_EN/DISABLE exynos: Enable PSHOLD in SPL exynos: dts: Enable LCD for snow exynos: Enable the LCD backlight for snow initcall: Improve debugging support Sourav Poddar (2): am43xx_evm: Add qspiboot target ti: qspi: populate slave device to set flash quad bit. Stephen Warren (1): ARM: tegra: enable USB device mode and UMS on some boards Tom Rini (6): arm:am33xx: Make dram_init call sdram_init() in some contexts arm:am33xx: Rework s_init and add board_early_init_f am43xx: Only read the MPU frequency bits of CTRL_DEV_ATTR arm:am33xx: Add a scale_vcores() hook power: Add support for the TPS65218 PMIC arm:am43xx: Add TPS65218 support to scale voltages up Tom Wai-Hong Tam (1): power: Add support for TPS65090 PMU chip. WingMan Kwok (1): keystone: k2hk: enable support of nand ecclayout command pekon gupta (12): mtd: nand: omap_elm: remove #include omap_gpmc.h mtd: nand: omap_elm: use bch_type instead of nibble count to differentiate between BCH4/BCH8/BCH16 mtd: nand: omap_elm: use macros for register definitions mtd: nand: omap_gpmc: remove unused members of 'struct nand_bch_priv' mtd: nand: omap_gpmc: rename struct nand_bch_priv to struct omap_nand_info mtd: nand: omap_gpmc: minor cleanup of omap_correct_data_bch mtd: nand: omap: fix error-codes returned from omap-elm driver mtd: nand: omap: add CONFIG_SYS_NAND_BUSWIDTH_16BIT to indicate NAND device bus-width omap3: remove remnant macros GPMC_NAND_ECC_LP_x8_LAYOUT and GPMC_NAND_ECC_LP_x16_LAYOUT mtd: nand: omap_gpmc: use macro for register definitions mtd: nand: omap: add support for BCH16_ECC - NAND driver updates am335x: update README for BCH16 arch/arm/cpu/armv7/am33xx/board.c | 20 +- arch/arm/cpu/armv7/am33xx/clock.c | 11 + arch/arm/cpu/armv7/am33xx/clock_am43xx.c | 9 + arch/arm/cpu/armv7/am33xx/emif4.c
Re: [U-Boot] [PATCH v4 00/10] ARMv7: add PSCI support to U-Boot
On Sun, 25 May 2014 16:08:44 +0200, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi Marc, On Sat, 26 Apr 2014 13:17:01 +0100, Marc Zyngier marc.zyng...@arm.com wrote: PSCI is an ARM standard that provides a generic interface that supervisory software can use to manage power in the following situations: - Core idle management - CPU hotplug - big.LITTLE migration models - System shutdown and reset Do the discussions on 06/10 and 10/10 mean there will be a v5 of this series, or can/should I apply v4 as-is (and expect later changes in the form of later patches) ? Ping. Amicalement, -- Albert. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] omap3: overo: Select fdtfile for expansion board
Am 07.06.2014 22:11, schrieb Ash Charles: On Sat, Jun 7, 2014 at 10:48 AM, Tom Rini tr...@ti.com wrote: In this case it might be harder to do this in a shell cmd. But we _must_ check for fdtfile being unset and only setenv if not already set. And then drop fdtfile from the config file. Thanks both for your comments and suggestions. I agree that fdtfile should only be set if it is currently unset---I'll send an updated patch. It would be nice if you only set an environment variable 'expansionname' and setup the fdtfile via a command in the environment. This makes sure, that under normal condition the fdtfile is not set and thereby not saved in the environment with the command saveenv. There is actually already a mechanism for environment variables to be set by the board eeprom [1][2] so an expansion board could certainly set the desired fdtfile name. At the moment I use this functionality to set the environment variable 'fdtfile'. The challenge (and my biggest motivation for writing the patch) is making sure we select a dtb for either 37xx (Overo Storm) or 35xx (non-storm) as otherwise Linux doesn't boot. Maybe you could set an environment variable 'boardname' to 'overo' or 'overo-storm' and use something like the following environment command: if test -n \${boardname}\ test -n \${expansionname}\; then setenv fdtfile omap3-${boardname}-${expansionname}.dtb; fi; This allows the expansion board to set the expansionname via eeprom and works with both overo boards. --Ash [1] http://elinux.org/BeagleBoardPinMux#Expansion_boards [2] https://github.com/gumstix/meta-gumstix-extras/blob/dylan/recipes-core/i2c-tools/omap3-writeprom/writeprom.sh ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Patch to support dns-320 (variation of dns-325)
Hi bastien, On Sun, 18 May 2014 14:02:34 +, bastien ROUCARIES roucaries.bast...@gmail.com wrote: Hi, Dear Jamie, Dear Stephan, Dear u-boot mailling list, I have refreshed the patch queue to support dns320 to git master. Could you please apply upstream. I plan to add debian official support to dns-320. Dear stephan could you test the change on dns-325. Thank you very much Bastien PS: resend with correct encoding If this is to be applied to u-boot, then can you please post the patches as a proper series, generated using either patman or 'git send-email'? Thanks in advance. Amicalement, -- Albert. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [RESEND PATCH 1/3] Check run_command() return code properly
On 05.06.2014 20:07, Thomas Betker wrote: run_command() returns 0 for success, 1 for failure. Fix places which assume that failure is indicated by a negative return code. Signed-off-by: Thomas Betker thomas.bet...@rohde-schwarz.com Thanks for fixing this! Tested-by: Stefan Roese s...@denx.de Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 5/6] sunxi: use setbits_le32 to enable the DMA clock
On 06/05/2014 08:00 PM, Ian Campbell wrote: Signed-off-by: Ian Campbell i...@hellion.org.uk --- v2: Split out from ahci: provide sunxi SATA driver using AHCI platform framework Looks good: Acked-by: Hans de Goede hdego...@redhat.com Regards, Hans --- arch/arm/cpu/armv7/sunxi/clock_sun4i.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/sunxi/clock_sun4i.c b/arch/arm/cpu/armv7/sunxi/clock_sun4i.c index 5a7da3c..b8b16cf 100644 --- a/arch/arm/cpu/armv7/sunxi/clock_sun4i.c +++ b/arch/arm/cpu/armv7/sunxi/clock_sun4i.c @@ -36,8 +36,7 @@ void clock_init_safe(void) CPU_CLK_SRC_PLL1 CPU_CLK_SRC_SHIFT, ccm-cpu_ahb_apb0_cfg); #ifdef CONFIG_SUN7I - writel(0x1 AHB_GATE_OFFSET_DMA | readl(ccm-ahb_gate0), -ccm-ahb_gate0); + setbits_le32(ccm-ahb_gate0, 0x1 AHB_GATE_OFFSET_DMA); #endif writel(PLL6_CFG_DEFAULT, ccm-pll6_cfg); } ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 4/6] sunxi: add gpio driver
Hi, On 06/05/2014 08:00 PM, Ian Campbell wrote: This patch enables CONFIG_CMD_GPIO for the Allwinner (sunxi) platform as well as providing the common gpio API (gpio_request/free, direction in/out, get/set etc). Signed-off-by: Chen-Yu Tsai w...@csie.org Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Ma Haijun mahaij...@gmail.com Signed-off-by: Oliver Schinagl oli...@schinagl.nl Signed-off-by: Ian Campbell i...@hellion.org.uk Cc: Henrik Nordström hen...@henriknordstrom.net Cc: Tom Cubie mr.hip...@gmail.com --- arch/arm/include/asm/arch-sunxi/gpio.h | 2 + drivers/gpio/Makefile | 1 + drivers/gpio/sunxi_gpio.c | 102 + include/configs/sunxi-common.h | 4 ++ 4 files changed, 109 insertions(+) create mode 100644 drivers/gpio/sunxi_gpio.c Looks good: Acked-by: Hans de Goede hdego...@redhat.com Regards, Hans diff --git a/arch/arm/include/asm/arch-sunxi/gpio.h b/arch/arm/include/asm/arch-sunxi/gpio.h index 892479c..f7f3d8c 100644 --- a/arch/arm/include/asm/arch-sunxi/gpio.h +++ b/arch/arm/include/asm/arch-sunxi/gpio.h @@ -143,5 +143,7 @@ int sunxi_gpio_set_cfgpin(u32 pin, u32 val); int sunxi_gpio_get_cfgpin(u32 pin); int sunxi_gpio_set_drv(u32 pin, u32 val); int sunxi_gpio_set_pull(u32 pin, u32 val); +int sunxi_name_to_gpio(const char *name); +#define name_to_gpio(name) sunxi_name_to_gpio(name) #endif /* _SUNXI_GPIO_H */ diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 4e001e1..86813b9 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile @@ -34,3 +34,4 @@ obj-$(CONFIG_XILINX_GPIO) += xilinx_gpio.o obj-$(CONFIG_ADI_GPIO2) += adi_gpio2.o obj-$(CONFIG_TCA642X)+= tca642x.o oby-$(CONFIG_SX151X) += sx151x.o +obj-$(CONFIG_SUNXI_GPIO) += sunxi_gpio.o diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c new file mode 100644 index 000..0c50a8f --- /dev/null +++ b/drivers/gpio/sunxi_gpio.c @@ -0,0 +1,102 @@ +/* + * (C) Copyright 2012 Henrik Nordstrom hen...@henriknordstrom.net + * + * Based on earlier arch/arm/cpu/armv7/sunxi/gpio.c: + * + * (C) Copyright 2007-2011 + * Allwinner Technology Co., Ltd. www.allwinnertech.com + * Tom Cubie tangli...@allwinnertech.com + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include common.h +#include asm/io.h +#include asm/gpio.h + +static int sunxi_gpio_output(u32 pin, u32 val) +{ + u32 dat; + u32 bank = GPIO_BANK(pin); + u32 num = GPIO_NUM(pin); + struct sunxi_gpio *pio = BANK_TO_GPIO(bank); + + dat = readl(pio-dat); + if (val) + dat |= 0x1 num; + else + dat = ~(0x1 num); + + writel(dat, pio-dat); + + return 0; +} + +static int sunxi_gpio_input(u32 pin) +{ + u32 dat; + u32 bank = GPIO_BANK(pin); + u32 num = GPIO_NUM(pin); + struct sunxi_gpio *pio = BANK_TO_GPIO(bank); + + dat = readl(pio-dat); + dat = num; + + return dat 0x1; +} + +int gpio_request(unsigned gpio, const char *label) +{ + return 0; +} + +int gpio_free(unsigned gpio) +{ + return 0; +} + +int gpio_direction_input(unsigned gpio) +{ + sunxi_gpio_set_cfgpin(gpio, SUNXI_GPIO_INPUT); + + return sunxi_gpio_input(gpio); +} + +int gpio_direction_output(unsigned gpio, int value) +{ + sunxi_gpio_set_cfgpin(gpio, SUNXI_GPIO_OUTPUT); + + return sunxi_gpio_output(gpio, value); +} + +int gpio_get_value(unsigned gpio) +{ + return sunxi_gpio_input(gpio); +} + +int gpio_set_value(unsigned gpio, int value) +{ + return sunxi_gpio_output(gpio, value); +} + +int sunxi_name_to_gpio(const char *name) +{ + int group = 0; + int groupsize = 9 * 32; + long pin; + char *eptr; + if (*name == 'P' || *name == 'p') + name++; + if (*name = 'A') { + group = *name - (*name 'a' ? 'a' : 'A'); + groupsize = 32; + name++; + } + + pin = simple_strtol(name, eptr, 10); + if (!*name || *eptr) + return -1; + if (pin 0 || pin groupsize || group = 9) + return -1; + return group * 32 + pin; +} diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index a9d104a..ebb9f7a 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -179,6 +179,10 @@ #define CONFIG_CONS_INDEX 1 /* UART0 */ #endif +/* GPIO */ +#define CONFIG_SUNXI_GPIO +#define CONFIG_CMD_GPIO + /* Ethernet support */ #ifdef CONFIG_SUNXI_EMAC #define CONFIG_MII /* MII PHY management */ ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH 3/4] kirkwood: Set unused SD pins back to GPIO for DNS-320 DNS-325
From: Jamie Lentin j...@lentin.co.uk Neither device makes any use of the SD reader functionalty, so as suggested by Stefan Herbrechtsmeier, set the pins to GPIO instead to make this more obvious. Label MPP10 MPP11's use whilst here. Signed-off-by: Jamie Lentin j...@lentin.co.uk Cc: prafu...@marvell.com Cc: albert.u.b...@aribaud.net Cc: ste...@herbrechtsmeier.net --- board/d-link/dnskw/dnskw.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/board/d-link/dnskw/dnskw.c b/board/d-link/dnskw/dnskw.c index a9fa9a2..90cb92e 100644 --- a/board/d-link/dnskw/dnskw.c +++ b/board/d-link/dnskw/dnskw.c @@ -39,14 +39,14 @@ int board_early_init_f(void) MPP7_GPO, MPP8_TW_SDA, MPP9_TW_SCK, - MPP10_UART0_TXD, - MPP11_UART0_RXD, - MPP12_SD_CLK, + MPP10_UART0_TXD,/* 5 pin ...*/ + MPP11_UART0_RXD,/* ... console header */ + MPP12_GPO, MPP13_UART1_TXD,/* Custom ...*/ MPP14_UART1_RXD,/* ... controller */ - MPP15_SD_D1, - MPP16_SD_D2, - MPP17_SD_D3, + MPP15_GPIO, + MPP16_GPIO, + MPP17_GPIO, MPP18_NF_IO0, MPP19_NF_IO1, MPP20_SATA1_ACTn, /* sata1(left) status led */ -- 2.0.0.rc2 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH 2/4] kirkwood: Add support for the D-Link DNS-320
From: Jamie Lentin j...@lentin.co.uk Extend dnskw to support the D-Link DNS-320 ShareCenter NAS also. For more information on this NAS, see:- http://jamie.lentin.co.uk/devices/dlink-dns320 http://dns323.kood.org/dns-320 http://sharecenter.dlink.com/products/DNS-320 Changes since V1: * Shorten CONFIG_IDENT_STRING [Prafulla Wadaskar] Changes since V2: * Correct a mismerge conflict Signed-off-by: Jamie Lentin j...@lentin.co.uk Cc: prafu...@marvell.com Cc: albert.u.b...@aribaud.net Cc: ste...@herbrechtsmeier.net --- board/d-link/dnskw/dnskw.c | 8 +- board/d-link/dnskw/dnskw.h | 6 + board/d-link/dnskw/kwbimage.dns320.cfg | 207 + boards.cfg | 1 + include/configs/dnskw.h| 10 ++ 5 files changed, 228 insertions(+), 4 deletions(-) create mode 100644 board/d-link/dnskw/kwbimage.dns320.cfg diff --git a/board/d-link/dnskw/dnskw.c b/board/d-link/dnskw/dnskw.c index 22b0ffb..a9fa9a2 100644 --- a/board/d-link/dnskw/dnskw.c +++ b/board/d-link/dnskw/dnskw.c @@ -42,8 +42,8 @@ int board_early_init_f(void) MPP10_UART0_TXD, MPP11_UART0_RXD, MPP12_SD_CLK, - MPP13_SD_CMD, - MPP14_SD_D0, + MPP13_UART1_TXD,/* Custom ...*/ + MPP14_UART1_RXD,/* ... controller */ MPP15_SD_D1, MPP16_SD_D2, MPP17_SD_D3, @@ -58,13 +58,13 @@ int board_early_init_f(void) MPP26_GPIO, /* power led */ MPP27_GPIO, /* sata0(right) error led */ MPP28_GPIO, /* sata1(left) error led */ - MPP29_GPIO, /* usb error led */ + MPP29_GPIO, /* usb error led (dns-325) */ MPP30_GPIO, MPP31_GPIO, MPP32_GPIO, MPP33_GPIO, MPP34_GPIO, /* power key */ - MPP35_GPIO, + MPP35_GPIO, /* usb error led (dns-320) */ MPP36_GPIO, MPP37_GPIO, MPP38_GPIO, diff --git a/board/d-link/dnskw/dnskw.h b/board/d-link/dnskw/dnskw.h index 8d2e2b1..f87f02c 100644 --- a/board/d-link/dnskw/dnskw.h +++ b/board/d-link/dnskw/dnskw.h @@ -27,6 +27,12 @@ #define DNSKW_OE_VAL_HIGH 0x0800 /* disable leds */ #endif /* CONFIG_BOARD_IS_DNS325 */ +/* DNS-320 specific configuration */ +#ifdef CONFIG_BOARD_IS_DNS320 +#define DNSKW_OE_VAL_LOW 0x3800 /* disable leds */ +#define DNSKW_OE_VAL_HIGH 0x0808 /* disable leds */ +#endif /* CONFIG_BOARD_IS_DNS320 */ + /* PHY related */ #define MV88E1116_MAC_CTRL_REG 21 #define MV88E1116_PGADR_REG22 diff --git a/board/d-link/dnskw/kwbimage.dns320.cfg b/board/d-link/dnskw/kwbimage.dns320.cfg new file mode 100644 index 000..b515bf2 --- /dev/null +++ b/board/d-link/dnskw/kwbimage.dns320.cfg @@ -0,0 +1,207 @@ +# +# Copyright (C) 2012 +# Jamie Lentin j...@lentin.co.uk +# +# Based on dns325 support: +# Copyright (C) 2011 +# Stefan Herbrechtsmeier ste...@code.herbrechtsmeier.net +# +# 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., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301 USA +# +# Refer docs/README.kwimage for more details about how-to configure +# and create kirkwood boot image +# + +# Boot Media configurations +BOOT_FROM nand +NAND_ECC_MODE default +NAND_PAGE_SIZE 0x0800 + +# SOC registers configuration using bootrom header extension +# Maximum KWBIMAGE_MAX_CONFIG configurations allowed + +# Configure RGMII-0 interface pad voltage to 1.8V +DATA 0xFFD100e0 0x1b1b1b9b + +#Dram initalization for SINGLE x16 CL=3 @ 200MHz +DATA 0xFFD01400 0x43000618 # DDR Configuration register +# bit13-0: 0x618 DDR2 clks refresh rate +# bit23-14: 0 required +# bit24:1, enable exit self refresh mode on DDR access +# bit25:1 required +# bit29-26: 0 required +# bit31-30: 0b01 required + +DATA 0xFFD01404 0x35143000 # DDR Controller Control Low +# bit3-0: 0 required +# bit4: 0, addr/cmd in smame cycle +# bit5: 0, clk is driven during self refresh, we don't care for APX +# bit6: 0, use
[U-Boot] [PATCH 4/4] kirkwood: Shorten DNS-325 IDENT_STRING to match DNS-320
From: Jamie Lentin j...@lentin.co.uk You should already know you're using a D-link device. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- include/configs/dnskw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/dnskw.h b/include/configs/dnskw.h index e55fdc4..7058873 100644 --- a/include/configs/dnskw.h +++ b/include/configs/dnskw.h @@ -19,7 +19,7 @@ #ifdef CONFIG_BOARD_IS_DNS325 #define MACH_TYPE_DNS325 3800 #define CONFIG_MACH_TYPE MACH_TYPE_DNS325 -#define CONFIG_IDENT_STRING\nD-Link DNS-325 +#define CONFIG_IDENT_STRING\nDNS-325 #define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage.dns325.cfg -- 2.0.0.rc2 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH 1/4] kirkwood: Rename dns325 to dnskw
From: Jamie Lentin j...@lentin.co.uk So we can re-use DNS-325 configuration for the DNS-320 without things getting confusing, rename all common parts from dns325 to dnskw, and use a config option to configure DNS-325 specifics. Signed-off-by: Jamie Lentin j...@lentin.co.uk Cc: prafu...@marvell.com Cc: albert.u.b...@aribaud.net --- board/d-link/dns325/Makefile | 13 --- board/d-link/dns325/dns325.c | 132 --- board/d-link/dns325/dns325.h | 32 -- board/d-link/dns325/kwbimage.cfg | 192 - board/d-link/dnskw/Makefile| 13 +++ board/d-link/dnskw/dnskw.c | 132 +++ board/d-link/dnskw/dnskw.h | 36 +++ board/d-link/dnskw/kwbimage.dns325.cfg | 192 + boards.cfg | 2 +- include/configs/dns325.h | 170 - include/configs/dnskw.h| 175 ++ 11 files changed, 549 insertions(+), 540 deletions(-) delete mode 100644 board/d-link/dns325/Makefile delete mode 100644 board/d-link/dns325/dns325.c delete mode 100644 board/d-link/dns325/dns325.h delete mode 100644 board/d-link/dns325/kwbimage.cfg create mode 100644 board/d-link/dnskw/Makefile create mode 100644 board/d-link/dnskw/dnskw.c create mode 100644 board/d-link/dnskw/dnskw.h create mode 100644 board/d-link/dnskw/kwbimage.dns325.cfg delete mode 100644 include/configs/dns325.h create mode 100644 include/configs/dnskw.h diff --git a/board/d-link/dns325/Makefile b/board/d-link/dns325/Makefile deleted file mode 100644 index b8a5ea1..000 --- a/board/d-link/dns325/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# -# Copyright (C) 2011 -# Stefan Herbrechtsmeier ste...@code.herbrechtsmeier.net -# -# Based on Kirkwood support: -# (C) Copyright 2009 -# Marvell Semiconductor www.marvell.com -# Written-by: Prafulla Wadaskar prafu...@marvell.com -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y := dns325.o diff --git a/board/d-link/dns325/dns325.c b/board/d-link/dns325/dns325.c deleted file mode 100644 index ff70e94..000 --- a/board/d-link/dns325/dns325.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2011 - * Stefan Herbrechtsmeier ste...@code.herbrechtsmeier.net - * - * Based on Kirkwood support: - * (C) Copyright 2009 - * Marvell Semiconductor www.marvell.com - * Written-by: Prafulla Wadaskar prafu...@marvell.com - * - * SPDX-License-Identifier:GPL-2.0+ - */ - -#include common.h -#include miiphy.h -#include netdev.h -#include asm/arch/cpu.h -#include asm/arch/kirkwood.h -#include asm/arch/mpp.h -#include asm/arch/gpio.h -#include dns325.h - -DECLARE_GLOBAL_DATA_PTR; - -int board_early_init_f(void) -{ - /* Gpio configuration */ - kw_config_gpio(DNS325_OE_VAL_LOW, DNS325_OE_VAL_HIGH, - DNS325_OE_LOW, DNS325_OE_HIGH); - - /* Multi-Purpose Pins Functionality configuration */ - static const u32 kwmpp_config[] = { - MPP0_NF_IO2, - MPP1_NF_IO3, - MPP2_NF_IO4, - MPP3_NF_IO5, - MPP4_NF_IO6, - MPP5_NF_IO7, - MPP6_SYSRST_OUTn, - MPP7_GPO, - MPP8_TW_SDA, - MPP9_TW_SCK, - MPP10_UART0_TXD, - MPP11_UART0_RXD, - MPP12_SD_CLK, - MPP13_SD_CMD, - MPP14_SD_D0, - MPP15_SD_D1, - MPP16_SD_D2, - MPP17_SD_D3, - MPP18_NF_IO0, - MPP19_NF_IO1, - MPP20_SATA1_ACTn, /* sata1(left) status led */ - MPP21_SATA0_ACTn, /* sata0(right) status led */ - MPP22_GPIO, - MPP23_GPIO, - MPP24_GPIO, /* power off out */ - MPP25_GPIO, - MPP26_GPIO, /* power led */ - MPP27_GPIO, /* sata0(right) error led */ - MPP28_GPIO, /* sata1(left) error led */ - MPP29_GPIO, /* usb error led */ - MPP30_GPIO, - MPP31_GPIO, - MPP32_GPIO, - MPP33_GPIO, - MPP34_GPIO, /* power key */ - MPP35_GPIO, - MPP36_GPIO, - MPP37_GPIO, - MPP38_GPIO, - MPP39_GPIO, /* enable sata 0 */ - MPP40_GPIO, /* enable sata 1 */ - MPP41_GPIO, /* hdd0 present */ - MPP42_GPIO, /* hdd1 present */ - MPP43_GPIO, /* usb status led */ - MPP44_GPIO, /* fan status */ - MPP45_GPIO, /* fan high speed */ - MPP46_GPIO, /* fan low speed */ - MPP47_GPIO, /* usb
Re: [U-Boot] Patch to support dns-320 (variation of dns-325)
On Sun, Jun 8, 2014 at 10:04 AM, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi bastien, On Sun, 18 May 2014 14:02:34 +, bastien ROUCARIES roucaries.bast...@gmail.com wrote: Hi, Dear Jamie, Dear Stephan, Dear u-boot mailling list, I have refreshed the patch queue to support dns320 to git master. Could you please apply upstream. I plan to add debian official support to dns-320. Dear stephan could you test the change on dns-325. Thank you very much Bastien PS: resend with correct encoding If this is to be applied to u-boot, then can you please post the patches as a proper series, generated using either patman or 'git send-email'? Thanks in advance. Likely Done Rebased from current master. Bastien Amicalement, -- Albert. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH v2 02/04] spi, spi_mxc: do not hang in spi_xchg_single
On Mon, Jun 2, 2014 at 11:06 AM, Heiko Schocher h...@denx.de wrote: if status register do never set MXC_CSPICTRL_TC, spi_xchg_single endless loops. Add a timeout here to prevent endless hang. Signed-off-by: Heiko Schocher h...@denx.de Cc: Dirk Behme dirk.be...@gmail.com Cc: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com --- - changes for v2: - use timer api to poll till TC bit is set as Jagan Teki suggested and make this timeout configurable through CONFIG_SYS_SPI_MXC_WAIT --- README| 4 drivers/spi/mxc_spi.c | 18 -- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README b/README index a280435..ff8928b 100644 --- a/README +++ b/README @@ -2564,6 +2564,10 @@ CBFS (Coreboot Filesystem) support Enables the driver for the SPI controllers on i.MX and MXC SoCs. Currently i.MX31/35/51 are supported. + CONFIG_SYS_SPI_MXC_WAIT + Timeout for waiting until spi transfer completed. + default: (CONFIG_SYS_HZ/100) /* 10 ms */ + - FPGA Support: CONFIG_FPGA Enables FPGA subsystem. diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index f3f029d..4732850 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -30,6 +30,10 @@ static unsigned long spi_bases[] = { #define reg_read readl #define reg_write(a, v) writel(v, a) +#if !defined(CONFIG_SYS_SPI_MXC_WAIT) +#define CONFIG_SYS_SPI_MXC_WAIT(CONFIG_SYS_HZ/100) /* 10 ms */ +#endif + struct mxc_spi_slave { struct spi_slave slave; unsigned long base; @@ -212,6 +216,8 @@ int spi_xchg_single(struct spi_slave *slave, unsigned int bitlen, int nbytes = DIV_ROUND_UP(bitlen, 8); u32 data, cnt, i; struct cspi_regs *regs = (struct cspi_regs *)mxcs-base; + u32 ts; + int status; debug(%s: bitlen %d dout 0x%x din 0x%x\n, __func__, bitlen, (u32)dout, (u32)din); @@ -272,9 +278,17 @@ int spi_xchg_single(struct spi_slave *slave, unsigned int bitlen, reg_write(regs-ctrl, mxcs-ctrl_reg | MXC_CSPICTRL_EN | MXC_CSPICTRL_XCH); + ts = get_timer(0); + status = reg_read(regs-stat); /* Wait until the TC (Transfer completed) bit is set */ - while ((reg_read(regs-stat) MXC_CSPICTRL_TC) == 0) - ; + while ((status MXC_CSPICTRL_TC) == 0) { + if (get_timer(ts) CONFIG_SYS_SPI_MXC_WAIT) { + printf(spi_xchg_single: Timeout!\n); + return -1; + } + udelay(10); + status = reg_read(regs-stat); + } /* Transfer completed, clear any pending request */ reg_write(regs-stat, MXC_CSPICTRL_TC | MXC_CSPICTRL_RXOVF); -- 1.8.3.1 Reviewed-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com -- Jagan. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH v2 02/04] spi, spi_mxc: do not hang in spi_xchg_single
On Sun, Jun 8, 2014 at 11:03 PM, Jagan Teki jagannadh.t...@gmail.com wrote: On Mon, Jun 2, 2014 at 11:06 AM, Heiko Schocher h...@denx.de wrote: if status register do never set MXC_CSPICTRL_TC, spi_xchg_single endless loops. Add a timeout here to prevent endless hang. Signed-off-by: Heiko Schocher h...@denx.de Cc: Dirk Behme dirk.be...@gmail.com Cc: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com --- - changes for v2: - use timer api to poll till TC bit is set as Jagan Teki suggested and make this timeout configurable through CONFIG_SYS_SPI_MXC_WAIT --- README| 4 drivers/spi/mxc_spi.c | 18 -- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README b/README index a280435..ff8928b 100644 --- a/README +++ b/README @@ -2564,6 +2564,10 @@ CBFS (Coreboot Filesystem) support Enables the driver for the SPI controllers on i.MX and MXC SoCs. Currently i.MX31/35/51 are supported. + CONFIG_SYS_SPI_MXC_WAIT + Timeout for waiting until spi transfer completed. + default: (CONFIG_SYS_HZ/100) /* 10 ms */ + - FPGA Support: CONFIG_FPGA Enables FPGA subsystem. diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index f3f029d..4732850 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -30,6 +30,10 @@ static unsigned long spi_bases[] = { #define reg_read readl #define reg_write(a, v) writel(v, a) +#if !defined(CONFIG_SYS_SPI_MXC_WAIT) +#define CONFIG_SYS_SPI_MXC_WAIT(CONFIG_SYS_HZ/100) /* 10 ms */ +#endif + struct mxc_spi_slave { struct spi_slave slave; unsigned long base; @@ -212,6 +216,8 @@ int spi_xchg_single(struct spi_slave *slave, unsigned int bitlen, int nbytes = DIV_ROUND_UP(bitlen, 8); u32 data, cnt, i; struct cspi_regs *regs = (struct cspi_regs *)mxcs-base; + u32 ts; + int status; debug(%s: bitlen %d dout 0x%x din 0x%x\n, __func__, bitlen, (u32)dout, (u32)din); @@ -272,9 +278,17 @@ int spi_xchg_single(struct spi_slave *slave, unsigned int bitlen, reg_write(regs-ctrl, mxcs-ctrl_reg | MXC_CSPICTRL_EN | MXC_CSPICTRL_XCH); + ts = get_timer(0); + status = reg_read(regs-stat); /* Wait until the TC (Transfer completed) bit is set */ - while ((reg_read(regs-stat) MXC_CSPICTRL_TC) == 0) - ; + while ((status MXC_CSPICTRL_TC) == 0) { + if (get_timer(ts) CONFIG_SYS_SPI_MXC_WAIT) { + printf(spi_xchg_single: Timeout!\n); + return -1; + } + udelay(10); + status = reg_read(regs-stat); + } /* Transfer completed, clear any pending request */ reg_write(regs-stat, MXC_CSPICTRL_TC | MXC_CSPICTRL_RXOVF); -- 1.8.3.1 Reviewed-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com Tom, I guess this will goes along with the series, if not I will pick. Let me know for any. thanks! -- Jagan. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Pull request: u-boot-spi/master
Hi Tom, Please take this PR. thanks! Jagan. The following changes since commit 3e1fa221f94b7ae3389d166882b77f1da5895f22: Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx (2014-06-05 17:38:30 -0400) are available in the git repository at: git://git.denx.de/u-boot-spi.git master for you to fetch changes up to 1f436a6ddf7eb7f2da1c8df6c13100429baf844a: sf: probe: Fix quad bit set path (2014-06-08 23:12:27 +0530) Andrew Ruder (1): spi: soft_spi: Support NULL din/dout buffers Poddar, Sourav (1): sf: probe: Fix quad bit set path Siva Durga Prasad Paladugu (1): sf: params: Added support for Spansion S25FL512S_512K drivers/mtd/spi/sf_params.c | 1 + drivers/mtd/spi/sf_probe.c | 20 ++-- drivers/spi/soft_spi.c | 18 -- 3 files changed, 23 insertions(+), 16 deletions(-) ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH/RFC] Reintegration of ns9750
Hi Marek, On Sat, 22 Mar 2014 19:27:48 +0100, Marek Vasut ma...@denx.de wrote: On Saturday, March 22, 2014 at 11:18:05 AM, Rikard Söderström wrote: Hi Marex, Are you referring to the code or the linkage issue as nasty? Actually, both. But more the linker issue this time ;-) Ok, here is my take on the issue(s), based on the build messages. First the compiler warnings: /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/ns9750dev.c: In function 'board_init': /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/ns9750dev.c:68:2: warning: #warning Please register your machine at http: [-Wcpp] Hmm, apparently U-Boot targets now have to register to 'teh Internetz'. That, or the warning above is being cut down because of the '//' in the URL, which cpp sees as a comment-to-end-of-line. :) /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/flash.c: In function 'flash_get_offsets': /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/flash.c:122:10: warning: variable 'pOrgDef' set but not used [-Wunused-but-set-variable] /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/flash.c: In function 'flash_erase': /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/flash.c:263:6: warning: variable 'flag' set but not used [-Wunused-but-set-variable] /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/flash.c: In function 'write_data': /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/flash.c:439:6: warning: variable 'flag' set but not used [-Wunused-but-set-variable] Those are trivial to solve. :) /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/flash.c: In function 'flash_init': /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/flash.c:132:16: warning: array subscript is above array bounds [-Warray-bounds] /home/albert.u.boot/src/u-boot-arm/board/ns9750dev/flash.c:133:18: warning: array subscript is above array bounds [-Warray-bounds] Those, please investigate. I hate it when the compiler says indexes might be out of bounds, because it will invariably result in them *actually* getting out of bounds, in a manner which will make it really hard to realize they did. /home/albert.u.boot/src/u-boot-arm/lib/time.c:14:2: warning: #warning CONFIG_SYS_HZ must be 1000 and should not be defined by platforms [-Wcpp] This one we have treated before. arm-linux-gnueabi-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696 arm-linux-gnueabi-ld.bfd: error: required section '.rel.plt' not found in the linker script arm-linux-gnueabi-ld.bfd: final link failed: Invalid operation I've tried adding .rel.plt manually, but I got the same error. O_o Then instead of using MAKEALL, I tried make clean make ns9750dev_config make V=1... And got linker errors that I didn't get with MAKEALL: arch/arm/lib/built-in.o: In function `board_init_r': /home/albert.u.boot/src/u-boot-arm/arch/arm/lib/board.c:662: undefined reference to `eth_initialize' arch/arm/lib/built-in.o:(.data.init_sequence+0xc): undefined reference to `env_init' common/built-in.o: In function `env_relocate': /home/albert.u.boot/src/u-boot-arm/common/env_common.c:269: undefined reference to `env_relocate_spec' drivers/serial/built-in.o: In function `get_current': /home/albert.u.boot/src/u-boot-arm/drivers/serial/serial.c:352: undefined reference to `default_serial_console' drivers/serial/built-in.o: In function `serial_initialize': /home/albert.u.boot/src/u-boot-arm/drivers/serial/serial.c:256: undefined reference to `default_serial_console' arm-linux-gnueabi-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696 arm-linux-gnueabi-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696 arm-linux-gnueabi-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696 arm-linux-gnueabi-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696 arm-linux-gnueabi-ld.bfd: error: required section '.rel.plt' not found in the linker script arm-linux-gnueabi-ld.bfd: final link failed: Invalid operation So I wonder whether the linker error shown by MAKEALL is a rightful error or just the result of previous linker issues. I would suggest going after the undefined references then check again whether the message about .rel.plt still comes up. Also: I wonder why building with make shows errors that MAKEALL doesn't. make[1]: *** [u-boot] Error 1 make: *** [sub-make] Error 2 Best regards, Marek Vasut Amicalement, -- Albert. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 1/3] net: sh-eth: Add support R7S72100 of rmobile
Hi, Tom. 2014-06-06 22:37 GMT+09:00 Tom Rini tr...@ti.com: On Fri, Jun 06, 2014 at 11:44:20AM +0900, Nobuhiro Iwamatsu wrote: ping. 2014-01-23 7:52 GMT+09:00 Nobuhiro Iwamatsu nobuhiro.iwamatsu...@renesas.com: The R7S72100 of ARM SoC that Renesas manufactured has one Ether port. This has the same IP SH-Ether. This patch adds support of the R7S72100 in SH-Ether. Signed-off-by: Nobuhiro Iwamatsu nobuhiro.iwamatsu...@renesas.com I'm fine with this series coming via the sh tree. Thank you. I will work. BTW, Joe(net custodian) does not have time of maintain net tree? How do we patch for net from now ? Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH v4 11/15] dm: Fix printf() strings in the 'dm' command
On 7 June 2014 07:13, Simon Glass s...@chromium.org wrote: The values here are int, but the map_to_sysmem() call can return a long. Add a cast to deal with this. ... - printf(%s- %s @ %08x, buf, in-name, map_to_sysmem(in)); + printf(%s- %s @ %08x, buf, in-name, (uint)map_to_sysmem(in)); If the argument is a long, shouldn't it be printed as long, rather than possibly truncated to an int? printf(%s- %s @ %08lx, buf, in-name, map_to_sysmem(in)); Regards, Andre ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Pull request: u-boot-arm/master
On Sun, Jun 08, 2014 at 09:51:16AM +0200, Albert ARIBAUD wrote: Hi Tom, The following changes since commit 9637a1bb896efe392a58dd2772e2c3fcb646409d: ARM: at91sam9m10g45ek: add mmc environment configuration support (2014-05-27 00:10:55 +0200) are available in the git repository at: git://git.denx.de/u-boot-arm master for you to fetch changes up to 5ed28948a3ffe6c735386e59c132989869beaa3e: Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' (2014-06-08 09:14:19 +0200) Aaron Durbin (3): exynos5: Enable tps65090 on exynos5-dt power: Explicitly select pmic device's bus exynos5: support tps65090 pmic Albert ARIBAUD (2): Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' Beomho Seo (3): arm: exynos: pinmux: add sdmmc4 gpio configratuion arm: exynos: clock: Remove exynos4x12_set_mmc_clk function board: trats2: Enable device tree on Trats2 Brian Norris (2): mtd: nand: don't use read_buf for 8-bit ONFI transfers mtd: nand: force NAND_CMD_READID onto 8-bit bus David Mosberger (1): mtd: nand: fix GET/SET_FEATURES address on 16-bit devices Doug Anderson (1): Exynos: Make sure ps_hold gets set in the SPL Hannes Petermaier (6): arch-am33xx: Add defines for timer0-7 board/BuR/common: introduce usage of CONFIG_SYS_GENERIC_BOARD board/BuR/tseries: Add support for using 8-bit on eMMC board/BuR/tseries: only run gpmc_init(...) in NAND-build board/BuR/common: Add CONFIG_CMD_I2C board/BuR/tseries: cosmetic changes Jaehoon Chung (12): ARM: exynos: board: change the mmc/sd init sequence ARM: exynos: clock: modify the set_mmc_clk for exynos4 ARM: dts: exynos: rename from EXYNOS5_DWMMC to EXYNOS_DWMMC mmc: exynos_dw_mmc: restore the property into host mmc: remove the unnecessary define and fix the wrong bit control mmc: support the DDR mode for eMMC mmc: dw_mmc: support the DDR mode ARM: dts: exnyos: enable dw-mmc controller mmc: exynos_dw_mmc: enable the DDR mode ARM: exynos4: enable the dwmmc configuration mmc: s5p_sdhci: add the s5p_sdhci_core_init function ARM: exynos5420: removed undefined gpio structure Jeroen Hofstee (1): tam3517: fix NAND detection Lokesh Vutla (2): ARM: AM43xx: Fix mmcboot command in EXTRA_ENV_SETTINGS ARM: AM43xx: Fix UART clocks enabling Mateusz Zalega (4): arm: goni: Update configuration for Goni target arm: goni: dfu: Add support for DFU to Goni target arm: goni: enable GPT command arm: goni: enable USB Mass Storage Murali Karicheri (1): keystone: init: enable UART1 to be able use it from kernel Piotr Wilczek (1): arm:board:exynos4: add CONFIG_SYS_GENERIC_BOARD Simon Glass (8): exynos: dts: Correct EC interrupt GPIO exynos: Drop old smdk5250.c file power: Rename CONFIG_PMIC_... to CONFIG_POWER_... power: Add PMIC_ prefix to CHARGER_EN/DISABLE exynos: Enable PSHOLD in SPL exynos: dts: Enable LCD for snow exynos: Enable the LCD backlight for snow initcall: Improve debugging support Sourav Poddar (2): am43xx_evm: Add qspiboot target ti: qspi: populate slave device to set flash quad bit. Stephen Warren (1): ARM: tegra: enable USB device mode and UMS on some boards Tom Rini (6): arm:am33xx: Make dram_init call sdram_init() in some contexts arm:am33xx: Rework s_init and add board_early_init_f am43xx: Only read the MPU frequency bits of CTRL_DEV_ATTR arm:am33xx: Add a scale_vcores() hook power: Add support for the TPS65218 PMIC arm:am43xx: Add TPS65218 support to scale voltages up Tom Wai-Hong Tam (1): power: Add support for TPS65090 PMU chip. WingMan Kwok (1): keystone: k2hk: enable support of nand ecclayout command pekon gupta (12): mtd: nand: omap_elm: remove #include omap_gpmc.h mtd: nand: omap_elm: use bch_type instead of nibble count to differentiate between BCH4/BCH8/BCH16 mtd: nand: omap_elm: use macros for register definitions mtd: nand: omap_gpmc: remove unused members of 'struct nand_bch_priv' mtd: nand: omap_gpmc: rename struct nand_bch_priv to struct omap_nand_info mtd: nand: omap_gpmc: minor cleanup of omap_correct_data_bch mtd: nand: omap: fix error-codes returned from omap-elm driver mtd: nand: omap: add CONFIG_SYS_NAND_BUSWIDTH_16BIT to indicate NAND device bus-width omap3: remove remnant macros GPMC_NAND_ECC_LP_x8_LAYOUT and GPMC_NAND_ECC_LP_x16_LAYOUT mtd: nand: omap_gpmc: use macro for register definitions mtd: nand: omap: add support for BCH16_ECC - NAND driver updates am335x: update README for BCH16