tegra2: Move MMC clock initialization into MMC driver
Subsystems (2)
PATCH v4 1/4 tegra2: Move MMC clock initialization into MMC driver
This centralizes knowledge of MMC clocking into the MMC driver. This also removes clock setup from the board files, which will simplify later changes that modify the Harmony board to support the correct set of MMC controllers.
--- board/nvidia/common/board.c | 13 +------------ drivers/mmc/tegra2_mmc.c | 12 +++++++++--- 2 files changed, 10 insertions(+), 15 deletions(-)
board/nvidia/common/board.c +1 -12
@@ -102,16 +102,6 @@ static void pin_mux_uart(void)#ifdef CONFIG_TEGRA2_MMC /* -* Routine: clock_init_mmc -* Description: init the PLL and clocks for the SDMMC controllers -*/ -static void clock_init_mmc (void ) -{ -clock_start_periph_pll (PERIPH_ID_SDMMC4 ,CLOCK_ID_PERIPH ,20000000 ); -clock_start_periph_pll (PERIPH_ID_SDMMC3 ,CLOCK_ID_PERIPH ,20000000 ); -} - -/* * Routine: pin_mux_mmc * Description: setup the pin muxes/tristate values for the SDMMC(s) */
@@ -157,8 +147,7 @@ int board_init(void)int board_mmc_init (bd_t *bd) {debug ("board_mmc_init called\n" ); -/* Enable clocks, muxes, etc. for SDMMC controllers */ -clock_init_mmc (); +/* Enable muxes, etc. for SDMMC controllers */ pin_mux_mmc ();gpio_config_mmc ();
drivers/mmc/tegra2_mmc.c +9 -3
@@ -435,14 +435,22 @@ static int mmc_core_init(struct mmc *mmc)static int tegra2_mmc_initialize (int dev_index,int bus_width) { +struct mmc_host *host;struct mmc *mmc;debug (" mmc_initialize called\n" ); + host = &mmc_host[dev_index]; + + host->clock =0 ; +tegra2_get_setup (host, dev_index); + +clock_start_periph_pll (host->mmc_id,CLOCK_ID_PERIPH ,20000000 ); + mmc = &mmc_dev[dev_index];sprintf (mmc->name,"Tegra2 SD/MMC" ); - mmc->priv = &mmc_host[dev_index]; + mmc->priv = host; mmc->send_cmd = mmc_send_cmd; mmc->set_ios = mmc_set_ios; mmc->init = mmc_core_init;
@@ -465,8 +473,6 @@ static int tegra2_mmc_initialize(int dev_index, int bus_width) mmc->f_min =375000 ; mmc->f_max =48000000 ; - mmc_host[dev_index].clock =0 ; -tegra2_get_setup (&mmc_host[dev_index], dev_index);mmc_register (mmc);return 0 ;
Signature · 1 line
1.7.0.4
PATCH v4 2/4 tegra2: Move board_mmc_init into board files
For Seaboard, this is mostly a cut/paste of board_mmc_init() and pin_mux_mmc() into seaboard.c; pin_mux_mmc() was modified to add some missing pinmux_tristate_disable calls for the GPIOs.
For Harmony, those functions were modified to configure SDMMC2 (index 2) instead of SDMMC3 (index 1), since that's what is present on the board.
However, harmony.c is still missing the required GPIO setup, so neither port is likely to function correctly yet. This will be fixed in the next change.
v4: Include board.h to prototype tegra2_mmc_init().
--- board/nvidia/common/board.c | 52 ----------------------------------- board/nvidia/harmony/harmony.c | 56 ++++++++++++++++++++++++++++++++++++++ board/nvidia/seaboard/seaboard.c | 53 +++++++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+), 52 deletions(-)
board/nvidia/common/board.c +0 -52
@@ -33,10 +33,6 @@#include <asm/arch/uart.h> #include "board.h" -#ifdef CONFIG_TEGRA2_MMC -#include <mmc.h> -#endif -DECLARE_GLOBAL_DATA_PTR ;const struct tegra2_sysinfo sysinfo = {
@@ -100,33 +96,6 @@ static void pin_mux_uart(void)#endif /* CONFIG_TEGRA2_ENABLE_UARTD */ } -#ifdef CONFIG_TEGRA2_MMC -/* -* Routine: pin_mux_mmc -* Description: setup the pin muxes/tristate values for the SDMMC(s) -*/ -static void pin_mux_mmc (void ) -{ -/* SDMMC4: config 3, x8 on 2nd set of pins */ -pinmux_set_func (PINGRP_ATB ,PMUX_FUNC_SDIO4 ); -pinmux_set_func (PINGRP_GMA ,PMUX_FUNC_SDIO4 ); -pinmux_set_func (PINGRP_GME ,PMUX_FUNC_SDIO4 ); - -pinmux_tristate_disable (PINGRP_ATB ); -pinmux_tristate_disable (PINGRP_GMA ); -pinmux_tristate_disable (PINGRP_GME ); - -/* SDMMC3: SDIO3_CLK, SDIO3_CMD, SDIO3_DAT[3:0] */ -pinmux_set_func (PINGRP_SDB ,PMUX_FUNC_SDIO3 ); -pinmux_set_func (PINGRP_SDC ,PMUX_FUNC_SDIO3 ); -pinmux_set_func (PINGRP_SDD ,PMUX_FUNC_SDIO3 ); - -pinmux_tristate_disable (PINGRP_SDC ); -pinmux_tristate_disable (PINGRP_SDD ); -pinmux_tristate_disable (PINGRP_SDB ); -} -#endif -/* * Routine: board_init * Description: Early hardware init.
@@ -142,27 +111,6 @@ int board_init(void)return 0 ; } -#ifdef CONFIG_TEGRA2_MMC -/* this is a weak define that we are overriding */ -int board_mmc_init (bd_t *bd) -{ -debug ("board_mmc_init called\n" ); -/* Enable muxes, etc. for SDMMC controllers */ -pin_mux_mmc (); -gpio_config_mmc (); - -debug ("board_mmc_init: init eMMC\n" ); -/* init dev 0, eMMC chip, with 4-bit bus */ -tegra2_mmc_init (0 ,4 ); - -debug ("board_mmc_init: init SD slot\n" ); -/* init dev 1, SD slot, with 4-bit bus */ -tegra2_mmc_init (1 ,4 ); - -return 0 ; -} -#endif -#ifdef CONFIG_BOARD_EARLY_INIT_F int board_early_init_f (void ) {
board/nvidia/harmony/harmony.c +56 -0
77 lines not on this page · raw message
board/nvidia/seaboard/seaboard.c +53 -0
75 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v4 3/4 tegra2: Modify MMC driver to handle power and cd GPIOs
In reply to Stephen WarrenPass the GPIO numbers for power and card detect to tegra2_mmc_init(), and modify that function to perform all required GPIO initialization. This removes the need for board files to perform these operations.
Move board_mmc_getcd() into tegra2_mmc.c now that the driver knows which GPIOs to use.
Update affected call-sites in seaboard.c and harmony.c. Note that this change should make all SD ports work on Harmony, since the required GPIO setup is now being performed.
v4: Fix prototype of tegra2_mmc_init() in board.h to match driver change.
Remove prototype of gpio_config_mmc() from board.h
--- board/nvidia/common/board.h | 3 +- board/nvidia/harmony/harmony.c | 27 ++--------------------- board/nvidia/seaboard/seaboard.c | 33 +---------------------------- drivers/mmc/tegra2_mmc.c | 42 ++++++++++++++++++++++++++++++++----- drivers/mmc/tegra2_mmc.h | 4 ++- 5 files changed, 45 insertions(+), 64 deletions(-)
board/nvidia/common/board.h +1 -2
@@ -26,7 +26,6 @@void tegra2_start (void );void gpio_config_uart (void ); -void gpio_config_mmc (void ); -int tegra2_mmc_init (int dev_index,int bus_width); +int tegra2_mmc_init (int dev_index,int bus_width,int pwr_gpio,int cd_gpio);#endif /* BOARD_H */
board/nvidia/harmony/harmony.c +3 -24
@@ -25,6 +25,7 @@#include <asm/io.h> #include <asm/arch/tegra2.h> #include <asm/arch/pinmux.h> +#include <asm/gpio.h> #ifdef CONFIG_TEGRA2_MMC #include <mmc.h> #endif
@@ -72,15 +73,6 @@ static void pin_mux_mmc(void)pinmux_tristate_disable (PINGRP_ATC ); } -/* -* Routine: gpio_config_mmc -* Description: Set GPIOs for SD card -*/ -void gpio_config_mmc (void ) -{ -/* Not implemented for now */ -} -/* this is a weak define that we are overriding */ int board_mmc_init (bd_t *bd) {
@@ -88,29 +80,16 @@ int board_mmc_init(bd_t *bd)/* Enable muxes, etc. for SDMMC controllers */ pin_mux_mmc (); -gpio_config_mmc ();debug ("board_mmc_init: init SD slot J26\n" );/* init dev 0, SD slot J26, with 4-bit bus */ /* The board has an 8-bit bus, but 8-bit doesn't work yet */ -tegra2_mmc_init (0 ,4 ); +tegra2_mmc_init (0 ,4 ,GPIO_PI6 ,GPIO_PH2 );debug ("board_mmc_init: init SD slot J5\n" );/* init dev 2, SD slot J5, with 4-bit bus */ -tegra2_mmc_init (2 ,4 ); +tegra2_mmc_init (2 ,4 ,GPIO_PT3 ,GPIO_PI5 ); return 0; } - -/* this is a weak define that we are overriding */ -int board_mmc_getcd (u8 *cd,struct mmc *mmc) -{ -debug ("board_mmc_getcd called\n" ); -/* -* Hard-code CD presence for now. Need to add GPIO inputs -* for Harmony -*/ - *cd =1 ; -return 0 ; -}#endif
board/nvidia/seaboard/seaboard.c +2 -31
@@ -87,19 +87,6 @@ static void pin_mux_mmc(void)pinmux_tristate_disable (PINGRP_ATC ); } -/* -* Routine: gpio_config_mmc -* Description: Set GPIOs for SDMMC3 SDIO slot. -*/ -void gpio_config_mmc (void ) -{ -/* Set EN_VDDIO_SD (GPIO I6) */ -gpio_direction_output (GPIO_PI6 ,1 ); - -/* Config pin as GPI for Card Detect (GPIO I5) */ -gpio_direction_input (GPIO_PI5 ); -} -/* this is a weak define that we are overriding */ int board_mmc_init (bd_t *bd) {
@@ -107,31 +94,15 @@ int board_mmc_init(bd_t *bd)/* Enable muxes, etc. for SDMMC controllers */ pin_mux_mmc (); -gpio_config_mmc ();debug ("board_mmc_init: init eMMC\n" );/* init dev 0, eMMC chip, with 4-bit bus */ /* The board has an 8-bit bus, but 8-bit doesn't work yet */ -tegra2_mmc_init (0 ,4 ); +tegra2_mmc_init (0 ,4 ,-1 ,-1 );debug ("board_mmc_init: init SD slot\n" );/* init dev 1, SD slot, with 4-bit bus */ -tegra2_mmc_init (1 ,4 ); - -return 0 ; -} - -/* this is a weak define that we are overriding */ -int board_mmc_getcd (u8 *cd,struct mmc *mmc) -{ -debug ("board_mmc_getcd called\n" ); - *cd =1 ;/* Assume card is inserted, or eMMC */ - -if (IS_SD (mmc)) { -/* Seaboard SDMMC3 = SDIO3_CD = GPIO_PI5 */ -if (gpio_get_value (GPIO_PI5 )) - *cd =0 ; - } +tegra2_mmc_init (1 ,4 ,GPIO_PI6 ,GPIO_PI5 );return 0 ; }
drivers/mmc/tegra2_mmc.c +36 -6
71 lines not on this page · raw message
drivers/mmc/tegra2_mmc.h +3 -1
@@ -74,9 +74,11 @@ struct mmc_host {unsigned int clock;/* Current clock (MHz) */ unsigned int base;/* Base address, SDMMC1/2/3/4 */ enum periph_id mmc_id;/* Peripheral ID: PERIPH_ID_... */ +int pwr_gpio;/* Power GPIO */ +int cd_gpio;/* Change Detect GPIO */ }; -int tegra2_mmc_init (int dev_index,int bus_width); +int tegra2_mmc_init (int dev_index,int bus_width,int pwr_gpio,int cd_gpio);#endif /* __ASSEMBLY__ */ #endif /* __TEGRA2_MMC_H_ */
Signature · 1 line
1.7.0.4
PATCH v4 3/4 tegra2: Modify MMC driver to handle power and cd GPIOs
Quoted 29 lines · Stephen Warren
Pass the GPIO numbers for power and card detect to
tegra2_mmc_init(), and modify that function to perform all required GPIO initialization. This removes the need for board files to perform these operations.Move
board_mmc_getcd()intotegra2_mmc.cnow that the driver knows which GPIOs to use.Update affected call-sites in
seaboard.candharmony.c. Note that this change should make all SD ports work on Harmony, since the required GPIO setup is now being performed.v4: Fix prototype of
tegra2_mmc_init()inboard.hto match driver change.
Remove prototype ofgpio_config_mmc()fromboard.hSigned-off-by Stephen Warren <[email protected]>Tested-by Simon Glass <[email protected]>--- board/nvidia/common/board.h | 3 +- board/nvidia/harmony/harmony.c | 27 ++--------------------- board/nvidia/seaboard/seaboard.c | 33 +---------------------------- drivers/mmc/tegra2_mmc.c | 42 ++++++++++++++++++++++++++++++++----- drivers/mmc/tegra2_mmc.h | 4 ++- 5 files changed, 45 insertions(+), 64 deletions(-)board/nvidia/common/board.h +0
-0
board/nvidia/common/board.h line 29
Quoted 6 lines
board/nvidia/common/board.h +1
-2@@ -26,7 +26,6 @@void tegra2_start (void );void gpio_config_uart (void ); -void gpio_config_mmc (void ); -int tegra2_mmc_init (int dev_index,int bus_width); +int tegra2_mmc_init (int dev_index,int bus_width,int pwr_gpio,int cd_gpio);
[...]
Can we move tegra2_start() and tegra2_mmc_init() into a common Tegra2 header instead of a board-specific one, please? Both functions are not implemented below board/nvidia/common, so there is no need to make their prototype only visible for board/nvidia. Otherwise other boards will have to duplicate this prototype and need to keep it in sync.
tegra2_start() can probably go into arch/arm/include/asm/arch-tegra2/tegra2.h and tegra2_mmc_init() could for example go into a new mmc.h in the same directory.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111116/8d7b5649/attachment.pgp
PATCH v4 3/4 tegra2: Modify MMC driver to handle power and cd GPIOs
Thierry Reding wrote at Wednesday, November 16, 2011 1:29 PM:
Quoted 11 lines · Stephen Warren
Quoted 10 lines
Pass the GPIO numbers for power and card detect to
tegra2_mmc_init(), and modify that function to perform all required GPIO initialization. This removes the need for board files to perform these operations.Move
board_mmc_getcd()intotegra2_mmc.cnow that the driver knows which GPIOs to use.Update affected call-sites in
seaboard.candharmony.c. Note that this change should make all SD ports work on Harmony, since the required GPIO setup is now being performed.
...
Quoted 1 line
Quoted 1 line
board/nvidia/common/board.h +0
-0
...
Quoted 13 lines
board/nvidia/common/board.h line 29
Quoted 5 lines
void
tegra2_start(void);
voidgpio_config_uart(void);board/nvidia/common/board.h +1
-2-void gpio_config_mmc (void ); -int tegra2_mmc_init (int dev_index,int bus_width); +int tegra2_mmc_init (int dev_index,int bus_width,int pwr_gpio,int cd_gpio);[...]
Can we move
tegra2_start()andtegra2_mmc_init()into a common Tegra2 header instead of a board-specific one, please? Both functions are not implemented below board/nvidia/common, so there is no need to make their prototype only visible for board/nvidia. Otherwise other boards will have to duplicate this prototype and need to keep it in sync.
Quoted 3 lines
tegra2_start()can probably go intoarch/arm/include/asm/arch-tegra2/tegra2.handtegra2_mmc_init()could for example go into a newmmc.hin the same directory.
I'd certainly be fine with that.
It's probably simplest if you include that change in your patchset though; my patchset doesn't change the location of these functions, so I'd have to introduce another patch for that.
Signature · 1 line
nvpublic
PATCH v4 3/4 tegra2: Modify MMC driver to handle power and cd GPIOs
Hi Thierry,
Quoted 9 lines · Stephen Warren
Thierry Reding wrote at Wednesday, November 16, 2011 1:29 PM:
Quoted 8 lines · Stephen Warren
Quoted 7 lines
Pass the GPIO numbers for power and card detect to
tegra2_mmc_init(), and modify that function to perform all required GPIO initialization. This removes the need for board files to perform these operations.Move
board_mmc_getcd()intotegra2_mmc.cnow that the driver knows which GPIOs to use.
Quoted 20 lines
Quoted 3 lines
Quoted 3 lines
Update affected call-sites in
seaboard.candharmony.c. Note that this change should make all SD ports work on Harmony, since the required GPIO setup is now being performed....
Quoted 1 line
Quoted 1 line
board/nvidia/common/board.h +0
-0...
Quoted 14 lines
board/nvidia/common/board.h line 29
Quoted 5 lines
?void
tegra2_start(void);
?voidgpio_config_uart(void);board/nvidia/common/board.h +1
-2-void gpio_config_mmc (void ); -int tegra2_mmc_init (int dev_index,int bus_width); +int tegra2_mmc_init (int dev_index,int bus_width,int pwr_gpio,int cd_gpio);[...]
Can we move
tegra2_start()andtegra2_mmc_init()into a common Tegra2 header instead of a board-specific one, please? Both functions are not implemented below board/nvidia/common, so there is no need to make their prototype only visible for board/nvidia. Otherwise other boards will have to duplicate this prototype and need to keep it in sync.
tegra2_start()can probably go intoarch/arm/include/asm/arch-tegra2/tegra2.h
That header file is supported to just be for #defines. How about ap20.h? Anyway, sorry to say that this has been refactored and simplified already. Patches are upstream - it's just that they are not yet applied. Please see my patchwork if you want to base on top of those as well (yes I know this is a pain, sorry).
Regards,
Simon
Quoted 13 lines
Quoted 2 lines
and
tegra2_mmc_init()could for example go into a newmmc.hin the same directory.I'd certainly be fine with that.
It's probably simplest if you include that change in your patchset though; my patchset doesn't change the location of these functions, so I'd have to introduce another patch for that.
--
nvpublic
PATCH v4 4/4 tegra2: Add support for Ventana
In reply to Stephen WarrenVentana is a board which is very similar to Seaboard. Support it by re-using board/nvidia/seaboard/seaboard.c with minor run-time conditionals.
--- board/nvidia/seaboard/seaboard.c | 11 ++++++- board/nvidia/ventana/Makefile | 55 ++++++++++++++++++++++++++++++++++++++ boards.cfg | 1 + include/configs/ventana.h | 55 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 120 insertions(+), 2 deletions(-) create mode 100644 board/nvidia/ventana/Makefile create mode 100644 include/configs/ventana.h
board/nvidia/seaboard/seaboard.c +9 -2
@@ -32,10 +32,10 @@#include "../common/board.h" /* -* Routine: gpio_config_uart +* Routine: gpio_config_uart_seaboard * Description: Force GPIO_PI3 low on Seaboard so UART4 works. */ -void gpio_config_uart (void ) +void gpio_config_uart_seaboard (void ) {int gp =GPIO_PI3 ;struct gpio_ctlr *gpio = (struct gpio_ctlr *)NV_PA_GPIO_BASE ;
@@ -56,6 +56,13 @@ void gpio_config_uart(void)writel (val, &bank->gpio_dir_out[GPIO_PORT (gp)]); } +void gpio_config_uart (void ) +{ +if (machine_is_ventana ()) +return ; +gpio_config_uart_seaboard (); +} +#ifdef CONFIG_TEGRA2_MMC /* * Routine: pin_mux_mmc
board/nvidia/ventana/Makefile new file +55 -0
55 lines not on this page · raw message
boards.cfg +1 -0
@@ -192,6 +192,7 @@ s5pc210_universal arm armv7 universal_c210 samsung smdkv310 arm armv7 smdkv310 samsung s5pc2xx harmony arm armv7 harmony nvidia tegra2 seaboard arm armv7 seaboard nvidia tegra2 +ventana arm armv7 ventana nvidia tegra2 u8500_href arm armv7 u8500 st-ericsson u8500 actux1_4_16 arm ixp actux1 - - actux1:FLASH2X2 actux1_8_16 arm ixp actux1 - - actux1:FLASH1X8
include/configs/ventana.h new file +55 -0
55 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v4 4/4 tegra2: Add support for Ventana
board/nvidia/ventana/Makefile line 40
Quoted 5 lines · On Wednesday 12 October 2011 11:18:47 Stephen Warren wrote:
board/nvidia/ventana/Makefile new file +2
-0+$(LIB): $(obj).depend $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS)
your build file is out of date. this needs to use the cmd link target. seem just about any other board Makefile for an example.
board/nvidia/ventana/Makefile line 46
Quoted 5 lines
board/nvidia/ventana/Makefile new file +5
-0+clean: + rm -f $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak $(obj).depend
unused ... just punt them
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111012/f5635690/attachment.pgp
PATCH v4 4/4 tegra2: Add support for Ventana
Mike Frysinger wrote at Wednesday, October 12, 2011 9:27 AM:
Quoted 9 lines · On Wednesday 12 October 2011 11:18:47 Stephen Warren wrote:
board/nvidia/ventana/Makefile line 40
Quoted 5 lines
board/nvidia/ventana/Makefile new file +2
-0+$(LIB): $(obj).depend $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS)your build file is out of date. this needs to use the cmd link target. seem just about any other board
Makefilefor an example.
Which repo/branch contains the updated files?
I'm using git://git.denx.de/u-boot.git master, and this new Makefile is identical to existing board/nvidia/{harmony,seaboard}/Makefile. I guess looking at some other board vendors though, you mean that I should make the following change:
$(LIB): $(obj).depend $(OBJS)
- $(call cmd_link_o_target, $(OBJS))
+ $(AR) $(ARFLAGS) $@ $(OBJS)
If so, I'll also include a patch to update the Harmony/Seaboard files first.
Quoted 7 lines
board/nvidia/ventana/Makefile line 46
Quoted 5 lines
board/nvidia/ventana/Makefile new file +5
-0+clean: + rm -f $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak $(obj).dependunused ... just punt them
These rules appear to be present in at least 80-90% of other board files. Has there simply not been a pass to remove them everywhere yet?
Thanks for the feedback.
Signature · 1 line
nvpublic
PATCH v4 4/4 tegra2: Add support for Ventana
Quoted 19 lines · On Wednesday 12 October 2011 12:11:23 Stephen Warren wrote:
Mike Frysinger wrote at Wednesday, October 12, 2011 9:27 AM:
Quoted 9 lines · On Wednesday 12 October 2011 11:18:47 Stephen Warren wrote:
board/nvidia/ventana/Makefile line 40
Quoted 5 lines
board/nvidia/ventana/Makefile new file +2
-0+$(LIB): $(obj).depend $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS)your build file is out of date. this needs to use the cmd link target. seem just about any other board
Makefilefor an example.Which repo/branch contains the updated files?
I'm using
git://git.denx.de/u-boot.gitmaster, and this newMakefileis identical to existing board/nvidia/{harmony,seaboard}/Makefile. I guess looking at some other board vendors though, you mean that I should make the following change:$(LIB): $(obj).depend $(OBJS)
Review
Quoted 2 lines
(quoted diff) +1
-1- $(call cmd_link_o_target, $(OBJS)) + $(AR) $(ARFLAGS) $@ $(OBJS)
your patch is reverted :). if other boards are using $(AR), it's because during review people didn't notice. calling $(AR) is wrong now. please post patches for those boards too :).
Quoted 10 lines
Quoted 7 lines
board/nvidia/ventana/Makefile line 46
Quoted 5 lines
board/nvidia/ventana/Makefile new file +5
-0+clean: + rm -f $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak $(obj).dependunused ... just punt them
These rules appear to be present in at least 80-90% of other board files. Has there simply not been a pass to remove them everywhere yet?
i've posted a big patch to do that already, but it hasn't yet been merged -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111012/0c7e13b7/attachment.pgp
PATCH v4 4/4 tegra2: Add support for Ventana
Mike Frysinger wrote at Wednesday, October 12, 2011 11:02 AM:
Quoted 3 lines · On Wednesday 12 October 2011 12:11:23 Stephen Warren wrote:
Quoted 2 lines
Mike Frysinger wrote at Wednesday, October 12, 2011 9:27 AM:
Quoted 1 line · On Wednesday 12 October 2011 11:18:47 Stephen Warren wrote:
...
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
board/nvidia/ventana/Makefile line 46
Quoted 5 lines
board/nvidia/ventana/Makefile new file +5
-0+clean: + rm -f $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak $(obj).dependunused ... just punt them
Quoted 5 lines
Quoted 2 lines
These rules appear to be present in at least 80-90% of other board files. Has there simply not been a pass to remove them everywhere yet?
i've posted a big patch to do that already, but it hasn't yet been merged -mike
I found it at:
http://lists.denx.de/pipermail/u-boot/2011-September/101648.html
It's unclear from the discussion there if the patch was accepted and is simply waiting to be merged, or if it was rejected. I'm a little hesitant to apply the same patch to the new Ventana board file it the linked patch isn't actually going to be accepted. Can you comment on this?
Thanks.
Signature · 1 line
nvpublic
PATCH v4 4/4 tegra2: Add support for Ventana
Quoted 18 lines · On Wednesday 12 October 2011 13:18:10 Stephen Warren wrote:
Mike Frysinger wrote at Wednesday, October 12, 2011 11:02 AM:
Quoted 11 lines · On Wednesday 12 October 2011 12:11:23 Stephen Warren wrote:
Quoted 10 lines
Mike Frysinger wrote at Wednesday, October 12, 2011 9:27 AM:
Quoted 8 lines · On Wednesday 12 October 2011 11:18:47 Stephen Warren wrote:
board/nvidia/ventana/Makefile line 46
Quoted 5 lines
board/nvidia/ventana/Makefile new file +5
-0+clean: + rm -f $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak $(obj).dependunused ... just punt them
Quoted 5 lines
Quoted 2 lines
These rules appear to be present in at least 80-90% of other board files. Has there simply not been a pass to remove them everywhere yet?
i've posted a big patch to do that already, but it hasn't yet been merged -mike
Quoted 7 lines
I found it at:
http://lists.denx.de/pipermail/u-boot/2011-September/101648.htmlIt's unclear from the discussion there if the patch was accepted and is simply waiting to be merged, or if it was rejected. I'm a little hesitant to apply the same patch to the new Ventana board file it the linked patch isn't actually going to be accepted. Can you comment on this?
obviously i think it's just a matter of time ;). important point being that there are boards already without these targets and they build/clean just fine since these sub-targets never get used.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111012/dccb8815/attachment.pgp
PATCH v4 4/4 tegra2: Add support for Ventana
Dear Mike Frysinger,
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 7 lines
Quoted 3 lines
i've posted a big patch to do that already, but it hasn't yet been merged -mike
I found it at:
http://lists.denx.de/pipermail/u-boot/2011-September/101648.html
Quoted 8 lines
Quoted 4 lines
It's unclear from the discussion there if the patch was accepted and is simply waiting to be merged, or if it was rejected. I'm a little hesitant to apply the same patch to the new Ventana board file it the linked patch isn't actually going to be accepted. Can you comment on this?
obviously i think it's just a matter of time ;). important point being that there are boards already without these targets and they build/clean just fine since these sub-targets never get used.
I don't have this patch on my list. My interpretation was we skip it?
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I often quote myself; it adds spice to my conversation. - G. B. Shaw
PATCH v4 4/4 tegra2: Add support for Ventana
Quoted 13 lines · On Wednesday 12 October 2011 14:38:18 Wolfgang Denk wrote:
Quoted 12 lines · Mike Frysinger
Quoted 11 lines
Quoted 2 lines
i've posted a big patch to do that already, but it hasn't yet been merged -mike
I found it at:
http://lists.denx.de/pipermail/u-boot/2011-September/101648.htmlIt's unclear from the discussion there if the patch was accepted and is simply waiting to be merged, or if it was rejected. I'm a little hesitant to apply the same patch to the new Ventana board file it the linked patch isn't actually going to be accepted. Can you comment on this?
Quoted 5 lines
Quoted 3 lines
obviously i think it's just a matter of time ;). important point being that there are boards already without these targets and they build/clean just fine since these sub-targets never get used.
I don't have this patch on my list. My interpretation was we skip it?
it's dead/inconsistent code (as i showed), and i don't think using it gains us anything. for the few edge cases where arches/boards are adding custom targets to the top level "clean" target, i think that better solved by moving to a kbuild style system where the targets are defined in the subdirs and the top level clean target simply removes the summation of all those variables. -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111012/eda49b79/attachment.pgp
PATCH v4 4/4 tegra2: Add support for Ventana
Dear Mike Frysinger,
Quoted 8 lines · In message <[email protected]> you wrote:
Quoted 2 lines
I don't have this patch on my list. My interpretation was we skip it?
it's dead/inconsistent code (as i showed), and i don't think using it gains us anything. for the few edge cases where arches/boards are adding custom targets to the top level "clean" target, i think that better solved by moving to a kbuild style system where the targets are defined in the subdirs and the top level clean target simply removes the summation of all those variables.
Is the patch still OK, or is rebasing needed?
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Very ugly or very beautiful women should be flattered on their
understanding, and mediocre ones on their beauty.
-- Philip Earl of ChesterfieldPATCH v4 4/4 tegra2: Add support for Ventana
Quoted 11 lines · On Wednesday 12 October 2011 15:29:34 Wolfgang Denk wrote:
Quoted 8 lines · Mike Frysinger
Quoted 1 line
I don't have this patch on my list. My interpretation was we skip it?
it's dead/inconsistent code (as i showed), and i don't think using it gains us anything. for the few edge cases where arches/boards are adding custom targets to the top level "clean" target, i think that better solved by moving to a kbuild style system where the targets are defined in the subdirs and the top level clean target simply removes the summation of all those variables.
Is the patch still OK, or is rebasing needed?
i'll check tonight to see if more boards were added since i last posted -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111012/faff32cc/attachment.pgp