Re: [U-Boot] Patchwork housekeeping

2012-03-22 Thread Marek Vasut
Dear Graeme Russ,

 Hello Custodians and Mailing List Aficionados,
 
 I don't know if anyone has noticed, but patchwork is starting to collect
 a rather large amount of cruft.
 
 I occasionally jump onto patchwork and do a little housekeeping by marking
 updated patches as 'Superceeded' and anything applied by Wolfgang as
 'Accepted' (There may be a few patches that have been applied to custodian
 tress that I marked as 'Accepted' when really they should have been marked
 as 'Awaiting Upstream')
 
 I really don't mind doing this housekeeping, but I would like to make a
 few suggestions that will make the work a little easier:
 
  - If you are a custodian:
 o When you apply a patch to your repo, can you please assign it to
   yourself in patchwork and set it to 'Awaiting Upstream'
 o Reply to the ML with 'Applied to repo/branch'
 o When you send a pull request, create a bundle with all the patches
   that are to be pulled (you can create the bundle early and add
   patches as you apply them)
 o When Wolfgang pulls your repo, go to the bundle and mark all the
   patches 'Accepted'
 
  - If you are a patch submitter:
 o Visit http://patchwork.ozlabs.org/project/uboot/list/
 o Search for your patches by following the 'Filters'link and entering
   your name
 o Send and email (with 'patchwork' somewhere in the subject) to the ML
   with a list of patches that you submitted say more than one month
   ago. For each patch, please indicate if the patch is:
 * Superseded - By another patch (either by you or someone else)
 * Not Applicable - The patch can be ignored (was an RFC, was due
   to a misunderstanding, another patch did the same thing, etc)
 * Applied - Has been applied (state the repo and branch)
 * Rejected - Patch has been officially rejected
 * Waiting - You believe the patch is still valid but has not been
   applied (send a ping as a reply to the patch on the mailing list
   as well
 * Other - Please describe what state you feel the patch is in
 
 Once I get the raw list down to a manageable level, I'll start to look at
 the leftovers...

WAT ? Yet another ruleset ... and a long one while at that. Maybe we should 
cobble together an U-Boot contributors guidebook ... printed edition with 1k 
pages ;-D

We really need to make it easier for people to contribute to u-boot, these long 
rulesets only ward people away.

 
 Regards,
 
 Your friendly Patchwork janitor Graeme

Best regards,
Marek Vasut
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 14/21] mvgbe: remove warning for unused methods

2012-03-22 Thread Holger Brunck
Hi Prafulla,

On 03/21/2012 05:30 PM, Prafulla Wadaskar wrote:
 Subject: [PATCH 14/21] mvgbe: remove warning for unused methods

 From: Stefan Bigler stefan.big...@keymile.com

 Some baords may use the GBE interface but they have no
 phy connected to the interface and a direct MAC/MAC interface.
 For them we need to get rid of compiler warnings.

 Signed-off-by: Stefan Bigler stefan.big...@keymile.com
 cc: Valentin Longchamp valentin.longch...@keymile.com
 cc: Gerlando Falauto gerlando.fala...@keymile.com
 cc: Prafulla Wadaskar prafu...@marvell.com
 cc: Holger Brunck holger.bru...@keymile.com
 ---
  drivers/net/mvgbe.c |2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

 
 Pls post this as standalone patch, does not have any dependency.
 

it has a dependency. Without this patch our new boards submitted in this patch
series will throw compiler warnings. But if you still insist, I can do this...

Regards
Holger

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v6] mx6: Read silicon revision from register

2012-03-22 Thread Dirk Behme

On 21.03.2012 09:41, Stefano Babic wrote:

On 20/03/2012 15:21, Fabio Estevam wrote:

Instead of hardcoding the mx6 silicon revision, read it in run-time.

Also, besides the silicon version print the mx6 variant type: quad,dual/solo 
or solo-lite.


Tested on a mx6qsabrelite, where it shows:

CPU:   Freescale i.MX6Q rev1.0 at 792 MHz  


Signed-off-by: Fabio Estevam fabio.este...@freescale.com
---


Applied to u-boot-imx, thanks.


Thanks!

Sounds like this

http://patchwork.ozlabs.org/patch/147669/

would be a good candidate to put it on top of this, now?

Best regards

Dirk
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 10/21] spi/kirkwood: add weak functions board_spi_bus_claim/release

2012-03-22 Thread Holger Brunck
Hi Prafulla,

On 03/21/2012 05:30 PM, Prafulla Wadaskar wrote:
 Subject: [PATCH 10/21] spi/kirkwood: add weak functions
 board_spi_bus_claim/release

 From: Valentin Longchamp valentin.longch...@keymile.com

 Some kirkwood based boards may need to implement such function due to
 some HW designs.

 Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com
 cc: Gerlando Falauto gerlando.fala...@keymile.com
 cc: Prafulla Wadaskar prafu...@marvell.com
 cc: Holger Brunck holger.bru...@keymile.com
 ---
 
 Pls post this as standalone patch, does not have any dependency.
 Exclude from this patch series.
 

hm, without this patch this patchserie will end up in boards wich are not able
to work properly. So for me there is a dependancy. But if you still insist...

Regards
Holger


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v6] mx6: Read silicon revision from register

2012-03-22 Thread Stefano Babic
On 22/03/2012 08:48, Dirk Behme wrote:
 On 21.03.2012 09:41, Stefano Babic wrote:
 On 20/03/2012 15:21, Fabio Estevam wrote:
 Instead of hardcoding the mx6 silicon revision, read it in run-time.

 Also, besides the silicon version print the mx6 variant type:
 quad,dual/solo or solo-lite.

 Tested on a mx6qsabrelite, where it shows:

 CPU:   Freescale i.MX6Q rev1.0 at 792 MHz 
 Signed-off-by: Fabio Estevam fabio.este...@freescale.com
 ---

 Applied to u-boot-imx, thanks.
 
 Thanks!
 
 Sounds like this
 
 http://patchwork.ozlabs.org/patch/147669/

It is already acked, I leave always some days for later comments before
applying a patch - sure, it will be applied, too.

Best regards,
Stefano

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 14/21] mvgbe: remove warning for unused methods

2012-03-22 Thread Prafulla Wadaskar


 -Original Message-
 From: Holger Brunck [mailto:holger.bru...@keymile.com]
 Sent: 22 March 2012 13:20
 To: Prafulla Wadaskar
 Cc: u-boot@lists.denx.de; Stefan Bigler; Valentin Longchamp; Gerlando
 Falauto
 Subject: Re: [PATCH 14/21] mvgbe: remove warning for unused methods
 
 Hi Prafulla,
 
 On 03/21/2012 05:30 PM, Prafulla Wadaskar wrote:
  Subject: [PATCH 14/21] mvgbe: remove warning for unused methods
 
  From: Stefan Bigler stefan.big...@keymile.com
 
  Some baords may use the GBE interface but they have no
  phy connected to the interface and a direct MAC/MAC interface.
  For them we need to get rid of compiler warnings.
 
  Signed-off-by: Stefan Bigler stefan.big...@keymile.com
  cc: Valentin Longchamp valentin.longch...@keymile.com
  cc: Gerlando Falauto gerlando.fala...@keymile.com
  cc: Prafulla Wadaskar prafu...@marvell.com
  cc: Holger Brunck holger.bru...@keymile.com
  ---
   drivers/net/mvgbe.c |2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)
 
 
  Pls post this as standalone patch, does not have any dependency.
 
 
 it has a dependency. Without this patch our new boards submitted in
 this patch
 series will throw compiler warnings. But if you still insist, I can do
 this...

This should be okay, please post t separately

Regards..
Prafulla . . .


 
 Regards
 Holger

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] patchwork: net/eth.c: fix eth_write_hwaddr() to use dev-enetaddr as fall back

2012-03-22 Thread Dirk Behme


Waiting: http://patchwork.ozlabs.org/patch/136789/


This mail is according to

http://lists.denx.de/pipermail/u-boot/2012-March/120778.html

Best regards

Dirk

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] patchwork: miiphyutil: Add Micrel KSZ9021 support to miiphy_speed

2012-03-22 Thread Dirk Behme


Superseded:

http://patchwork.ozlabs.org/patch/135813/

http://patchwork.ozlabs.org/patch/136834/

Updated patch applied instead:

http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commit;h=8682aba7da2af2842296710acca7c03fcebafd5c


This mail is according to

http://lists.denx.de/pipermail/u-boot/2012-March/120778.html

Best regards

Dirk


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] USB: ehci-mx6: Add proper IO accessors

2012-03-22 Thread Liu Hui-R64343
-Original Message-
From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de]
On Behalf Of Fabio Estevam
Sent: Tuesday, March 20, 2012 6:36 AM
To: u-boot@lists.denx.de
Cc: ma...@denx.de; Estevam Fabio-R49496; w...@denx.de
Subject: [U-Boot] [PATCH] USB: ehci-mx6: Add proper IO accessors

Add proper IO accessors for mx6 usb registers.

Signed-off-by: Fabio Estevam fabio.este...@freescale.com
---
This patch depends on [PATCH v5] mx6: Read silicon revision from register

 drivers/usb/host/ehci-mx6.c |   13 -
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index
b7bf49d..5dec673 100644
--- a/drivers/usb/host/ehci-mx6.c
+++ b/drivers/usb/host/ehci-mx6.c
@@ -46,13 +46,9 @@
 #define USBPHY_CTRL_ENUTMILEVEL3  0x8000
 #define USBPHY_CTRL_ENUTMILEVEL2  0x4000

-#define ANADIG_USB2_CHRG_DETECT   0x0210
 #define ANADIG_USB2_CHRG_DETECT_EN_B  0x0010
 #define ANADIG_USB2_CHRG_DETECT_CHK_CHRG_B0x0008

-#define ANADIG_USB2_PLL_480_CTRL  0x0020
-#define ANADIG_USB2_PLL_480_CTRL_SET  0x0024
-#define ANADIG_USB2_PLL_480_CTRL_CLR  0x0028
 #define ANADIG_USB2_PLL_480_CTRL_BYPASS   0x0001
 #define ANADIG_USB2_PLL_480_CTRL_ENABLE   0x2000
 #define ANADIG_USB2_PLL_480_CTRL_POWER0x1000
@@ -77,8 +73,7 @@ static void usbh1_internal_phy_clock_gate(int on)

 static void usbh1_power_config(void)
 {
-  void __iomem *anatop_base = (void __iomem *)ANATOP_BASE_ADDR;
-
+  struct anatop_regs *anatop = (struct anatop_regs
*)ANATOP_BASE_ADDR;
   /*
* Some phy and power's special controls for host1
* 1. The external charger detector needs to be disabled @@ -89,15
+84,15 @@ static void usbh1_power_config(void)
*/
   __raw_writel(ANADIG_USB2_CHRG_DETECT_EN_B |
ANADIG_USB2_CHRG_DETECT_CHK_CHRG_B,
-   anatop_base + ANADIG_USB2_CHRG_DETECT);
+   anatop-usb2_chrg_detect);

   __raw_writel(ANADIG_USB2_PLL_480_CTRL_BYPASS,
-   anatop_base + ANADIG_USB2_PLL_480_CTRL_CLR);
+   anatop-usb2_pll_480_ctrl);

   __raw_writel(ANADIG_USB2_PLL_480_CTRL_ENABLE |
ANADIG_USB2_PLL_480_CTRL_POWER |
ANADIG_USB2_PLL_480_CTRL_EN_USB_CLKS,
-   anatop_base + ANADIG_USB2_PLL_480_CTRL_SET);
+   anatop-usb2_pll_480_ctrl_set);
 }

 static int usbh1_phy_enable(void)

Acked-by: Jason Liu r64...@freescale.com

--
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] reminder for [PATCH 0/5] Support for qualcomm msm7630 board

2012-03-22 Thread mohamed.haneef
From: Mohamed Haneef mohamed.han...@lntinfotech.com

This is a humbel reminder for review  of patch series for msm7630 board after 
making the changes proposed by u-boot community. The Patches contain the 
following support
* low speed uart for msm7630
* interprocessor communication
* qc_mmc microcontroller
* msm7630 soc
* msm7630 surf board


The contents of this e-mail and any attachment(s) may contain confidential or 
privileged information for the intended recipient(s). Unintended recipients are 
prohibited from taking action on the basis of information in this e-mail and  
using or disseminating the information,  and must notify the sender and delete 
it from their system. LT Infotech will not accept responsibility or liability 
for the accuracy or completeness of, or the presence of any virus or disabling 
code in this e-mail
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 05/14] cfb_console: Fix function console_scrollup

2012-03-22 Thread Pali Rohár
On Wednesday 21 March 2012 23:58:10 Anatolij Gustschin wrote:
 On Wed, 21 Mar 2012 19:50:34 +0100
 Pali Rohár pali.ro...@gmail.com wrote:
 ...

  Hi, can you show me how to fix this? How to correctly use
  framebuffer?

 Hi,

 Not really. This would be a new project to rewrite U-Boot driver
 for OMAP3 DSS. There is a driver under drivers/video/omap3_dss.c,
 but it doesn't do what we need here. You can try to set
 gdev.frameAdrs to point to another address range in RAM which is
 not used by U-Boot. Then get OMAP3430 TRM and read DSS
 documentation how to configure the display controller so that is
 displays frame buffer data from this address range. Currently I do
 not have time nor resources to rewrite the existing omap3_dss
 driver.

 Thanks,
 Anatolij

Do you think that mapped address of framebuffer is only problem? Why
then framebuffer output on n900 screen working without problem if I
do NOT read framebuffer memory? Problem with garbaged display output
seems happends only for read operations (console_scrollup, negation
of pixels for cursor,...) but not for write-only operations (clear
console, clear line, set black/white cursror, render fonsts...). I
think if there is problem with address space, then garbaged screen
should be also for framebuffer write operations...

--
Pali Rohár
pali.ro...@gmail.com

signature.asc
Description: This is a digitally signed message part.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] BOOT: Add RAW ramdisk support to bootz

2012-03-22 Thread Marek Vasut
Dear Rob Herring,

 From: Marek Vasut marek.va...@gmail.com
 
 This patch allows loading RAW ramdisk via bootz command. The raw ramdisk is
 loaded only in case it's size is specified:
 
   bootz kernel addr ramdisk addr:ramdisk size fdt addr
 
 For example:
 
   bootz 0x4200 0x4300:0x12345 0x4400
 
 Signed-off-by: Marek Vasut ma...@denx.de
 Signed-off-by: Rob Herring rob.herr...@calxeda.com
 Cc: Tom Warren twar...@nvidia.com
 Cc: albert.u.b...@aribaud.net
 Cc: aflem...@gmail.com
 Cc: Simon Glass s...@chromium.org
 Cc: Stephen Warren swar...@nvidia.com
 Cc: Nicolas Pitre n...@fluxnic.net
 Cc: Wolfgang Denk w...@denx.de
 Cc: Detlev Zundel d...@denx.de

Doesn't this still colide with CONFIG_FIT? Aka. in case of CONFIG_FIT enabled, 
you can't use raw ramdisk?

btw. maybe we should use @ instead of : and be done with it?

 ---
 V3:
 - fix operation when CONFIG_FIT is enabled as FIT images use
   addr[:subimage]
 
  README |5 +
  common/cmd_bootm.c |6 --
  common/image.c |   15 ---
  3 files changed, 21 insertions(+), 5 deletions(-)
 
 diff --git a/README b/README
 index 5141751..068ec71 100644
 --- a/README
 +++ b/README
 @@ -4330,6 +4330,11 @@ On some platforms, it's possible to boot Linux
 zImage. This is done using the bootz command. The syntax of bootz
 command is the same as the syntax of bootm command.
 
 +Note, defining the CONFIG_SUPPORT_INITRD_RAW allows user to supply
 +kernel with raw initrd images. The syntax is slightly different, the
 +address of the initrd must be augmented by it's size, in the following
 +format: initrd addres:initrd size.
 +
 
  Standalone HOWTO:
  =
 diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
 index b49d4f7..2f9b214 100644
 --- a/common/cmd_bootm.c
 +++ b/common/cmd_bootm.c
 @@ -1634,9 +1634,11 @@ static int do_bootz(cmd_tbl_t *cmdtp, int flag, int
 argc, char * const argv[]) U_BOOT_CMD(
   bootz,  CONFIG_SYS_MAXARGS, 1,  do_bootz,
   boot Linux zImage image from memory,
 - [addr [initrd] [fdt]]\n- boot Linux zImage stored in memory\n
 + [addr [initrd[:size]] [fdt]]\n
 + - boot Linux zImage stored in memory\n
   \tThe argument 'initrd' is optional and specifies the address\n
 - \tof the initrd in memory.\n
 + \tof the initrd in memory. The optional argument ':size' allows\n
 + \tspecifying the size of RAW initrd.\n
  #if defined(CONFIG_OF_LIBFDT)
   \tWhen booting a Linux kernel which requires a flat device-tree\n
   \ta third argument is required which is the address of the\n
 diff --git a/common/image.c b/common/image.c
 index 77ca6e4..2a25f5f 100644
 --- a/common/image.c
 +++ b/common/image.c
 @@ -796,6 +796,7 @@ int boot_get_ramdisk(int argc, char * const argv[],
 bootm_headers_t *images, ulong rd_addr, rd_load;
   ulong rd_data, rd_len;
   const image_header_t *rd_hdr;
 + char *end;
  #if defined(CONFIG_FIT)
   void*fit_hdr;
   const char  *fit_uname_config = NULL;
 @@ -989,9 +990,17 @@ int boot_get_ramdisk(int argc, char * const argv[],
 bootm_headers_t *images, break;
  #endif
   default:
 - puts(Wrong Ramdisk Image Format\n);
 - rd_data = rd_len = rd_load = 0;
 - return 1;
 +#ifdef CONFIG_SUPPORT_RAW_INITRD
 + if (argc = 3  (end = strchr(argv[2], ':'))) {
 + rd_len = simple_strtoul(++end, NULL, 16);
 + rd_data = rd_addr;
 + } else
 +#endif
 + {
 + puts(Wrong Ramdisk Image Format\n);
 + rd_data = rd_len = rd_load = 0;
 + return 1;
 + }
   }
   } else if (images-legacy_hdr_valid 
   image_check_type(images-legacy_hdr_os_copy,

Best regards,
Marek Vasut
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 10/21] spi/kirkwood: add weak functions board_spi_bus_claim/release

2012-03-22 Thread Prafulla Wadaskar


 -Original Message-
 From: Holger Brunck [mailto:holger.bru...@keymile.com]
 Sent: 22 March 2012 13:28
 To: Prafulla Wadaskar
 Cc: u-boot@lists.denx.de; Valentin Longchamp; Gerlando Falauto
 Subject: Re: [PATCH 10/21] spi/kirkwood: add weak functions
 board_spi_bus_claim/release
 
 Hi Prafulla,
 
 On 03/21/2012 05:30 PM, Prafulla Wadaskar wrote:
  Subject: [PATCH 10/21] spi/kirkwood: add weak functions
  board_spi_bus_claim/release
 
  From: Valentin Longchamp valentin.longch...@keymile.com
 
  Some kirkwood based boards may need to implement such function due
 to
  some HW designs.
 
  Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com
  cc: Gerlando Falauto gerlando.fala...@keymile.com
  cc: Prafulla Wadaskar prafu...@marvell.com
  cc: Holger Brunck holger.bru...@keymile.com
  ---
 
  Pls post this as standalone patch, does not have any dependency.
  Exclude from this patch series.
 
 
 hm, without this patch this patchserie will end up in boards wich are
 not able
 to work properly. So for me there is a dependancy. But if you still
 insist...

You may mention this as dependency, you can always test your board by applying 
this patch, whereas this is specific to SPI and I think should go separately 
(may be through other custodian).

Regards..
Prafulla . . .
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] NAND: TI: fix warnings in omap_gpmc.c

2012-03-22 Thread Stefano Babic
On 21/03/2012 19:42, Scott Wood wrote:
 On 03/21/2012 06:33 AM, Stefano Babic wrote:
 The following warnings are reported for boards using SOFT ECC.

 omap_gpmc.c:33:30: warning: 'hw_nand_oob' defined but not used
 omap_gpmc.c:78:13: warning: 'omap_hwecc_init' defined but not used
 omap_gpmc.c:116:12: warning: 'omap_correct_data' defined but not used
 omap_gpmc.c:182:12: warning: 'omap_calculate_ecc' defined but not used
 omap_gpmc.c:208:13: warning: 'omap_enable_hwecc' defined but not used

 Signed-off-by: Stefano Babic sba...@denx.de
 Cc: Tom Rini tr...@ti.com
 Cc: Scott Wood scottw...@freescale.com
 ---
  drivers/mtd/nand/omap_gpmc.c |6 ++
  1 files changed, 6 insertions(+), 0 deletions(-)

 diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c
 index 1dfe074..3a9baff 100644
 --- a/drivers/mtd/nand/omap_gpmc.c
 +++ b/drivers/mtd/nand/omap_gpmc.c
 @@ -30,7 +30,10 @@
  #include nand.h
  
  static uint8_t cs;
 +#if !defined(CONFIG_SPL_BUILD) || \
 +(defined(CONFIG_SPL_BUILD)  !defined(CONFIG_SPL_NAND_SOFTECC))
  static struct nand_ecclayout hw_nand_oob = GPMC_NAND_HW_ECC_LAYOUT;
 +#endif
  
  /*
   * omap_nand_hwcontrol - Set the address pointers corretly for the
 @@ -69,6 +72,8 @@ int omap_spl_dev_ready(struct mtd_info *mtd)
  }
  #endif
  
 +#if !defined(CONFIG_SPL_BUILD) || \
 +(defined(CONFIG_SPL_BUILD)  !defined(CONFIG_SPL_NAND_SOFTECC))
  /*
   * omap_hwecc_init - Initialize the Hardware ECC for NAND flash in
   *   GPMC controller
 @@ -231,6 +236,7 @@ static void omap_enable_hwecc(struct mtd_info *mtd, 
 int32_t mode)
  break;
  }
  }
 +#endif
  
  #ifndef CONFIG_SPL_BUILD
  /*
 
 Maybe just use __attribute__((unused))?

Of yourse, you are right. We have already the macro __maybe_unused, I
will use it !

Stefano

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH V2] NAND: TI: fix warnings in omap_gpmc.c

2012-03-22 Thread Stefano Babic
The following warnings are reported for boards using SOFT ECC.

omap_gpmc.c:33:30: warning: 'hw_nand_oob' defined but not used
omap_gpmc.c:78:13: warning: 'omap_hwecc_init' defined but not used
omap_gpmc.c:116:12: warning: 'omap_correct_data' defined but not used
omap_gpmc.c:182:12: warning: 'omap_calculate_ecc' defined but not used
omap_gpmc.c:208:13: warning: 'omap_enable_hwecc' defined but not used

Signed-off-by: Stefano Babic sba...@denx.de
Cc: Tom Rini tr...@ti.com
Cc: Scott Wood scottw...@freescale.com
---

Changes since V1:
- drop #ifdef and use  __attribute__((unused) (Scott Wood)

 drivers/mtd/nand/omap_gpmc.c |   14 --
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c
index 1dfe074..ca868ef 100644
--- a/drivers/mtd/nand/omap_gpmc.c
+++ b/drivers/mtd/nand/omap_gpmc.c
@@ -27,10 +27,12 @@
 #include asm/arch/mem.h
 #include asm/arch/omap_gpmc.h
 #include linux/mtd/nand_ecc.h
+#include linux/compiler.h
 #include nand.h
 
 static uint8_t cs;
-static struct nand_ecclayout hw_nand_oob = GPMC_NAND_HW_ECC_LAYOUT;
+static __maybe_unused struct nand_ecclayout hw_nand_oob =
+   GPMC_NAND_HW_ECC_LAYOUT;
 
 /*
  * omap_nand_hwcontrol - Set the address pointers corretly for the
@@ -75,7 +77,7 @@ int omap_spl_dev_ready(struct mtd_info *mtd)
  * @mtd:MTD device structure
  *
  */
-static void omap_hwecc_init(struct nand_chip *chip)
+static void __maybe_unused omap_hwecc_init(struct nand_chip *chip)
 {
/*
 * Init ECC Control Register
@@ -113,7 +115,7 @@ static uint32_t gen_true_ecc(uint8_t *ecc_buf)
  *
  * @return 0 if data is OK or corrected, else returns -1
  */
-static int omap_correct_data(struct mtd_info *mtd, uint8_t *dat,
+static int __maybe_unused omap_correct_data(struct mtd_info *mtd, uint8_t *dat,
uint8_t *read_ecc, uint8_t *calc_ecc)
 {
uint32_t orig_ecc, new_ecc, res, hm;
@@ -179,8 +181,8 @@ static int omap_correct_data(struct mtd_info *mtd, uint8_t 
*dat,
  *  @dat:  unused
  *  @ecc_code: ecc_code buffer
  */
-static int omap_calculate_ecc(struct mtd_info *mtd, const uint8_t *dat,
-   uint8_t *ecc_code)
+static int __maybe_unused omap_calculate_ecc(struct mtd_info *mtd,
+   const uint8_t *dat, uint8_t *ecc_code)
 {
u_int32_t val;
 
@@ -205,7 +207,7 @@ static int omap_calculate_ecc(struct mtd_info *mtd, const 
uint8_t *dat,
  * @mtd:MTD device structure
  * @mode:   Read/Write mode
  */
-static void omap_enable_hwecc(struct mtd_info *mtd, int32_t mode)
+static void __maybe_unused omap_enable_hwecc(struct mtd_info *mtd, int32_t 
mode)
 {
struct nand_chip *chip = mtd-priv;
uint32_t val, dev_width = (chip-options  NAND_BUSWIDTH_16)  1;
-- 
1.7.5.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] patchwork: miiphyutil: Add Micrel KSZ9021 support to miiphy_speed

2012-03-22 Thread Graeme Russ
Hi Dirk,

On 03/22/2012 07:40 PM, Dirk Behme wrote:
 
 Superseded:
 
 http://patchwork.ozlabs.org/patch/135813/
 
 http://patchwork.ozlabs.org/patch/136834/
 
 Updated patch applied instead:
 
 http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commit;h=8682aba7da2af2842296710acca7c03fcebafd5c

Updated in patchwork

Thanks,

Graeme
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] patchwork: net/eth.c: fix eth_write_hwaddr() to use dev-enetaddr as fall back

2012-03-22 Thread Graeme Russ
Hi Dirk,

On 03/22/2012 07:31 PM, Dirk Behme wrote:
 
 Waiting: http://patchwork.ozlabs.org/patch/136789/
 

Assigned to Wolfgang and changed state to 'Under Review' (seemed most
appropriate status)

Regards,

Graeme
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Patchwork housekeeping

2012-03-22 Thread Graeme Russ
Hi Marek,

On 03/22/2012 05:45 PM, Marek Vasut wrote:
 Dear Graeme Russ,
 
 Hello Custodians and Mailing List Aficionados,

 I don't know if anyone has noticed, but patchwork is starting to collect
 a rather large amount of cruft.

 I occasionally jump onto patchwork and do a little housekeeping by marking
 updated patches as 'Superceeded' and anything applied by Wolfgang as
 'Accepted' (There may be a few patches that have been applied to custodian
 tress that I marked as 'Accepted' when really they should have been marked
 as 'Awaiting Upstream')

 I really don't mind doing this housekeeping, but I would like to make a
 few suggestions that will make the work a little easier:

  - If you are a custodian:
 o When you apply a patch to your repo, can you please assign it to
   yourself in patchwork and set it to 'Awaiting Upstream'
 o Reply to the ML with 'Applied to repo/branch'
 o When you send a pull request, create a bundle with all the patches
   that are to be pulled (you can create the bundle early and add
   patches as you apply them)
 o When Wolfgang pulls your repo, go to the bundle and mark all the
   patches 'Accepted'

  - If you are a patch submitter:
 o Visit http://patchwork.ozlabs.org/project/uboot/list/
 o Search for your patches by following the 'Filters'link and entering
   your name
 o Send and email (with 'patchwork' somewhere in the subject) to the ML
   with a list of patches that you submitted say more than one month
   ago. For each patch, please indicate if the patch is:
 * Superseded - By another patch (either by you or someone else)
 * Not Applicable - The patch can be ignored (was an RFC, was due
   to a misunderstanding, another patch did the same thing, etc)
 * Applied - Has been applied (state the repo and branch)
 * Rejected - Patch has been officially rejected
 * Waiting - You believe the patch is still valid but has not been
   applied (send a ping as a reply to the patch on the mailing list
   as well
 * Other - Please describe what state you feel the patch is in

 Once I get the raw list down to a manageable level, I'll start to look at
 the leftovers...
 
 WAT ? Yet another ruleset ... and a long one while at that. Maybe we should 
 cobble together an U-Boot contributors guidebook ... printed edition with 
 1k 
 pages ;-D

The submission rules (http://www.denx.de/wiki/U-Boot/Patches) are pretty
clear and concise (I've added a not about starting the subject with a tag)

 We really need to make it easier for people to contribute to u-boot, these 
 long 
 rulesets only ward people away.

This patchwork cleanup should really only be a once off to try and get
things cleaned up a bit. There are patches in patchwork from 2009, if we
can get some of the stale patches cleaned out (and contact the submitters
to see if they are interested in resubmitting or verifying re-based
patches) then we will all be better off.

Nothing is more discouraging to patch submitters than patches that get ignored.

Regards,

Graeme
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Patchwork housekeeping

2012-03-22 Thread Marek Vasut
Dear Graeme Russ,

 Hi Marek,
 
 On 03/22/2012 05:45 PM, Marek Vasut wrote:
  Dear Graeme Russ,
  
  Hello Custodians and Mailing List Aficionados,
  
  I don't know if anyone has noticed, but patchwork is starting to collect
  a rather large amount of cruft.
  
  I occasionally jump onto patchwork and do a little housekeeping by
  marking updated patches as 'Superceeded' and anything applied by
  Wolfgang as 'Accepted' (There may be a few patches that have been
  applied to custodian tress that I marked as 'Accepted' when really they
  should have been marked as 'Awaiting Upstream')
  
  I really don't mind doing this housekeeping, but I would like to make a
  
  few suggestions that will make the work a little easier:
   - If you are a custodian:
  o When you apply a patch to your repo, can you please assign it to
  
yourself in patchwork and set it to 'Awaiting Upstream'
  
  o Reply to the ML with 'Applied to repo/branch'
  o When you send a pull request, create a bundle with all the patches
  
that are to be pulled (you can create the bundle early and add
patches as you apply them)
  
  o When Wolfgang pulls your repo, go to the bundle and mark all the
  
patches 'Accepted'
   
   - If you are a patch submitter:
  o Visit http://patchwork.ozlabs.org/project/uboot/list/
  o Search for your patches by following the 'Filters'link and
  entering
  
your name
  
  o Send and email (with 'patchwork' somewhere in the subject) to the
  ML
  
with a list of patches that you submitted say more than one month

ago. For each patch, please indicate if the patch is:
  * Superseded - By another patch (either by you or someone else)
  * Not Applicable - The patch can be ignored (was an RFC, was due
  
to a misunderstanding, another patch did the same thing, etc)
  
  * Applied - Has been applied (state the repo and branch)
  * Rejected - Patch has been officially rejected
  * Waiting - You believe the patch is still valid but has not
  been
  
applied (send a ping as a reply to the patch on the mailing
list as well
  
  * Other - Please describe what state you feel the patch is in
  
  Once I get the raw list down to a manageable level, I'll start to look
  at the leftovers...
  
  WAT ? Yet another ruleset ... and a long one while at that. Maybe we
  should cobble together an U-Boot contributors guidebook ... printed
  edition with 1k pages ;-D
 
 The submission rules (http://www.denx.de/wiki/U-Boot/Patches) are pretty
 clear and concise (I've added a not about starting the subject with a tag)

Some distilled down version for first-time comers won't hurt of that page.
 
  We really need to make it easier for people to contribute to u-boot,
  these long rulesets only ward people away.
 
 This patchwork cleanup should really only be a once off to try and get
 things cleaned up a bit. There are patches in patchwork from 2009, if we
 can get some of the stale patches cleaned out (and contact the submitters
 to see if they are interested in resubmitting or verifying re-based
 patches) then we will all be better off.

Agreed
 
 Nothing is more discouraging to patch submitters than patches that get
 ignored.

Yes
 
 Regards,
 
 Graeme

Thanks for working on this, Graeme, I really appreciate that

Best regards,
Marek Vasut
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] BOOT: Add RAW ramdisk support to bootz

2012-03-22 Thread Rob Herring
On 03/22/2012 04:10 AM, Marek Vasut wrote:
 Dear Rob Herring,
 
 From: Marek Vasut marek.va...@gmail.com

 This patch allows loading RAW ramdisk via bootz command. The raw ramdisk is
 loaded only in case it's size is specified:

   bootz kernel addr ramdisk addr:ramdisk size fdt addr

 For example:

   bootz 0x4200 0x4300:0x12345 0x4400

 Signed-off-by: Marek Vasut ma...@denx.de
 Signed-off-by: Rob Herring rob.herr...@calxeda.com
 Cc: Tom Warren twar...@nvidia.com
 Cc: albert.u.b...@aribaud.net
 Cc: aflem...@gmail.com
 Cc: Simon Glass s...@chromium.org
 Cc: Stephen Warren swar...@nvidia.com
 Cc: Nicolas Pitre n...@fluxnic.net
 Cc: Wolfgang Denk w...@denx.de
 Cc: Detlev Zundel d...@denx.de
 
 Doesn't this still colide with CONFIG_FIT? Aka. in case of CONFIG_FIT 
 enabled, 
 you can't use raw ramdisk?

No. All the parsing now is done after trying to read the image type.
Only if a valid legacy or FIT uImage is not found, do we hit the raw
image code and parse the size. I tested both with and without CONFIG_FIT
enabled.

 
 btw. maybe we should use @ instead of : and be done with it?

Sub images will have an @ in the name. I thought about parsing for that,
but DT has no requirement that you have to have an @ in the node name
and it's not clear to me if u-boot convention requires it or not. Then I
came up with the current patch, so it doesn't matter.

Rob

 
 ---
 V3:
 - fix operation when CONFIG_FIT is enabled as FIT images use
   addr[:subimage]

  README |5 +
  common/cmd_bootm.c |6 --
  common/image.c |   15 ---
  3 files changed, 21 insertions(+), 5 deletions(-)

 diff --git a/README b/README
 index 5141751..068ec71 100644
 --- a/README
 +++ b/README
 @@ -4330,6 +4330,11 @@ On some platforms, it's possible to boot Linux
 zImage. This is done using the bootz command. The syntax of bootz
 command is the same as the syntax of bootm command.

 +Note, defining the CONFIG_SUPPORT_INITRD_RAW allows user to supply
 +kernel with raw initrd images. The syntax is slightly different, the
 +address of the initrd must be augmented by it's size, in the following
 +format: initrd addres:initrd size.
 +

  Standalone HOWTO:
  =
 diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
 index b49d4f7..2f9b214 100644
 --- a/common/cmd_bootm.c
 +++ b/common/cmd_bootm.c
 @@ -1634,9 +1634,11 @@ static int do_bootz(cmd_tbl_t *cmdtp, int flag, int
 argc, char * const argv[]) U_BOOT_CMD(
  bootz,  CONFIG_SYS_MAXARGS, 1,  do_bootz,
  boot Linux zImage image from memory,
 -[addr [initrd] [fdt]]\n- boot Linux zImage stored in memory\n
 +[addr [initrd[:size]] [fdt]]\n
 +- boot Linux zImage stored in memory\n
  \tThe argument 'initrd' is optional and specifies the address\n
 -\tof the initrd in memory.\n
 +\tof the initrd in memory. The optional argument ':size' allows\n
 +\tspecifying the size of RAW initrd.\n
  #if defined(CONFIG_OF_LIBFDT)
  \tWhen booting a Linux kernel which requires a flat device-tree\n
  \ta third argument is required which is the address of the\n
 diff --git a/common/image.c b/common/image.c
 index 77ca6e4..2a25f5f 100644
 --- a/common/image.c
 +++ b/common/image.c
 @@ -796,6 +796,7 @@ int boot_get_ramdisk(int argc, char * const argv[],
 bootm_headers_t *images, ulong rd_addr, rd_load;
  ulong rd_data, rd_len;
  const image_header_t *rd_hdr;
 +char *end;
  #if defined(CONFIG_FIT)
  void*fit_hdr;
  const char  *fit_uname_config = NULL;
 @@ -989,9 +990,17 @@ int boot_get_ramdisk(int argc, char * const argv[],
 bootm_headers_t *images, break;
  #endif
  default:
 -puts(Wrong Ramdisk Image Format\n);
 -rd_data = rd_len = rd_load = 0;
 -return 1;
 +#ifdef CONFIG_SUPPORT_RAW_INITRD
 +if (argc = 3  (end = strchr(argv[2], ':'))) {
 +rd_len = simple_strtoul(++end, NULL, 16);
 +rd_data = rd_addr;
 +} else
 +#endif
 +{
 +puts(Wrong Ramdisk Image Format\n);
 +rd_data = rd_len = rd_load = 0;
 +return 1;
 +}
  }
  } else if (images-legacy_hdr_valid 
  image_check_type(images-legacy_hdr_os_copy,
 
 Best regards,
 Marek Vasut

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] BOOT: Add RAW ramdisk support to bootz

2012-03-22 Thread Marek Vasut
Dear Rob Herring,

 On 03/22/2012 04:10 AM, Marek Vasut wrote:
  Dear Rob Herring,
  
  From: Marek Vasut marek.va...@gmail.com
  
  This patch allows loading RAW ramdisk via bootz command. The raw ramdisk
  is
  
  loaded only in case it's size is specified:
bootz kernel addr ramdisk addr:ramdisk size fdt addr
  
  For example:
bootz 0x4200 0x4300:0x12345 0x4400
  
  Signed-off-by: Marek Vasut ma...@denx.de
  Signed-off-by: Rob Herring rob.herr...@calxeda.com
  Cc: Tom Warren twar...@nvidia.com
  Cc: albert.u.b...@aribaud.net
  Cc: aflem...@gmail.com
  Cc: Simon Glass s...@chromium.org
  Cc: Stephen Warren swar...@nvidia.com
  Cc: Nicolas Pitre n...@fluxnic.net
  Cc: Wolfgang Denk w...@denx.de
  Cc: Detlev Zundel d...@denx.de
  
  Doesn't this still colide with CONFIG_FIT? Aka. in case of CONFIG_FIT
  enabled, you can't use raw ramdisk?
 
 No. All the parsing now is done after trying to read the image type.
 Only if a valid legacy or FIT uImage is not found, do we hit the raw
 image code and parse the size. I tested both with and without CONFIG_FIT
 enabled.
 
  btw. maybe we should use @ instead of : and be done with it?
 
 Sub images will have an @ in the name. I thought about parsing for that,
 but DT has no requirement that you have to have an @ in the node name
 and it's not clear to me if u-boot convention requires it or not. Then I
 came up with the current patch, so it doesn't matter.

Dear Wolfgang Denk, are we OK with applying this and bootz patch please? Can we 
get it into .04 release please?

 
 Rob
 
  ---
  V3:
  - fix operation when CONFIG_FIT is enabled as FIT images use
  
addr[:subimage]
   
   README |5 +
   common/cmd_bootm.c |6 --
   common/image.c |   15 ---
   3 files changed, 21 insertions(+), 5 deletions(-)
  
  diff --git a/README b/README
  index 5141751..068ec71 100644
  --- a/README
  +++ b/README
  @@ -4330,6 +4330,11 @@ On some platforms, it's possible to boot Linux
  zImage. This is done using the bootz command. The syntax of bootz
  command is the same as the syntax of bootm command.
  
  +Note, defining the CONFIG_SUPPORT_INITRD_RAW allows user to supply
  +kernel with raw initrd images. The syntax is slightly different, the
  +address of the initrd must be augmented by it's size, in the following
  +format: initrd addres:initrd size.
  +
  
   Standalone HOWTO:
   =
  
  diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
  index b49d4f7..2f9b214 100644
  --- a/common/cmd_bootm.c
  +++ b/common/cmd_bootm.c
  @@ -1634,9 +1634,11 @@ static int do_bootz(cmd_tbl_t *cmdtp, int flag,
  int argc, char * const argv[]) U_BOOT_CMD(
  
 bootz,  CONFIG_SYS_MAXARGS, 1,  do_bootz,
 boot Linux zImage image from memory,
  
  -  [addr [initrd] [fdt]]\n- boot Linux zImage stored in memory\n
  +  [addr [initrd[:size]] [fdt]]\n
  +  - boot Linux zImage stored in memory\n
  
 \tThe argument 'initrd' is optional and specifies the address\n
  
  -  \tof the initrd in memory.\n
  +  \tof the initrd in memory. The optional argument ':size' allows\n
  +  \tspecifying the size of RAW initrd.\n
  
   #if defined(CONFIG_OF_LIBFDT)
   
 \tWhen booting a Linux kernel which requires a flat device-tree\n
 \ta third argument is required which is the address of the\n
  
  diff --git a/common/image.c b/common/image.c
  index 77ca6e4..2a25f5f 100644
  --- a/common/image.c
  +++ b/common/image.c
  @@ -796,6 +796,7 @@ int boot_get_ramdisk(int argc, char * const argv[],
  bootm_headers_t *images, ulong rd_addr, rd_load;
  
 ulong rd_data, rd_len;
 const image_header_t *rd_hdr;
  
  +  char *end;
  
   #if defined(CONFIG_FIT)
   
 void*fit_hdr;
 const char  *fit_uname_config = NULL;
  
  @@ -989,9 +990,17 @@ int boot_get_ramdisk(int argc, char * const argv[],
  bootm_headers_t *images, break;
  
   #endif
   
 default:
  -  puts(Wrong Ramdisk Image Format\n);
  -  rd_data = rd_len = rd_load = 0;
  -  return 1;
  +#ifdef CONFIG_SUPPORT_RAW_INITRD
  +  if (argc = 3  (end = strchr(argv[2], ':'))) {
  +  rd_len = simple_strtoul(++end, NULL, 16);
  +  rd_data = rd_addr;
  +  } else
  +#endif
  +  {
  +  puts(Wrong Ramdisk Image Format\n);
  +  rd_data = rd_len = rd_load = 0;
  +  return 1;
  +  }
  
 }
 
 } else if (images-legacy_hdr_valid 
 
 image_check_type(images-legacy_hdr_os_copy,
  
  Best regards,
  Marek Vasut

Best regards,
Marek Vasut
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Question: Installing U-Boot on the Karo TX25

2012-03-22 Thread Züger Martin
Hi everybody

My name is Martin and I'm new to this mailing list. I hope this is the right 
place to ask my question.
I'd like to install U-Boot on a Karo TX25. From the Denx FTP server I've 
downloaded the 2011.12 release of U-Boot and compiled it using the 
arm-linux-gnueabi-gcc (4.4.5) from Debian:
  $ make tx25_config
  $ CROSS_COMPILE=arm-linux-gnueabi- make all
After compiling I've downloaded the u-boot.bin file to the board using the 
pre-installed RedBoot:
  RedBoot load -r -b 0x8010 -h 192.168.1.101 u-boot.bin
  Using default protocol (TFTP)
  Raw file loaded 0x8010-0x80129617, assumed entry at 0x8010
Finally I tried to start U-Boot directly from RAM:
  RedBoot exec
  Using base address 0x8010 and length 0x00029618
After that, the board (or at least the serial connection) stops working. I also 
tried the same with the pre-compiled binaries from here: 
http://www.denx-cs.de/sites/all/files/tx25.zip but with the same result.

May someone can explain me, how to download U-Boot to the Karo TX25 using the 
already installed RedBoot and execute it directly? Is this even possible? My 
final target is to replace RedBoot with U-Boot, so I'd like to write U-Boot to 
flash in a second step. Does I've to use the u-boot-nand.bin file instead of 
u-boot.bin for this?

Thanks!

Best regards,
Martin Zueger
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] AT91RM9200DK Support

2012-03-22 Thread Jordan Bouyat

Hi !
I have an AT91RM9200DK board and I want tu upgrade U-Boot (I have the  
0.3.2 version) on it.

But the AT91RM9200DK is no longer supported, could someone explain me why ?
The commit message is here :  
http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=1c8575225825b507573d0cac9c51b3611949ba01

Is there any solution tu upgrade U-Boot ?

Thank you !

Jordan.



___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] exporting the U-Boot functions to standalone application

2012-03-22 Thread Haneef Mohamed
Hi,

I wanted to make use of the uboot command functions like do_bdinfo and do_mmc. 

when I used do_bdinfo(NULL, 0, 0,NULL);in application program after linking 
common/cmd_bdinfo.o in make file it worked.

but when I did the same for do_mmc i got a lot of linking errors.

So after looking arround in common/main.c what i did was i made use of  cmd 
=mmc rescan; run_command(cmd,0); 
but no output at all. 

I read the README.standalone but of no use could some one please let me know 
how should i go about it. 

Thanks,
Mohamed Haneef M.A
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] AT91RM9200DK Support

2012-03-22 Thread Andreas Bießmann
Hi,

On 22.03.2012 12:44, Jordan Bouyat wrote:
 Hi !
 I have an AT91RM9200DK board and I want tu upgrade U-Boot (I have the
 0.3.2 version) on it.
 But the AT91RM9200DK is no longer supported, could someone explain me why ?
 The commit message is here :
 http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=1c8575225825b507573d0cac9c51b3611949ba01
 
 Is there any solution tu upgrade U-Boot ?

just do the migration job ...

The at91rm9200ek is still in tree (but currently not fully functional).
There are some issues with the older atmel emac driver is not working
with D-cache enabled (see
http://mid.gmane.org/1314768973-94711-1-git-send-email-andreas.de...@googlemail.com
). I haven't had time to investigate that issue further but will do
sometimes this year ;)
Beside that at91rm9200ek should work, this could be a good starting
point for you.

best regards

Andreas Bießmann
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Question: Installing U-Boot on the Karo TX25

2012-03-22 Thread Stefano Babic
On 22/03/2012 09:08, Züger Martin wrote:
 Hi everybody
 
 My name is Martin and I'm new to this mailing list. I hope this is the right 
 place to ask my question.
 I'd like to install U-Boot on a Karo TX25. From the Denx FTP server I've 
 downloaded the 2011.12 release of U-Boot and compiled it using the 
 arm-linux-gnueabi-gcc (4.4.5) from Debian:
   $ make tx25_config
   $ CROSS_COMPILE=arm-linux-gnueabi- make all
 After compiling I've downloaded the u-boot.bin file to the board using the 
 pre-installed RedBoot:

Wait - as far as I know, the tx25 boots from NAND, and you need also the
SPL part to replace Redboot.

   RedBoot load -r -b 0x8010 -h 192.168.1.101 u-boot.bin
   Using default protocol (TFTP)
   Raw file loaded 0x8010-0x80129617, assumed entry at 0x8010
 Finally I tried to start U-Boot directly from RAM:

u-boot for TX25 is linked at address 0x8120, not 0x8010. Try
with the correct address.

 
 May someone can explain me, how to download U-Boot to the Karo TX25 using the 
 already installed RedBoot and execute it directly? Is this even possible? My 
 final target is to replace RedBoot with U-Boot, so I'd like to write U-Boot 
 to flash in a second step. Does I've to use the u-boot-nand.bin file instead 
 of u-boot.bin for this?

The correct way (but one-way if you have not a JTAG debugger) is to
replace the redboot code in NAND with u-boot, that is u-boot-nand.bin.
But try with the correct address, if it works you have all u-boot
commands to store u-boot itself in NAND.

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] tegra: Specify debugging serial port at boot.

2012-03-22 Thread Wolfgang Denk
Dear Simon Glass,

In message CAPnjgZ1u8paSeKxozWz1D5YoJaJ2um_q0dWQo=k5_+hedkh...@mail.gmail.com 
you wrote:
 
  OK, so revert that commit?
 
  It hasn't hit mainline yet, or has it?
 
 Yes, it is there, sorry.

Which commit is that?

  This is why initializing the serial console has always been one of the
  very, very first initialization steps in U-Boot.
 
 So if actually you want a pre-console panic() to be silent then that's fine.

I do not _want_ it.

This is a simple matter of facts that cannot be avoided.  If we cannot
initialize the consolem then we cannot print anything.

 It's a little unfriendly though - so would you be interested in
 keeping board_pre_console_putc() around if we could solve this
 entirely with code in there? It turns out that Tegra has a setting for
 console UART in the hardware parameters that we can access.( I won't
 ask you about how to handle a panic() in SPL yet).

If you can initialize the console in a way that allows sending
characters, then just do this - do this as part of the recular
fconsole init code, so we do have a working console, and we do not
need ay pre-console stuff.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
It is common sense to take a method and try it. If it fails, admit it
frankly and try another. But above all, try something.
  - Franklin D. Roosevelt
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] BOOT: Add RAW ramdisk support to bootz

2012-03-22 Thread Wolfgang Denk
Dear Marek,

In message 201203221345.55217.marek.va...@gmail.com you wrote:
 
  Sub images will have an @ in the name. I thought about parsing for that,
  but DT has no requirement that you have to have an @ in the node name
  and it's not clear to me if u-boot convention requires it or not. Then I
  came up with the current patch, so it doesn't matter.
 
 Dear Wolfgang Denk, are we OK with applying this and bootz patch please? Can 
 we 
 get it into .04 release please?

this - which patch version exactly are you referring to?

In any case this has been submitted long after the close of the MW, so
this is stuff for next.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Today is the yesterday you worried about tomorrow.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] exporting the U-Boot functions to standalone application

2012-03-22 Thread Wolfgang Denk
Dear Haneef Mohamed,

In message 1332421701.4976.yahoomail...@web193301.mail.sg3.yahoo.com you 
wrote:
 
 I wanted to make use of the uboot command functions like do_bdinfo and 
 do_mmc. 

You cannot do this in standalone code.

If you want to access U-Boot features in access to the exported
(intentionally very narrow) interface, then link your code with
U-Boot.  Standalone applications cannot do that.

 I read the README.standalone but of no use could some one please let
 me know how should i go about it. 

Link your code with the U-Boot image.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Murder is contrary to the laws of man and God.
-- M-5 Computer, The Ultimate Computer, stardate 4731.3
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/2] cmd_fat: add FAT write command

2012-03-22 Thread Maximilian Schwerin
Once CONFIG_FAT_WRITE is defined, users can invoke 'fatwrite' command
that saves data in RAM as a FAT file.

This patch was originally part of

http://article.gmane.org/gmane.comp.boot-loaders.u-boot/121847

Reported-by: Donggeun Kim dg77@samsung.com
Cc: Kyungmin Park kyungmin.p...@samsung.com
---
 README   |8 +-
 common/cmd_fat.c |   57 ++
 2 files changed, 63 insertions(+), 2 deletions(-)

diff --git a/README b/README
index 1f8bd20..fe077b9 100644
--- a/README
+++ b/README
@@ -1250,8 +1250,12 @@ The following options need to be configured:
 
 - FAT(File Allocation Table) filesystem write function support:
CONFIG_FAT_WRITE
-   Support for saving memory data as a file
-   in FAT formatted partition
+
+   Define this to enable support for saving memory data as a
+   file in FAT formatted partition.
+
+   This will also enable the command fatwrite enabling the
+   user to write files to FAT.
 
 - Keyboard Support:
CONFIG_ISA_KEYBOARD
diff --git a/common/cmd_fat.c b/common/cmd_fat.c
index 0220494..fef1c82 100644
--- a/common/cmd_fat.c
+++ b/common/cmd_fat.c
@@ -184,3 +184,60 @@ U_BOOT_CMD(
interface dev[:part]\n
- print information about filesystem from 'dev' on 'interface'
 );
+
+#ifdef CONFIG_FAT_WRITE
+static int do_fat_fswrite(cmd_tbl_t *cmdtp, int flag,
+   int argc, char * const argv[])
+{
+   long size;
+   unsigned long addr;
+   unsigned long count;
+   block_dev_desc_t *dev_desc = NULL;
+   int dev = 0;
+   int part = 1;
+   char *ep;
+
+   if (argc  5)
+   return cmd_usage(cmdtp);
+
+   dev = (int)simple_strtoul(argv[2], ep, 16);
+   dev_desc = get_dev(argv[1], dev);
+   if (dev_desc == NULL) {
+   puts(\n** Invalid boot device **\n);
+   return 1;
+   }
+   if (*ep) {
+   if (*ep != ':') {
+   puts(\n** Invalid boot device, use `dev[:part]' **\n);
+   return 1;
+   }
+   part = (int)simple_strtoul(++ep, NULL, 16);
+   }
+   if (fat_register_device(dev_desc, part) != 0) {
+   printf(\n** Unable to use %s %d:%d for fatwrite **\n,
+   argv[1], dev, part);
+   return 1;
+   }
+   addr = simple_strtoul(argv[3], NULL, 16);
+   count = simple_strtoul(argv[5], NULL, 16);
+
+   size = file_fat_write(argv[4], (void *)addr, count);
+   if (size == -1) {
+   printf(\n** Unable to write \%s\ from %s %d:%d **\n,
+   argv[4], argv[1], dev, part);
+   return 1;
+   }
+
+   printf(%ld bytes write\n, size);
+
+   return 0;
+}
+
+U_BOOT_CMD(
+   fatwrite,   6,  0,  do_fat_fswrite,
+   write file into a dos filesystem,
+   interface dev[:part] addr filename bytes\n
+   - write file 'filename' from the address 'addr' in RAM\n
+ to 'dev' on 'interface'
+);
+#endif
-- 
1.7.0.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] exporting the U-Boot functions to standalone application

2012-03-22 Thread Haneef Mohamed


Dear wolfgang Denk,

How do we link with u-boot? i did not understand.


Thanks and Regards,
Mohamed Haneef M.A


From: Wolfgang Denk w...@denx.de
To: Haneef Mohamed haneef_ker...@yahoo.in 
Cc: u-boot@lists.denx.de u-boot@lists.denx.de 
Sent: Thursday, 22 March 2012 7:06 PM
Subject: Re: [U-Boot] exporting the U-Boot functions to standalone application

Dear Haneef Mohamed,

In message 1332421701.4976.yahoomail...@web193301.mail.sg3.yahoo.com you 
wrote:
 
 I wanted to make use of the uboot command functions like do_bdinfo and 
 do_mmc. 

You cannot do this in standalone code.

If you want to access U-Boot features in access to the exported
(intentionally very narrow) interface, then link your code with
U-Boot.  Standalone applications cannot do that.

 I read the README.standalone but of no use could some one please let
 me know how should i go about it. 

Link your code with the U-Boot image.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Murder is contrary to the laws of man and God.
    -- M-5 Computer, The Ultimate Computer, stardate 4731.3
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2] README.mx28: add

2012-03-22 Thread Wolfgang Denk
Dear Otavio Salvador,

please keep the ML on Cc:

In message cap9odkq+t+qapq+gmhfpy6b4vzyfwo0pje652t1s_+fctvd...@mail.gmail.com 
you wrote:
 
 On Wed, Mar 21, 2012 at 12:38, Wolfgang Denk w...@denx.de wrote:
  Can we please split this document in a generic and board specific
  part?  For now, while there are only very few boards, this can
  probably be done in a single document.
 
 I think it makes harder for user to gasp the need information if it is
 splitted on many files; a single file has the same problem as the
 naming can not imply the board or reference he is looking at. I had
 this problem and took me some time to find m28 as a base documentation
 to my work on mx28evk.

We are not talking about many files - just two files would be
relevant for a specific board: one with the common stuff, and one
with the board specific stuff.

Copying the same stuff again and again and again is definitely a much
bigger problem.


Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Those who do not  understand  Unix  are  condemned  to  reinvent  it,
poorly.  - Henry Spencer, University of Toronto Unix hack
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] tegra: Specify debugging serial port at boot.

2012-03-22 Thread Simon Glass
Hi Wolfgang,

On Thu, Mar 22, 2012 at 6:25 AM, Wolfgang Denk w...@denx.de wrote:
 Dear Simon Glass,

 In message 
 CAPnjgZ1u8paSeKxozWz1D5YoJaJ2um_q0dWQo=k5_+hedkh...@mail.gmail.com you 
 wrote:

  OK, so revert that commit?
 
  It hasn't hit mainline yet, or has it?

 Yes, it is there, sorry.

 Which commit is that?

It was 295d3942: Add board_pre_console_putc to deal with early console output

The discussion threads are around here:

http://lists.denx.de/pipermail/u-boot/2011-August/099620.html


If you are looking for a revert :-)

http://patchwork.ozlabs.org/patch/147617/


  This is why initializing the serial console has always been one of the
  very, very first initialization steps in U-Boot.

 So if actually you want a pre-console panic() to be silent then that's fine.

 I do not _want_ it.

 This is a simple matter of facts that cannot be avoided.  If we cannot
 initialize the consolem then we cannot print anything.

 It's a little unfriendly though - so would you be interested in
 keeping board_pre_console_putc() around if we could solve this
 entirely with code in there? It turns out that Tegra has a setting for
 console UART in the hardware parameters that we can access.( I won't
 ask you about how to handle a panic() in SPL yet).

 If you can initialize the console in a way that allows sending
 characters, then just do this - do this as part of the recular
 fconsole init code, so we do have a working console, and we do not
 need ay pre-console stuff.


OK, let's leave it for now, I don't see a way of achieving this in the
case of an early panic.

Regards,
Simon

 Best regards,

 Wolfgang Denk

 --
 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: w...@denx.de
 It is common sense to take a method and try it. If it fails, admit it
 frankly and try another. But above all, try something.
                                              - Franklin D. Roosevelt
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Patchwork housekeeping

2012-03-22 Thread Tom Rini

On 03/21/2012 07:58 PM, Graeme Russ wrote:

Hello Custodians and Mailing List Aficionados,

I don't know if anyone has noticed, but patchwork is starting to collect
a rather large amount of cruft.


Do we, or do we not have the magic update patchwork when the master 
repo gets a patch hook setup?  It's not fool-proof, but it works well.


--
Tom
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2] README.mx28: add

2012-03-22 Thread Otavio Salvador
On Thu, Mar 22, 2012 at 12:17, Wolfgang Denk w...@denx.de wrote:
 Dear Otavio Salvador,

 please keep the ML on Cc:

My fault :)

 In message 
 cap9odkq+t+qapq+gmhfpy6b4vzyfwo0pje652t1s_+fctvd...@mail.gmail.com you 
 wrote:

 On Wed, Mar 21, 2012 at 12:38, Wolfgang Denk w...@denx.de wrote:
  Can we please split this document in a generic and board specific
  part?  For now, while there are only very few boards, this can
  probably be done in a single document.

 I think it makes harder for user to gasp the need information if it is
 splitted on many files; a single file has the same problem as the
 naming can not imply the board or reference he is looking at. I had
 this problem and took me some time to find m28 as a base documentation
 to my work on mx28evk.

 We are not talking about many files - just two files would be
 relevant for a specific board: one with the common stuff, and one
 with the board specific stuff.

 Copying the same stuff again and again and again is definitely a much
 bigger problem.

I see pros and cons on this; since it is taking too much time and I do
have a hard deadline to meet I'll leave to someone work on this later.

-- 
Otavio Salvador                             O.S. Systems
E-mail: ota...@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] tegra: Specify debugging serial port at boot.

2012-03-22 Thread Doug Anderson
Stephen,


On Wed, Mar 21, 2012 at 9:49 AM, Stephen Warren swar...@wwwdotorg.org wrote:
 I was under the impression that earlyprintk was a boolean option, and
 didn't take any arguments. But, a quick grep shows that some archs do
 allow it to take an argument. The ARM code that handles the option
 doesn't process the argument at present as far as I can tell, although
 many ARM defconfigs do provide one. I'll see if it's possible to rework
 the Tegra kernel code to use any earlyprintk argument.

If you're going to look at getting earlyprintk able to take arguments,
this bug (and the associated links) might be of interest to you:
    http://code.google.com/p/chromium-os/issues/detail?id=19185

It would certainly be nice to get earlyprintk able to take arguments
on ARM in the kernel.  I didn't originally go down that route because
it seemed like there were going to be lots of yaks to shave and it
would involve changes to some of the core Linux ARM boot code.  It
also didn't solve the problem where the ARM kernel wants to do prints
before translation (as Olof points out in in the discussion thread
linked above).  ...but it does seem to be the better route.


 I doubt it will be possible to do this in the ARM zImage decompressor
 though.

The decompressing part of the kernel wouldn't come for free without
a lot of work, but maybe the right answer is to leverage u-boot's
ability to decompress the kernel and stop using the zImage anyway.
That would make Simon happy, I think.


-Doug
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] USB: ehci-mx6: Add proper IO accessors

2012-03-22 Thread Stefano Babic
On 19/03/2012 23:36, Fabio Estevam wrote:
 Add proper IO accessors for mx6 usb registers.
 
 Signed-off-by: Fabio Estevam fabio.este...@freescale.com
 ---
 This patch depends on [PATCH v5] mx6: Read silicon revision from register
 
  drivers/usb/host/ehci-mx6.c |   13 -
  1 files changed, 4 insertions(+), 9 deletions(-)
 

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] BOOT: Add RAW ramdisk support to bootz

2012-03-22 Thread Marek Vasut
Dear Wolfgang Denk,

 Dear Marek,
 
 In message 201203221345.55217.marek.va...@gmail.com you wrote:
   Sub images will have an @ in the name. I thought about parsing for
   that, but DT has no requirement that you have to have an @ in the node
   name and it's not clear to me if u-boot convention requires it or not.
   Then I came up with the current patch, so it doesn't matter.
  
  Dear Wolfgang Denk, are we OK with applying this and bootz patch please?
  Can we get it into .04 release please?
 
 this - which patch version exactly are you referring to?

Revision V6.
 
 In any case this has been submitted long after the close of the MW, so
 this is stuff for next.

I believe this patch is quite important to the linux-arm people and early 
adoption of this stuff would be very beneficial. Also, there are other patches 
that were applied after the MW was closed. Finally, this patch started long 
before .04 release cycle.

 
 Best regards,
 
 Wolfgang Denk

Best regards,
Marek Vasut
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [RFC v0 0/11]: Add configs/omap3_common.h

2012-03-22 Thread Tom Rini
Hey all,

Here's something I've talked about a bit before.  This series adds
include/configs/omap3_common.h and makes all CONFIG_OMAP34XX boards use
it.  This particular round of posting doesn't directly apply as I'm
working off of a series of cleanups that I'll post once I'm sure I don't
find any others from doing this (unused CONFIG options) general series.
What I'm really looking for is feedback on the implementation, namely
what I lay out in the first patch of a section to set before using
omap3_common.h, including, and a section for after omap3_common.h.  The
series isn't nearly complete but introduces at least one example of a
our board isn't like all the others in each of the sections.

I think the diffstat illustrates why we need to do something here.

 include/configs/am3517_crane.h |   91 --
 include/configs/am3517_evm.h   |   90 --
 include/configs/cm_t35.h   |   99 
 include/configs/devkit8000.h   |   87 -
 include/configs/dig297.h   |  100 -
 include/configs/igep00x0.h |   78 ---
 include/configs/mcx.h  |   93 ---
 include/configs/mt_ventoux.h   |   13 +++
 include/configs/omap3_beagle.h |   97 
 include/configs/omap3_common.h |  131 +
 include/configs/omap3_evm.h|   19 
 include/configs/omap3_evm_common.h |   75 +++---
 include/configs/omap3_evm_quick_mmc.h  |   13 +--
 include/configs/omap3_evm_quick_nand.h |8 +-
 include/configs/omap3_logic.h  |  103 -
 include/configs/omap3_mvblx.h  |   93 ++-
 include/configs/omap3_overo.h  |   94 ---
 include/configs/omap3_pandora.h|   94 ---
 include/configs/omap3_sdp3430.h|  107 ++
 include/configs/omap3_zoom1.h  |   94 ---
 include/configs/omap3_zoom2.h  |   83 
 include/configs/tam3517-common.h   |   89 --
 include/configs/tricorder.h|   86 -
 include/configs/twister.h  |   14 +++
 24 files changed, 486 insertions(+), 1365 deletions(-)

-- 
Tom

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [RFC v0 01/11] omap3+: Introduce configs/omap3_common.h

2012-03-22 Thread Tom Rini
This is a common file for OMAP3 (and OMAP3-alike) platforms to have
default, configurable when needed values and choices placed.  All users
of this file now have a section for providing their overrides (when the
defaults are not wanted), this file, and then a place to opt-out of
choices this file has made.

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |   19 +-
 include/configs/am3517_evm.h   |   20 ++-
 include/configs/cm_t35.h   |   22 +++--
 include/configs/devkit8000.h   |   24 --
 include/configs/dig297.h   |   22 +++--
 include/configs/igep00x0.h |   19 --
 include/configs/mcx.h  |   24 +++
 include/configs/mt_ventoux.h   |   13 ++
 include/configs/omap3_beagle.h |   19 +-
 include/configs/omap3_common.h |   40 
 include/configs/omap3_evm.h|3 --
 include/configs/omap3_evm_common.h |   15 ---
 include/configs/omap3_evm_quick_mmc.h  |7 +++--
 include/configs/omap3_evm_quick_nand.h |7 +++--
 include/configs/omap3_logic.h  |   20 ++-
 include/configs/omap3_mvblx.h  |   23 +++---
 include/configs/omap3_overo.h  |   19 +-
 include/configs/omap3_pandora.h|   19 +-
 include/configs/omap3_sdp3430.h|   38 --
 include/configs/omap3_zoom1.h  |   19 +-
 include/configs/omap3_zoom2.h  |   19 +-
 include/configs/tam3517-common.h   |   21 ++--
 include/configs/tricorder.h|   23 --
 include/configs/twister.h  |   14 +++
 24 files changed, 315 insertions(+), 154 deletions(-)
 create mode 100644 include/configs/omap3_common.h

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index 71321f3..f58fede 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -26,16 +26,21 @@
 #define __CONFIG_H
 
 /*
- * High Level Configuration Options
+ * Values that differ from platform defaults or are unspecified.
  */
-#define CONFIG_OMAP1   /* in a TI OMAP core */
-#define CONFIG_OMAP34XX1   /* which is a 34XX */
-#define CONFIG_OMAP3_AM3517CRANE   1   /* working with CRANEBOARD */
+#define CONFIG_EMIF4   /* The chip has EMIF4 controller */
 
-#define CONFIG_EMIF4   /* The chip has EMIF4 controller */
+/* Platform defaults */
+#include configs/omap3_common.h
 
-#include asm/arch/cpu.h  /* get chip and board defs */
-#include asm/arch/omap3.h
+/*
+ * Override the common platform file choices.
+ */
+
+/*
+ * Other configuration options
+ */
+#define CONFIG_OMAP3_AM3517CRANE   /* working with CRANEBOARD */
 
 /*
  * Display CPU and Board information
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index bbd19de..d24ad01 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -26,16 +26,22 @@
 #define __CONFIG_H
 
 /*
- * High Level Configuration Options
+ * Values that differ from platform defaults or are unspecified.
  */
-#define CONFIG_OMAP1   /* in a TI OMAP core */
-#define CONFIG_OMAP34XX1   /* which is a 34XX */
-#define CONFIG_OMAP3_AM3517EVM 1   /* working with AM3517EVM */
+#define CONFIG_EMIF4   /* The chip has EMIF4 controller */
 
-#define CONFIG_EMIF4   /* The chip has EMIF4 controller */
+/* Platform defaults */
+#include configs/omap3_common.h
+
+/*
+ * Override the common platform file choices.
+ */
+
+/*
+ * Other configuration options
+ */
+#define CONFIG_OMAP3_AM3517EVM /* working with AM3517EVM */
 
-#include asm/arch/cpu.h  /* get chip and board defs */
-#include asm/arch/omap3.h
 
 /*
  * Display CPU and Board information
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index fe91c10..fe214eb 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -33,18 +33,24 @@
 #define __CONFIG_H
 
 /*
- * High Level Configuration Options
+ * Values that differ from platform defaults or are unspecified.
  */
-#define CONFIG_OMAP/* in a TI OMAP core */
-#define CONFIG_OMAP34XX/* which is a 34XX */
-#define CONFIG_CM_T3X  /* working with CM-T35 and CM-T3730 */
+#define CONFIG_SDRC/* The chip has SDRC controller */
 
-#define CONFIG_SYS_TEXT_BASE   0x80008000
+/* Platform defaults */
+#include configs/omap3_common.h
+
+/*
+ * Override the common platform file choices.
+ */
 
-#define CONFIG_SDRC/* The chip has SDRC controller */
+/*
+ * Other configuration options
+ */
+#define CONFIG_CM_T3X  /* working with CM-T35 and CM-T3730 */
+
+#define CONFIG_SYS_TEXT_BASE   0x80008000
 
-#include 

[U-Boot] [RFC v0 02/11] omap3: Move DISPLAY_CPUINFO / DISPLAY_BOARDINFO to common

2012-03-22 Thread Tom Rini
All boards define (and get generic functions for) these, move to
omap3_common.h

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h   |6 --
 include/configs/am3517_evm.h |7 ---
 include/configs/cm_t35.h |7 ---
 include/configs/devkit8000.h |5 -
 include/configs/dig297.h |6 --
 include/configs/igep00x0.h   |6 --
 include/configs/mcx.h|6 --
 include/configs/omap3_beagle.h   |6 --
 include/configs/omap3_common.h   |4 
 include/configs/omap3_evm.h  |4 
 include/configs/omap3_logic.h|7 ---
 include/configs/omap3_mvblx.h|7 ---
 include/configs/omap3_overo.h|6 --
 include/configs/omap3_pandora.h  |6 --
 include/configs/omap3_sdp3430.h  |3 ---
 include/configs/omap3_zoom1.h|6 --
 include/configs/omap3_zoom2.h|6 --
 include/configs/tam3517-common.h |6 --
 include/configs/tricorder.h  |4 
 19 files changed, 4 insertions(+), 104 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index f58fede..8a1bb0a 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -42,12 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517CRANE   /* working with CRANEBOARD */
 
-/*
- * Display CPU and Board information
- */
-#define CONFIG_DISPLAY_CPUINFO 1
-#define CONFIG_DISPLAY_BOARDINFO   1
-
 /* Clock Defines */
 #define V_OSCK 2600/* Clock output from T2 */
 #define V_SCLK (V_OSCK  1)
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index d24ad01..2a442c7 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -42,13 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517EVM /* working with AM3517EVM */
 
-
-/*
- * Display CPU and Board information
- */
-#define CONFIG_DISPLAY_CPUINFO 1
-#define CONFIG_DISPLAY_BOARDINFO   1
-
 /* Clock Defines */
 #define V_OSCK 2600/* Clock output from T2 */
 #define V_SCLK (V_OSCK  1)
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index fe214eb..1061564 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -51,13 +51,6 @@
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-
-/*
- * Display CPU and Board information
- */
-#define CONFIG_DISPLAY_CPUINFO
-#define CONFIG_DISPLAY_BOARDINFO
-
 /* Clock Defines */
 #define V_OSCK 2600/* Clock output from T2 */
 #define V_SCLK (V_OSCK  1)
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index f1ece51..98eeb5e 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -56,11 +56,6 @@
  */
 #define CONFIG_SYS_TEXT_BASE   0x8010
 
-
-/* Display CPU and Board information */
-#define CONFIG_DISPLAY_CPUINFO 1
-#define CONFIG_DISPLAY_BOARDINFO   1
-
 /* Clock Defines */
 #define V_OSCK 2600/* Clock output from T2 
*/
 #define V_SCLK (V_OSCK  1)
diff --git a/include/configs/dig297.h b/include/configs/dig297.h
index 5243b6a..3820ecb 100644
--- a/include/configs/dig297.h
+++ b/include/configs/dig297.h
@@ -59,12 +59,6 @@
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
 
-/*
- * Display CPU and Board information
- */
-#define CONFIG_DISPLAY_CPUINFO
-#define CONFIG_DISPLAY_BOARDINFO
-
 /* Clock Defines */
 #define V_OSCK 2600/* Clock output from T2 */
 #define V_SCLK (V_OSCK  1)
diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
index 37284df..8e8082d 100644
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -39,12 +39,6 @@
  * Other configuration options
  */
 
-/*
- * Display CPU and Board information
- */
-#define CONFIG_DISPLAY_CPUINFO 1
-#define CONFIG_DISPLAY_BOARDINFO   1
-
 /* Clock Defines */
 #define V_OSCK 2600/* Clock output from T2 */
 #define V_SCLK (V_OSCK  1)
diff --git a/include/configs/mcx.h b/include/configs/mcx.h
index 6a6e0ec..0f3e427 100644
--- a/include/configs/mcx.h
+++ b/include/configs/mcx.h
@@ -51,12 +51,6 @@
  */
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-/*
- * Display CPU and Board information
- */
-#define CONFIG_DISPLAY_CPUINFO
-#define CONFIG_DISPLAY_BOARDINFO
-
 /* Clock Defines */
 #define V_OSCK 2600/* Clock output from T2 */
 #define V_SCLK (V_OSCK  1)
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 21e4b01..aab371e 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -45,12 +45,6 @@
  */
 #define CONFIG_OMAP3_BEAGLE/* working with BEAGLE */
 
-/*
- * Display CPU and Board information
- */
-#define CONFIG_DISPLAY_CPUINFO 1

[U-Boot] [RFC v0 03/11] omap3: Move V_OSCK / V_SCLK to omap3_common.h

2012-03-22 Thread Tom Rini
We provide the common values for these clocks here and allow boards to
provide their own values if needed.

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |4 
 include/configs/am3517_evm.h   |4 
 include/configs/cm_t35.h   |4 
 include/configs/devkit8000.h   |4 
 include/configs/dig297.h   |5 -
 include/configs/igep00x0.h |4 
 include/configs/mcx.h  |4 
 include/configs/omap3_beagle.h |4 
 include/configs/omap3_common.h |8 
 include/configs/omap3_evm_common.h |6 --
 include/configs/omap3_logic.h  |4 
 include/configs/omap3_mvblx.h  |4 
 include/configs/omap3_overo.h  |4 
 include/configs/omap3_pandora.h|4 
 include/configs/omap3_sdp3430.h|4 
 include/configs/omap3_zoom1.h  |4 
 include/configs/omap3_zoom2.h  |4 
 include/configs/tam3517-common.h   |4 
 include/configs/tricorder.h|4 
 19 files changed, 8 insertions(+), 75 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index 8a1bb0a..7dc2eee 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -42,10 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517CRANE   /* working with CRANEBOARD */
 
-/* Clock Defines */
-#define V_OSCK 2600/* Clock output from T2 */
-#define V_SCLK (V_OSCK  1)
-
 #undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 2a442c7..3a6daa4 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -42,10 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517EVM /* working with AM3517EVM */
 
-/* Clock Defines */
-#define V_OSCK 2600/* Clock output from T2 */
-#define V_SCLK (V_OSCK  1)
-
 #undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 1061564..6724527 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -51,10 +51,6 @@
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-/* Clock Defines */
-#define V_OSCK 2600/* Clock output from T2 */
-#define V_SCLK (V_OSCK  1)
-
 #undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index 98eeb5e..e6c9859 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -56,10 +56,6 @@
  */
 #define CONFIG_SYS_TEXT_BASE   0x8010
 
-/* Clock Defines */
-#define V_OSCK 2600/* Clock output from T2 
*/
-#define V_SCLK (V_OSCK  1)
-
 #undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
diff --git a/include/configs/dig297.h b/include/configs/dig297.h
index 3820ecb..e0a518c 100644
--- a/include/configs/dig297.h
+++ b/include/configs/dig297.h
@@ -58,11 +58,6 @@
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-
-/* Clock Defines */
-#define V_OSCK 2600/* Clock output from T2 */
-#define V_SCLK (V_OSCK  1)
-
 #undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
index 8e8082d..c4feba2 100644
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -39,10 +39,6 @@
  * Other configuration options
  */
 
-/* Clock Defines */
-#define V_OSCK 2600/* Clock output from T2 */
-#define V_SCLK (V_OSCK  1)
-
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
diff --git a/include/configs/mcx.h b/include/configs/mcx.h
index 0f3e427..02793e5 100644
--- a/include/configs/mcx.h
+++ b/include/configs/mcx.h
@@ -51,10 +51,6 @@
  */
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-/* Clock Defines */
-#define V_OSCK 2600/* Clock output from T2 */
-#define V_SCLK (V_OSCK  1)
-
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index aab371e..a372646 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -45,10 +45,6 @@
  */
 #define CONFIG_OMAP3_BEAGLE/* working with BEAGLE */
 
-/* Clock Defines */
-#define V_OSCK 2600/* Clock output from T2 */
-#define V_SCLK (V_OSCK  1)
-
 #undef CONFIG_USE_IRQ  

[U-Boot] [RFC v0 04/11] omap3: Move '#undef CONFIG_USE_IRQ' to omap3_common.h

2012-03-22 Thread Tom Rini
Move this common un-setting over to omap3_common.h

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |1 -
 include/configs/am3517_evm.h   |1 -
 include/configs/cm_t35.h   |1 -
 include/configs/devkit8000.h   |1 -
 include/configs/dig297.h   |5 -
 include/configs/omap3_beagle.h |1 -
 include/configs/omap3_common.h |3 +++
 include/configs/omap3_evm_common.h |2 --
 include/configs/omap3_logic.h  |2 --
 include/configs/omap3_mvblx.h  |1 -
 include/configs/omap3_overo.h  |1 -
 include/configs/omap3_pandora.h|1 -
 include/configs/omap3_sdp3430.h|1 -
 include/configs/omap3_zoom1.h  |1 -
 include/configs/omap3_zoom2.h  |1 -
 include/configs/tam3517-common.h   |1 -
 include/configs/tricorder.h|1 -
 17 files changed, 3 insertions(+), 22 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index 7dc2eee..f113afc 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -42,7 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517CRANE   /* working with CRANEBOARD */
 
-#undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 3a6daa4..51cab37 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -42,7 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517EVM /* working with AM3517EVM */
 
-#undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 6724527..3a151fc 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -51,7 +51,6 @@
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-#undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_OF_LIBFDT   1
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index e6c9859..972940f 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -56,7 +56,6 @@
  */
 #define CONFIG_SYS_TEXT_BASE   0x8010
 
-#undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
diff --git a/include/configs/dig297.h b/include/configs/dig297.h
index e0a518c..ca17d6e 100644
--- a/include/configs/dig297.h
+++ b/include/configs/dig297.h
@@ -58,7 +58,6 @@
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-#undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
@@ -260,10 +259,6 @@
  * The stack sizes are set up in start.S using the settings below
  */
 #define CONFIG_STACKSIZE   (128  10) /* regular stack 128 KiB */
-#ifdef CONFIG_USE_IRQ
-#define CONFIG_STACKSIZE_IRQ   (4  10)   /* IRQ stack 4 KiB */
-#define CONFIG_STACKSIZE_FIQ   (4  10)   /* FIQ stack 4 KiB */
-#endif
 
 /*---
  * Physical Memory Map
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index a372646..eefada2 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -45,7 +45,6 @@
  */
 #define CONFIG_OMAP3_BEAGLE/* working with BEAGLE */
 
-#undef CONFIG_USE_IRQ  /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_OF_LIBFDT   1
diff --git a/include/configs/omap3_common.h b/include/configs/omap3_common.h
index f54aff1..e2c3a38 100644
--- a/include/configs/omap3_common.h
+++ b/include/configs/omap3_common.h
@@ -49,4 +49,7 @@
 #define V_SCLK (V_OSCK  1)
 #endif
 
+/* no support for IRQs */
+#undef CONFIG_USE_IRQ
+
 #endif /* __CONFIG_OMAP3_COMMON_H */
diff --git a/include/configs/omap3_evm_common.h 
b/include/configs/omap3_evm_common.h
index 0b4dcf1..c207693 100644
--- a/include/configs/omap3_evm_common.h
+++ b/include/configs/omap3_evm_common.h
@@ -35,8 +35,6 @@
 #define CONFIG_OMAP3_EVM   /* This is a OMAP3 EVM */
 #define CONFIG_TWL4030_POWER   /* with TWL4030 PMIC */
 
-#undef CONFIG_USE_IRQ  /* no support for IRQs */
-
 /*
  * OMAP3 has 12 GP timers, they can be driven by the system clock
  * (12/13/16.8/19.2/38.4MHz) or by 32KHz clock. We use 13MHz (V_SCLK).
diff --git a/include/configs/omap3_logic.h b/include/configs/omap3_logic.h
index 6d245db..6f327ad 100644
--- a/include/configs/omap3_logic.h
+++ b/include/configs/omap3_logic.h
@@ -44,8 +44,6 @@
  */
 #define CONFIG_OMAP3_LOGIC

[U-Boot] [RFC v0 05/11] omap3: Move CONFIG_MISC_INIT_R to omap3_common.h

2012-03-22 Thread Tom Rini
All platforms have at least a minimal function to print the dieid

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |2 --
 include/configs/am3517_evm.h   |2 --
 include/configs/cm_t35.h   |2 --
 include/configs/devkit8000.h   |2 --
 include/configs/dig297.h   |2 --
 include/configs/igep00x0.h |2 --
 include/configs/mcx.h  |2 --
 include/configs/omap3_beagle.h |2 --
 include/configs/omap3_common.h |3 +++
 include/configs/omap3_evm_common.h |2 --
 include/configs/omap3_logic.h  |2 --
 include/configs/omap3_mvblx.h  |2 --
 include/configs/omap3_overo.h  |2 --
 include/configs/omap3_pandora.h|2 --
 include/configs/omap3_sdp3430.h|2 --
 include/configs/omap3_zoom1.h  |2 --
 include/configs/omap3_zoom2.h  |2 --
 include/configs/tam3517-common.h   |2 --
 include/configs/tricorder.h|2 --
 19 files changed, 3 insertions(+), 36 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index f113afc..d150b98 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -42,8 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517CRANE   /* working with CRANEBOARD */
 
-#define CONFIG_MISC_INIT_R
-
 #define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
 #define CONFIG_SETUP_MEMORY_TAGS   1
 #define CONFIG_INITRD_TAG  1
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 51cab37..26436f8 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -42,8 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517EVM /* working with AM3517EVM */
 
-#define CONFIG_MISC_INIT_R
-
 #define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
 #define CONFIG_SETUP_MEMORY_TAGS   1
 #define CONFIG_INITRD_TAG  1
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 3a151fc..87efb69 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -51,8 +51,6 @@
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-#define CONFIG_MISC_INIT_R
-
 #define CONFIG_OF_LIBFDT   1
 /*
  * The early kernel mapping on ARM currently only maps from the base of DRAM
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index 972940f..9cc80d6 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -56,8 +56,6 @@
  */
 #define CONFIG_SYS_TEXT_BASE   0x8010
 
-#define CONFIG_MISC_INIT_R
-
 #define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
 #define CONFIG_SETUP_MEMORY_TAGS   1
 #define CONFIG_INITRD_TAG  1
diff --git a/include/configs/dig297.h b/include/configs/dig297.h
index ca17d6e..d1f7ca0 100644
--- a/include/configs/dig297.h
+++ b/include/configs/dig297.h
@@ -58,8 +58,6 @@
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-#define CONFIG_MISC_INIT_R
-
 #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
index c4feba2..1d8ddbf 100644
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -39,8 +39,6 @@
  * Other configuration options
  */
 
-#define CONFIG_MISC_INIT_R
-
 #define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
 #define CONFIG_SETUP_MEMORY_TAGS   1
 #define CONFIG_INITRD_TAG  1
diff --git a/include/configs/mcx.h b/include/configs/mcx.h
index 02793e5..13cf6c0 100644
--- a/include/configs/mcx.h
+++ b/include/configs/mcx.h
@@ -51,8 +51,6 @@
  */
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-#define CONFIG_MISC_INIT_R
-
 #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index eefada2..98d528a 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -45,8 +45,6 @@
  */
 #define CONFIG_OMAP3_BEAGLE/* working with BEAGLE */
 
-#define CONFIG_MISC_INIT_R
-
 #define CONFIG_OF_LIBFDT   1
 
 #define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
diff --git a/include/configs/omap3_common.h b/include/configs/omap3_common.h
index e2c3a38..9130ebe 100644
--- a/include/configs/omap3_common.h
+++ b/include/configs/omap3_common.h
@@ -52,4 +52,7 @@
 /* no support for IRQs */
 #undef CONFIG_USE_IRQ
 
+/* Portions of the init sequence that we want */
+#define CONFIG_MISC_INIT_R
+
 #endif /* __CONFIG_OMAP3_COMMON_H */
diff --git a/include/configs/omap3_evm_common.h 
b/include/configs/omap3_evm_common.h
index c207693..f24c9b9 100644
--- a/include/configs/omap3_evm_common.h
+++ b/include/configs/omap3_evm_common.h
@@ -200,8 +200,6 @@
 #define 

[U-Boot] [RFC v0 06/11] omap3: Move ATAGS and OF_LIBFDT to omap3_common.h

2012-03-22 Thread Tom Rini
Consolidate all of the ATAGS defines into a single location and enable
OF_LIBFDT support as well.  Only omap3_mvblx and cm_t35 also pass the
SERIAL ATAG.

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |5 -
 include/configs/am3517_evm.h   |5 -
 include/configs/cm_t35.h   |8 +---
 include/configs/devkit8000.h   |7 ---
 include/configs/dig297.h   |5 -
 include/configs/igep00x0.h |7 ---
 include/configs/mcx.h  |6 --
 include/configs/omap3_beagle.h |7 ---
 include/configs/omap3_common.h |7 +++
 include/configs/omap3_evm_common.h |5 -
 include/configs/omap3_logic.h  |5 -
 include/configs/omap3_mvblx.h  |9 +
 include/configs/omap3_overo.h  |7 ---
 include/configs/omap3_pandora.h|7 ---
 include/configs/omap3_sdp3430.h|7 ---
 include/configs/omap3_zoom1.h  |7 ---
 include/configs/omap3_zoom2.h  |7 ---
 include/configs/tam3517-common.h   |6 --
 include/configs/tricorder.h|7 ---
 19 files changed, 9 insertions(+), 115 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index d150b98..d0b5cc0 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -42,11 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517CRANE   /* working with CRANEBOARD */
 
-#define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
-#define CONFIG_SETUP_MEMORY_TAGS   1
-#define CONFIG_INITRD_TAG  1
-#define CONFIG_REVISION_TAG1
-
 /*
  * Size of malloc() pool
  */
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 26436f8..da6a000 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -42,11 +42,6 @@
  */
 #define CONFIG_OMAP3_AM3517EVM /* working with AM3517EVM */
 
-#define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
-#define CONFIG_SETUP_MEMORY_TAGS   1
-#define CONFIG_INITRD_TAG  1
-#define CONFIG_REVISION_TAG1
-
 /*
  * Size of malloc() pool
  */
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 87efb69..9330442 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -36,6 +36,7 @@
  * Values that differ from platform defaults or are unspecified.
  */
 #define CONFIG_SDRC/* The chip has SDRC controller */
+#define CONFIG_SERIAL_TAG  /* Add SERIAL ATAG */
 
 /* Platform defaults */
 #include configs/omap3_common.h
@@ -51,7 +52,6 @@
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-#define CONFIG_OF_LIBFDT   1
 /*
  * The early kernel mapping on ARM currently only maps from the base of DRAM
  * to the end of the kernel image.  The kernel is loaded at DRAM base + 0x8000.
@@ -60,12 +60,6 @@
  */
 #define CONFIG_SYS_BOOTMAPSZ   0x4000
 
-#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
-#define CONFIG_SETUP_MEMORY_TAGS
-#define CONFIG_INITRD_TAG
-#define CONFIG_REVISION_TAG
-#define CONFIG_SERIAL_TAG
-
 /*
  * Size of malloc() pool
  */
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index 9cc80d6..b792b40 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -56,13 +56,6 @@
  */
 #define CONFIG_SYS_TEXT_BASE   0x8010
 
-#define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
-#define CONFIG_SETUP_MEMORY_TAGS   1
-#define CONFIG_INITRD_TAG  1
-#define CONFIG_REVISION_TAG1
-
-#define CONFIG_OF_LIBFDT   1
-
 /* Size of malloc() pool */
 #define CONFIG_ENV_SIZE(128  10) /* 128 KiB */
/* Sector */
diff --git a/include/configs/dig297.h b/include/configs/dig297.h
index d1f7ca0..41b3e7c 100644
--- a/include/configs/dig297.h
+++ b/include/configs/dig297.h
@@ -58,11 +58,6 @@
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
-#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
-#define CONFIG_SETUP_MEMORY_TAGS
-#define CONFIG_INITRD_TAG
-#define CONFIG_REVISION_TAG
-
 /*
  * Size of malloc() pool
  */
diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
index 1d8ddbf..770a471 100644
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -39,13 +39,6 @@
  * Other configuration options
  */
 
-#define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
-#define CONFIG_SETUP_MEMORY_TAGS   1
-#define CONFIG_INITRD_TAG  1
-#define CONFIG_REVISION_TAG1
-
-#define CONFIG_OF_LIBFDT   1
-
 /*
  * NS16550 Configuration
  */
diff --git a/include/configs/mcx.h b/include/configs/mcx.h
index 13cf6c0..6c306bc 100644
--- a/include/configs/mcx.h
+++ b/include/configs/mcx.h
@@ -42,7 

[U-Boot] [RFC v0 07/11] omap3: Move SYS_MALLOC_LEN and ENV_SIZE to omap3_common.h

2012-03-22 Thread Tom Rini
We provide a default CONFIG_SYS_MALLOC_LEN of 1mb (noting that saveenv
and UBI are both large users by default) and a default of 128KB for
environment.  Both of these can be overriden by the board if needed.

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |6 --
 include/configs/am3517_evm.h   |5 -
 include/configs/cm_t35.h   |7 ---
 include/configs/devkit8000.h   |5 -
 include/configs/dig297.h   |7 ---
 include/configs/igep00x0.h |5 -
 include/configs/mcx.h  |5 -
 include/configs/omap3_beagle.h |7 ---
 include/configs/omap3_common.h |   14 ++
 include/configs/omap3_evm_common.h |6 --
 include/configs/omap3_logic.h  |7 ---
 include/configs/omap3_mvblx.h  |8 ++--
 include/configs/omap3_overo.h  |7 ---
 include/configs/omap3_pandora.h|6 --
 include/configs/omap3_sdp3430.h|9 +
 include/configs/omap3_zoom1.h  |7 ---
 include/configs/omap3_zoom2.h  |6 --
 include/configs/tam3517-common.h   |6 --
 include/configs/tricorder.h|5 -
 19 files changed, 17 insertions(+), 111 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index d0b5cc0..ab776a7 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -43,12 +43,6 @@
 #define CONFIG_OMAP3_AM3517CRANE   /* working with CRANEBOARD */
 
 /*
- * Size of malloc() pool
- */
-#define CONFIG_ENV_SIZE(128  10) /* 128 KiB 
sector */
-#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + (128  10))
-   /* initial data */
-/*
  * DDR related
  */
 #define CONFIG_SYS_CS0_SIZE(256 * 1024 * 1024)
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index da6a000..7b8ba00 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -43,11 +43,6 @@
 #define CONFIG_OMAP3_AM3517EVM /* working with AM3517EVM */
 
 /*
- * Size of malloc() pool
- */
-#define CONFIG_ENV_SIZE(128  10) /* 128 KiB 
sector */
-#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + (128  10))
-/*
  * DDR related
  */
 #define CONFIG_SYS_CS0_SIZE(256 * 1024 * 1024)
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 9330442..0ead8b7 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -61,13 +61,6 @@
 #define CONFIG_SYS_BOOTMAPSZ   0x4000
 
 /*
- * Size of malloc() pool
- */
-#define CONFIG_ENV_SIZE(128  10) /* 128 KiB */
-   /* Sector */
-#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + (128  10))
-
-/*
  * Hardware drivers
  */
 
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index b792b40..13136ea 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -56,11 +56,6 @@
  */
 #define CONFIG_SYS_TEXT_BASE   0x8010
 
-/* Size of malloc() pool */
-#define CONFIG_ENV_SIZE(128  10) /* 128 KiB */
-   /* Sector */
-#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + (128  10))
-
 /* Hardware drivers */
 /* DM9000 */
 #define CONFIG_NET_RETRY_COUNT 20
diff --git a/include/configs/dig297.h b/include/configs/dig297.h
index 41b3e7c..1923809 100644
--- a/include/configs/dig297.h
+++ b/include/configs/dig297.h
@@ -59,13 +59,6 @@
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
 /*
- * Size of malloc() pool
- */
-#define CONFIG_ENV_SIZE(128  10) /* 128 KiB */
-   /* Sector */
-#define CONFIG_SYS_MALLOC_LEN  (1024  10) /* UBI needs = 512 kB */
-
-/*
  * Hardware drivers
  */
 
diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
index 770a471..00c38b4 100644
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -236,11 +236,6 @@
 #define CONFIG_ENV_ADDRONENAND_ENV_OFFSET
 
 /*
- * Size of malloc() pool
- */
-#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + (128  10))
-
-/*
  * SMSC911x Ethernet
  */
 #if defined(CONFIG_CMD_NET)
diff --git a/include/configs/mcx.h b/include/configs/mcx.h
index 6c306bc..83783c9 100644
--- a/include/configs/mcx.h
+++ b/include/configs/mcx.h
@@ -51,11 +51,6 @@
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
 /*
- * Size of malloc() pool
- */
-#define CONFIG_ENV_SIZE(128  10) /* 128 KiB 
sector */
-#define CONFIG_SYS_MALLOC_LEN  (1024  10)
-/*
  * DDR related
  */
 #define CONFIG_SYS_CS0_SIZE(256 * 1024 * 1024)
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 06f1a66..86dabb7 100644
--- a/include/configs/omap3_beagle.h

[U-Boot] [RFC v0 09/11] omap3: Consolidate HSMMC support into omap3_common.h

2012-03-22 Thread Tom Rini
Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |5 -
 include/configs/am3517_evm.h   |4 
 include/configs/cm_t35.h   |5 -
 include/configs/devkit8000.h   |6 --
 include/configs/dig297.h   |5 -
 include/configs/igep00x0.h |5 -
 include/configs/mcx.h  |4 
 include/configs/omap3_beagle.h |5 -
 include/configs/omap3_common.h |9 +
 include/configs/omap3_evm.h|9 +
 include/configs/omap3_evm_quick_mmc.h  |6 --
 include/configs/omap3_evm_quick_nand.h |1 +
 include/configs/omap3_logic.h  |5 -
 include/configs/omap3_mvblx.h  |5 -
 include/configs/omap3_overo.h  |5 -
 include/configs/omap3_pandora.h|5 -
 include/configs/omap3_sdp3430.h|7 ---
 include/configs/omap3_zoom1.h  |5 -
 include/configs/omap3_zoom2.h  |4 
 include/configs/tam3517-common.h   |4 
 include/configs/tricorder.h|6 --
 21 files changed, 11 insertions(+), 99 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index 0c46af4..d607c67 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -56,11 +56,6 @@
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
 #define CONFIG_BAUDRATE115200
 
-#define CONFIG_GENERIC_MMC 1
-#define CONFIG_MMC 1
-#define CONFIG_OMAP_HSMMC  1
-#define CONFIG_DOS_PARTITION   1
-
 /*
  * USB configuration
  * Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 639e865..eec85ce 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -55,10 +55,6 @@
 #define CONFIG_CONS_INDEX  3
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
 #define CONFIG_BAUDRATE115200
-#define CONFIG_MMC 1
-#define CONFIG_GENERIC_MMC 1
-#define CONFIG_OMAP_HSMMC  1
-#define CONFIG_DOS_PARTITION   1
 
 /*
  * USB configuration
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 9327524..f543e93 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -69,11 +69,6 @@
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
 #define CONFIG_BAUDRATE115200
 
-#define CONFIG_GENERIC_MMC
-#define CONFIG_MMC
-#define CONFIG_OMAP_HSMMC
-#define CONFIG_DOS_PARTITION
-
 /* USB */
 #define CONFIG_MUSB_UDC
 #define CONFIG_USB_OMAP3
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index af03dcf..68f0b00 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -72,12 +72,6 @@
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
 #define CONFIG_BAUDRATE115200
 
-/* MMC */
-#define CONFIG_GENERIC_MMC 1
-#define CONFIG_MMC 1
-#define CONFIG_OMAP_HSMMC  1
-#define CONFIG_DOS_PARTITION   1
-
 /* I2C */
 #define CONFIG_HARD_I2C1
 #define CONFIG_SYS_I2C_SPEED   10
diff --git a/include/configs/dig297.h b/include/configs/dig297.h
index 808eab2..44a522a 100644
--- a/include/configs/dig297.h
+++ b/include/configs/dig297.h
@@ -67,11 +67,6 @@
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
 #define CONFIG_BAUDRATE115200
 
-#define CONFIG_GENERIC_MMC 1
-#define CONFIG_MMC 1
-#define CONFIG_OMAP_HSMMC  1
-#define CONFIG_DOS_PARTITION
-
 /* library portions to compile in */
 #define CONFIG_RBTREE
 #define CONFIG_MTD_PARTITIONS
diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
index 7e955f2..c4c0fb0 100644
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -44,11 +44,6 @@
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
 #define CONFIG_BAUDRATE115200
 
-#define CONFIG_GENERIC_MMC 1
-#define CONFIG_MMC 1
-#define CONFIG_OMAP_HSMMC  1
-#define CONFIG_DOS_PARTITION   1
-
 /* USB */
 #define CONFIG_MUSB_UDC1
 #define CONFIG_USB_OMAP3   1
diff --git a/include/configs/mcx.h b/include/configs/mcx.h
index 5dda673..9f95958 100644
--- a/include/configs/mcx.h
+++ b/include/configs/mcx.h
@@ -63,10 +63,6 @@
 #define CONFIG_CONS_INDEX  3
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
 #define CONFIG_BAUDRATE115200
-#define CONFIG_MMC
-#define CONFIG_OMAP_HSMMC
-#define CONFIG_GENERIC_MMC
-#define CONFIG_DOS_PARTITION
 
 /* EHCI */
 #define 

[U-Boot] [RFC v0 10/11] omap3: Consolidate NAND information in omap3_common.h

2012-03-22 Thread Tom Rini
Add common NAND information to omap3_common.h.  For boards that use
NAND, move CONFIG_CMD_NAND up to prior to configs/omap3_common.h

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |   16 +---
 include/configs/am3517_evm.h   |   16 +---
 include/configs/cm_t35.h   |   17 +
 include/configs/devkit8000.h   |   13 +
 include/configs/dig297.h   |   16 +---
 include/configs/igep00x0.h |4 ++--
 include/configs/mcx.h  |   17 ++---
 include/configs/omap3_beagle.h |   18 ++
 include/configs/omap3_common.h |   14 ++
 include/configs/omap3_evm_common.h |   12 
 include/configs/omap3_logic.h  |   18 +-
 include/configs/omap3_mvblx.h  |4 ++--
 include/configs/omap3_overo.h  |   17 +
 include/configs/omap3_pandora.h|   17 +
 include/configs/omap3_sdp3430.h|5 ++---
 include/configs/omap3_zoom1.h  |   15 +--
 include/configs/omap3_zoom2.h  |   14 +-
 include/configs/tam3517-common.h   |   15 +--
 include/configs/tricorder.h|   14 +-
 19 files changed, 36 insertions(+), 226 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index d607c67..6b681e5 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -29,6 +29,7 @@
  * Values that differ from platform defaults or are unspecified.
  */
 #define CONFIG_EMIF4   /* The chip has EMIF4 controller */
+#define CONFIG_CMD_NAND/* NAND support */
 
 /* Platform defaults */
 #include configs/omap3_common.h
@@ -103,7 +104,6 @@
 
 #define CONFIG_CMD_I2C /* I2C serial bus support   */
 #define CONFIG_CMD_MMC /* MMC support  */
-#define CONFIG_CMD_NAND/* NAND support */
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_PING
 
@@ -112,7 +112,6 @@
 #undef CONFIG_CMD_IMI  /* iminfo   */
 #undef CONFIG_CMD_IMLS /* List all found images*/
 
-#define CONFIG_SYS_NO_FLASH
 #define CONFIG_HARD_I2C1
 #define CONFIG_SYS_I2C_SPEED   10
 #define CONFIG_SYS_I2C_SLAVE   1
@@ -122,17 +121,6 @@
 
 #undef CONFIG_CMD_NET
 #undef CONFIG_CMD_NFS
-/*
- * Board NAND Info.
- */
-#define CONFIG_SYS_NAND_ADDR   NAND_BASE   /* physical address */
-   /* to access nand */
-#define CONFIG_SYS_NAND_BASE   NAND_BASE   /* physical address */
-   /* to access */
-   /* nand at CS0 */
-
-#define CONFIG_SYS_MAX_NAND_DEVICE 1   /* Max number of */
-   /* NAND devices */
 
 #define CONFIG_JFFS2_NAND
 /* nand device jffs2 lives on */
@@ -249,8 +237,6 @@
 /* Monitor at start of flash */
 #define CONFIG_SYS_MONITOR_BASECONFIG_SYS_FLASH_BASE
 
-#define CONFIG_NAND_OMAP_GPMC
-#define GPMC_NAND_ECC_LP_x16_LAYOUT1
 #define CONFIG_ENV_IS_IN_NAND  1
 #define SMNAND_ENV_OFFSET  0x26 /* environment starts here */
 
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index eec85ce..6137730 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -29,6 +29,7 @@
  * Values that differ from platform defaults or are unspecified.
  */
 #define CONFIG_EMIF4   /* The chip has EMIF4 controller */
+#define CONFIG_CMD_NAND/* NAND support */
 
 /* Platform defaults */
 #include configs/omap3_common.h
@@ -103,7 +104,6 @@
 
 #define CONFIG_CMD_I2C /* I2C serial bus support   */
 #define CONFIG_CMD_MMC /* MMC support  */
-#define CONFIG_CMD_NAND/* NAND support */
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_PING
 
@@ -112,7 +112,6 @@
 #undef CONFIG_CMD_IMI  /* iminfo   */
 #undef CONFIG_CMD_IMLS /* List all found images*/
 
-#define CONFIG_SYS_NO_FLASH
 #define CONFIG_HARD_I2C1
 #define CONFIG_SYS_I2C_SPEED   10
 #define CONFIG_SYS_I2C_SLAVE   1
@@ -122,17 +121,6 @@
 
 #undef CONFIG_CMD_NET
 #undef CONFIG_CMD_NFS
-/*
- * Board NAND Info.
- */
-#define CONFIG_SYS_NAND_ADDR   NAND_BASE   /* physical address */
-   /* to access nand */
-#define CONFIG_SYS_NAND_BASE   NAND_BASE   /* physical address */
-   /* to access */
-   /* nand at CS0 */
-
-#define 

[U-Boot] [RFC v0 11/11] omap3: Consolidate I2C information into omap3_common.h

2012-03-22 Thread Tom Rini
We default to standard speed for i2c and allow boards to override with
fast or full-speed.  This also removes a number of unused defines.

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |6 +-
 include/configs/am3517_evm.h   |6 +-
 include/configs/cm_t35.h   |6 +-
 include/configs/devkit8000.h   |7 +--
 include/configs/dig297.h   |6 +-
 include/configs/igep00x0.h |6 +-
 include/configs/mcx.h  |5 +
 include/configs/omap3_beagle.h |7 +--
 include/configs/omap3_common.h |   11 +++
 include/configs/omap3_evm_common.h |   10 +-
 include/configs/omap3_logic.h  |   12 +---
 include/configs/omap3_mvblx.h  |7 +--
 include/configs/omap3_overo.h  |5 +
 include/configs/omap3_pandora.h|6 +-
 include/configs/omap3_sdp3430.h|   10 +-
 include/configs/omap3_zoom1.h  |7 +--
 include/configs/omap3_zoom2.h  |7 +--
 include/configs/tam3517-common.h   |6 +-
 include/configs/tricorder.h|7 +--
 19 files changed, 29 insertions(+), 108 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index 6b681e5..48579ce 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -112,12 +112,8 @@
 #undef CONFIG_CMD_IMI  /* iminfo   */
 #undef CONFIG_CMD_IMLS /* List all found images*/
 
-#define CONFIG_HARD_I2C1
-#define CONFIG_SYS_I2C_SPEED   10
+/* Our i2c slave is 1 */
 #define CONFIG_SYS_I2C_SLAVE   1
-#define CONFIG_SYS_I2C_BUS 0
-#define CONFIG_SYS_I2C_BUS_SELECT  1
-#define CONFIG_DRIVER_OMAP34XX_I2C 1
 
 #undef CONFIG_CMD_NET
 #undef CONFIG_CMD_NFS
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 6137730..bd58bad 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -112,12 +112,8 @@
 #undef CONFIG_CMD_IMI  /* iminfo   */
 #undef CONFIG_CMD_IMLS /* List all found images*/
 
-#define CONFIG_HARD_I2C1
-#define CONFIG_SYS_I2C_SPEED   10
+/* Our i2c slave is 1 */
 #define CONFIG_SYS_I2C_SLAVE   1
-#define CONFIG_SYS_I2C_BUS 0
-#define CONFIG_SYS_I2C_BUS_SELECT  1
-#define CONFIG_DRIVER_OMAP34XX_I2C 1
 
 #undef CONFIG_CMD_NET
 #undef CONFIG_CMD_NFS
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 14c443c..c2c5af6 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -103,12 +103,8 @@
 #undef CONFIG_CMD_FPGA /* FPGA configuration Support   */
 #undef CONFIG_CMD_IMLS /* List all found images*/
 
-#define CONFIG_HARD_I2C
-#define CONFIG_SYS_I2C_SPEED   10
+/* Our i2c slave is 1 */
 #define CONFIG_SYS_I2C_SLAVE   1
-#define CONFIG_SYS_I2C_BUS 0
-#define CONFIG_SYS_I2C_BUS_SELECT  1
-#define CONFIG_DRIVER_OMAP34XX_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index 91d976f..bc51e53 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -73,13 +73,8 @@
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
 #define CONFIG_BAUDRATE115200
 
-/* I2C */
-#define CONFIG_HARD_I2C1
-#define CONFIG_SYS_I2C_SPEED   10
+/* Our i2c slave is 1 */
 #define CONFIG_SYS_I2C_SLAVE   1
-#define CONFIG_SYS_I2C_BUS 0
-#define CONFIG_SYS_I2C_BUS_SELECT  1
-#define CONFIG_DRIVER_OMAP34XX_I2C 1
 
 /* TWL4030 */
 #define CONFIG_TWL4030_POWER   1
diff --git a/include/configs/dig297.h b/include/configs/dig297.h
index 792dff7..7708d2c 100644
--- a/include/configs/dig297.h
+++ b/include/configs/dig297.h
@@ -95,12 +95,8 @@
 #define CONFIG_CMD_NET /* bootp, tftpboot, rarpboot*/
 #undef CONFIG_CMD_NFS  /* NFS support  */
 
-#define CONFIG_HARD_I2C
-#define CONFIG_SYS_I2C_SPEED   10
+/* Our i2c slave is 1 */
 #define CONFIG_SYS_I2C_SLAVE   1
-#define CONFIG_SYS_I2C_BUS 0
-#define CONFIG_SYS_I2C_BUS_SELECT  1
-#define CONFIG_DRIVER_OMAP34XX_I2C 1
 
 /*
  * TWL4030
diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
index d7136ef..d6eff96 100644
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -80,12 +80,8 @@
 #undef CONFIG_CMD_FLASH/* flinfo, erase, protect   */
 #undef CONFIG_CMD_IMLS /* List all found images*/
 
-#define CONFIG_HARD_I2C1
-#define CONFIG_SYS_I2C_SPEED   10
+/* Our i2c slave is 1 */
 #define CONFIG_SYS_I2C_SLAVE   1
-#define 

[U-Boot] [RFC v0 08/11] omap3: Consolidate UART information in omap3_common.h

2012-03-22 Thread Tom Rini
Unless a board defines CONFIG_SERIAL_MULTI we assume it is using an
on-module UART somewhere.  We leave the exact configuration per-board.

Start an environment section in omap3_common.h and default to allowing
the environment to override console/ethaddr.  omap3_mvblx retains its
behavior via opt-out.

We also remove CONFIG_SERIAL[123] as these aren't meaningful for the
ns16550 driver.

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |   21 ++---
 include/configs/am3517_evm.h   |   20 +---
 include/configs/cm_t35.h   |   20 +---
 include/configs/devkit8000.h   |   13 +
 include/configs/dig297.h   |   21 ++---
 include/configs/igep00x0.h |   20 ++--
 include/configs/mcx.h  |   20 +---
 include/configs/omap3_beagle.h |   21 ++---
 include/configs/omap3_common.h |   18 ++
 include/configs/omap3_evm.h|3 ---
 include/configs/omap3_evm_common.h |   17 +
 include/configs/omap3_logic.h  |   21 ++---
 include/configs/omap3_mvblx.h  |   23 +--
 include/configs/omap3_overo.h  |   21 ++---
 include/configs/omap3_pandora.h|   21 ++---
 include/configs/omap3_sdp3430.h|   21 ++---
 include/configs/omap3_zoom1.h  |   21 ++---
 include/configs/omap3_zoom2.h  |   13 +++--
 include/configs/tam3517-common.h   |   18 +-
 include/configs/tricorder.h|   13 +
 20 files changed, 51 insertions(+), 315 deletions(-)

diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index ab776a7..0c46af4 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -51,28 +51,11 @@
  * Hardware drivers
  */
 
-/*
- * NS16550 Configuration
- */
-#define V_NS16550_CLK  4800/* 48MHz (APLL96/2) */
-
-#define CONFIG_SYS_NS16550
-#define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE(-4)
-#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
-
-/*
- * select serial console configuration
- */
+/* Select serial console configuration. */
 #define CONFIG_CONS_INDEX  3
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
-#define CONFIG_SERIAL3 3   /* UART3 on CRANEBOARD */
-
-/* allow to overwrite serial and ethaddr */
-#define CONFIG_ENV_OVERWRITE
 #define CONFIG_BAUDRATE115200
-#define CONFIG_SYS_BAUDRATE_TABLE  {4800, 9600, 19200, 38400, 57600,\
-   115200}
+
 #define CONFIG_GENERIC_MMC 1
 #define CONFIG_MMC 1
 #define CONFIG_OMAP_HSMMC  1
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 7b8ba00..639e865 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -51,28 +51,10 @@
  * Hardware drivers
  */
 
-/*
- * NS16550 Configuration
- */
-#define V_NS16550_CLK  4800/* 48MHz (APLL96/2) */
-
-#define CONFIG_SYS_NS16550
-#define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE(-4)
-#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
-
-/*
- * select serial console configuration
- */
+/* Select serial console configuration. */
 #define CONFIG_CONS_INDEX  3
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
-#define CONFIG_SERIAL3 3   /* UART3 on AM3517 EVM */
-
-/* allow to overwrite serial and ethaddr */
-#define CONFIG_ENV_OVERWRITE
 #define CONFIG_BAUDRATE115200
-#define CONFIG_SYS_BAUDRATE_TABLE  {4800, 9600, 19200, 38400, 57600,\
-   115200}
 #define CONFIG_MMC 1
 #define CONFIG_GENERIC_MMC 1
 #define CONFIG_OMAP_HSMMC  1
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 0ead8b7..9327524 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -64,28 +64,10 @@
  * Hardware drivers
  */
 
-/*
- * NS16550 Configuration
- */
-#define V_NS16550_CLK  4800/* 48MHz (APLL96/2) */
-
-#define CONFIG_SYS_NS16550
-#define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE(-4)
-#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
-
-/*
- * select serial console configuration
- */
+/* Select serial console configuration. */
 #define CONFIG_CONS_INDEX  3
 #define CONFIG_SYS_NS16550_COM3OMAP34XX_UART3
-#define CONFIG_SERIAL3 3   /* UART3 */
-
-/* allow to overwrite serial and ethaddr */
-#define CONFIG_ENV_OVERWRITE
 #define CONFIG_BAUDRATE115200
-#define CONFIG_SYS_BAUDRATE_TABLE  {4800, 9600, 19200, 38400, 

Re: [U-Boot] [PATCH 3/4][v2] powerpc/85xx:Make debug exception vector accessible

2012-03-22 Thread Scott Wood
On 03/22/2012 12:52 AM, Prabhakar Kushwaha wrote:
 Hi Scott,
 
  Please find my reply in-lined
 
 On Thursday 22 March 2012 01:22 AM, Scott Wood wrote:
 On 03/20/2012 11:43 PM, Prabhakar Kushwaha wrote:
 Debugging of e500 and e500v1 processer requires debug exception
 vecter (IVPR +
 IVOR15) to have valid and fetchable OP code.

 While executing in translated space (AS=1), whenever a debug
 exception is
 generated, the MSR[DS/IS] gets cleared i.e. AS=0 and the processor
 tries to
 fetch an instruction from the debug exception vector (IVPR + IVOR15);
 since now
 we are in AS=0, the application needs to ensure the proper TLB
 configuration to
 have (IVOR + IVOR15) accessible from AS=0 also.

 Create a temporary TLB in AS0 to make sure debug exception verctor is
 accessible on debug exception.

 Signed-off-by: Radu Lazarescuradu.lazare...@freescale.com
 Signed-off-by: Marius Grigorasmarius.grigo...@freescale.com
 Signed-off-by: Prabhakar Kushwahaprabha...@freescale.com
 Can you document the flow of exactly what TLB entries are present at
 various points of the boot flow, for all the various configurations (NOR
 boot, NAND SPL, RAMBOOT, IFC versus non-IFC, etc).
 
 Sure. May be separate patch will be send.

Let's start with just an e-mail thoroughly describing your understanding
of this.  It will provide necessary context for review.

We can clean it up for permanent documentation once it's clear to
everyone what's going on.

 In the ramboot case is this really supposed to be I+G?
 
 I am not sure.  But same is done under label create_init_ram_area for
 TLB entry 15.
 what you suggest.

I suggest as part of the request to document all of this, you figure out
what should actually be mapped in each configuration.  The existing code
might be wrong for some of them, but we shouldn't proceed ahead blindly
and make an even bigger mess.

 Which path will NAND SPL go through (not the payload, but the SPL
 itself)?  That will be only a 4K window mapped, and guarded doesn't stop
 speculative instruction fetches, so we don't want to map more than is
 backed up by something.
 
 NAND SPL go via !defined(CONFIG_SYS_RAMBOOT) path.
 
 i think  NAND_SPL  does not require temporary TLB  as NAND SPL even does
 not have any interrupt vector.

So there's no plan to support using breakpoints or single step during
the SPL?  That's fine with me, but should be documented, and we should
make sure this code does not run in that case.

 +lis r10,0xffc0@h
 +ori r10,r10,0xffc0@l
 Don't waste instructions -- this could be in an SPL.  That ori is a
 no-op.
 
 Please refer above response. May be this piece of code is not required
 for NAND SPL

Still, I'd like to know why you're writing 0xffc0 to MAS7.  Only the
low 4 bits of MAS7 are valid on current e500.

 +mtspr   MAS0,r6
 +mtspr   MAS1,r7
 +mtspr   MAS2,r8
 +mtspr   MAS3,r9
 +mtspr   MAS7,r10
 Why are you writing 0xffc0 into MAS7?

 Access to MAS7 needs to be conditional on CONFIG_ENABLE_36BIT_PHYS
 (misnamed, should be something like CONFIG_SYS_PPC_HAS_MAS7).
 
 i will put this code under #define CONFIG_ENABLE_36BIT_PHYS
 
 For your kind information : in start.S, label label
 create_ccsr_new_tlb, create_ccsr_old_tlb uses  MAS7  without
 CONFIG_ENABLE_36BIT_PHYS  #define.
 It should be fixed ??

Yes, it should be fixed.  That was a fairly recent change and perhaps
e500v1 has not been tested since then -- Timur, could you look at this?

 diff --git a/arch/powerpc/include/asm/config_mpc85xx.h
 b/arch/powerpc/include/asm/config_mpc85xx.h
 index 8654625..268c56e 100644
 --- a/arch/powerpc/include/asm/config_mpc85xx.h
 +++ b/arch/powerpc/include/asm/config_mpc85xx.h
 @@ -1,5 +1,5 @@
   /*
 - * Copyright 2011 Freescale Semiconductor, Inc.
 + * Copyright 2011-2012 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
 @@ -107,6 +107,7 @@
   #define CONFIG_MAX_CPUS1
   #define CONFIG_FSL_SDHC_V2_3
   #define CONFIG_SYS_FSL_NUM_LAWS12
 +#define CONFIG_SYS_PPC_E500_DEBUG_TLB3
   #define CONFIG_TSECV2
   #define CONFIG_SYS_FSL_SEC_COMPAT4
   #define CONFIG_FSL_SATA_V2
 It would be nice if we could have one place where all the fixed TLB
 entries are assigned.

 
 Am i supposed to send separate patch having TLB entry defined for all
 e500 v1/v2 SoC ?

That's a different issue, I just mean having one central place where
each hardcoded TLB entry gets a symbolic name, as well as a #define for
where programmatic TLB entry allocation can begin.

The decision to actually make use of the TLB entry would be a different
symbol, if you don't want it to be unconditional (relative to the
surrounding code).

-Scott

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 3/4][v2] powerpc/85xx:Make debug exception vector accessible

2012-03-22 Thread Scott Wood
On 03/22/2012 02:51 PM, Timur Tabi wrote:
 Scott Wood wrote:
 For your kind information : in start.S, label label
 create_ccsr_new_tlb, create_ccsr_old_tlb uses  MAS7  without
 CONFIG_ENABLE_36BIT_PHYS  #define.
 It should be fixed ??
 
 Yes, it should be fixed.  That was a fairly recent change and perhaps
 e500v1 has not been tested since then -- Timur, could you look at this?
 
 On e500v1 parts, CONFIG_SYS_CCSRBAR_PHYS_HIGH will always be 0, so it will
 only write 0 to MAS7.  Is that still considered a bad thing?  The tlbwe
 will ignore MAS7.

Either it's needed, or we should get rid of CONFIG_ENABLE_36BIT_PHYS
entirely.  Either way, we should test the results on e500v1 hardware.

-Scott

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 3/4][v2] powerpc/85xx:Make debug exception vector accessible

2012-03-22 Thread Timur Tabi
Scott Wood wrote:
 Either it's needed, or we should get rid of CONFIG_ENABLE_36BIT_PHYS
 entirely.  Either way, we should test the results on e500v1 hardware.

That macro conditionally enables support for MAS7:

#if defined(CONFIG_ENABLE_36BIT_PHYS)
ori r0,r0,HID0_ENMAS7@l /* Enable MAS7 */
#endif

So I don't think we can get rid of it, otherwise I suspect an e500v1
operating system will not work on an e500v2 part.

-- 
Timur Tabi
Linux kernel developer at Freescale

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 3/4][v2] powerpc/85xx:Make debug exception vector accessible

2012-03-22 Thread Scott Wood
On 03/22/2012 02:56 PM, Timur Tabi wrote:
 Scott Wood wrote:
 Either it's needed, or we should get rid of CONFIG_ENABLE_36BIT_PHYS
 entirely.  Either way, we should test the results on e500v1 hardware.
 
 That macro conditionally enables support for MAS7:
 
 #if defined(CONFIG_ENABLE_36BIT_PHYS)
   ori r0,r0,HID0_ENMAS7@l /* Enable MAS7 */
 #endif
 
 So I don't think we can get rid of it, otherwise I suspect an e500v1
 operating system will not work on an e500v2 part.

Fine, keep it for that (though I'd argue that if that were the concern,
we should have been clearing it before we enter the OS, and the Os can
set it if it wants).  But what about in write_tlb, or tlb.c?

There's obviously an existing attempt to avoid touching MAS7 if
CONFIG_ENABLE_36BIT_PHYS is not set.  Either that's unnecessary and we
should remove it, or we should continue adhering to it.

-Scott

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/2] OMAP3: mt_ventoux: updated timing for FPGA

2012-03-22 Thread Tom Rini
On Wed, Mar 21, 2012 at 11:14:24AM +0100, Stefano Babic wrote:

 Fix chipselect timing for FPGA
 
 Signed-off-by: Stefano Babic sba...@denx.de
 Cc: Tom Rini tr...@ti.com

Applied to u-boot-ti/master (which I intended to do another pull request
of on the 26th).

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 2/2] OMAP3: mt_ventoux: sets its own mtdparts

2012-03-22 Thread Tom Rini
On Wed, Mar 21, 2012 at 11:14:25AM +0100, Stefano Babic wrote:
 Signed-off-by: Stefano Babic sba...@denx.de
 Cc: Tom Rini tr...@ti.com

Applied to u-boot-ti/master (which I intended to do another pull request
of on the 26th).

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH V2] NAND: TI: fix warnings in omap_gpmc.c

2012-03-22 Thread Tom Rini
On Thu, Mar 22, 2012 at 10:56:17AM +0100, Stefano Babic wrote:
 The following warnings are reported for boards using SOFT ECC.
 
 omap_gpmc.c:33:30: warning: 'hw_nand_oob' defined but not used
 omap_gpmc.c:78:13: warning: 'omap_hwecc_init' defined but not used
 omap_gpmc.c:116:12: warning: 'omap_correct_data' defined but not used
 omap_gpmc.c:182:12: warning: 'omap_calculate_ecc' defined but not used
 omap_gpmc.c:208:13: warning: 'omap_enable_hwecc' defined but not used
 
 Signed-off-by: Stefano Babic sba...@denx.de
 Cc: Tom Rini tr...@ti.com
 Cc: Scott Wood scottw...@freescale.com

Applied to u-boot-ti/master, thanks!

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 3/4][v2] powerpc/85xx:Make debug exception vector accessible

2012-03-22 Thread Timur Tabi
Scott Wood wrote:
  For your kind information : in start.S, label label
  create_ccsr_new_tlb, create_ccsr_old_tlb uses  MAS7  without
  CONFIG_ENABLE_36BIT_PHYS  #define.
  It should be fixed ??

 Yes, it should be fixed.  That was a fairly recent change and perhaps
 e500v1 has not been tested since then -- Timur, could you look at this?

On e500v1 parts, CONFIG_SYS_CCSRBAR_PHYS_HIGH will always be 0, so it will
only write 0 to MAS7.  Is that still considered a bad thing?  The tlbwe
will ignore MAS7.

-- 
Timur Tabi
Linux kernel developer at Freescale

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/1] MX53: DDR: Fix ZQHWCTRL field TZQ_CS

2012-03-22 Thread Troy Kisky
Currently, board files are setting this field to 0x01
which the manual says is a reserved value. Change to
use the default of 0x04 - 128 cycles.

Signed-off-by: Troy Kisky troy.ki...@boundarydevices.com
---
 board/freescale/mx53ard/imximage_dd3.cfg |2 +-
 board/freescale/mx53evk/imximage.cfg |2 +-
 board/freescale/mx53loco/imximage.cfg|2 +-
 board/freescale/mx53smd/imximage.cfg |2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)




I've tested on an mx53, but this needs much more
testing before being applied.




diff --git a/board/freescale/mx53ard/imximage_dd3.cfg 
b/board/freescale/mx53ard/imximage_dd3.cfg
index 50e05af..614d29e 100644
--- a/board/freescale/mx53ard/imximage_dd3.cfg
+++ b/board/freescale/mx53ard/imximage_dd3.cfg
@@ -91,6 +91,6 @@ DATA 4 0x63fd901c 0x00028039
 DATA 4 0x63fd901c 0x05208138
 DATA 4 0x63fd901c 0x04008048
 DATA 4 0x63fd9020 0x5800
-DATA 4 0x63fd9040 0x04b80003
+DATA 4 0x63fd9040 0x05380003
 DATA 4 0x63fd9058 0x0007
 DATA 4 0x63fd901C 0x
diff --git a/board/freescale/mx53evk/imximage.cfg 
b/board/freescale/mx53evk/imximage.cfg
index dd7528c..915fb2c 100644
--- a/board/freescale/mx53evk/imximage.cfg
+++ b/board/freescale/mx53evk/imximage.cfg
@@ -108,5 +108,5 @@ DATA 4 0x63fd901c 0x00448039
 DATA 4 0x63fd9020 0x5800
 DATA 4 0x63fd9058 0x0005
 DATA 4 0x63fd901c 0x
-DATA 4 0x63fd9040 0x04b80003
+DATA 4 0x63fd9040 0x05380003
 DATA 4 0x53fa8004 0x00194005
diff --git a/board/freescale/mx53loco/imximage.cfg 
b/board/freescale/mx53loco/imximage.cfg
index f30258e..2ce5f8d 100644
--- a/board/freescale/mx53loco/imximage.cfg
+++ b/board/freescale/mx53loco/imximage.cfg
@@ -91,6 +91,6 @@ DATA 4 0x63fd901c 0x00028039
 DATA 4 0x63fd901c 0x05208138
 DATA 4 0x63fd901c 0x04008048
 DATA 4 0x63fd9020 0x5800
-DATA 4 0x63fd9040 0x04b80003
+DATA 4 0x63fd9040 0x05380003
 DATA 4 0x63fd9058 0x0007
 DATA 4 0x63fd901c 0x
diff --git a/board/freescale/mx53smd/imximage.cfg 
b/board/freescale/mx53smd/imximage.cfg
index 50e05af..614d29e 100644
--- a/board/freescale/mx53smd/imximage.cfg
+++ b/board/freescale/mx53smd/imximage.cfg
@@ -91,6 +91,6 @@ DATA 4 0x63fd901c 0x00028039
 DATA 4 0x63fd901c 0x05208138
 DATA 4 0x63fd901c 0x04008048
 DATA 4 0x63fd9020 0x5800
-DATA 4 0x63fd9040 0x04b80003
+DATA 4 0x63fd9040 0x05380003
 DATA 4 0x63fd9058 0x0007
 DATA 4 0x63fd901C 0x
-- 
1.7.5.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Patchwork housekeeping

2012-03-22 Thread Scott Wood
On 03/21/2012 09:58 PM, Graeme Russ wrote:
 Hello Custodians and Mailing List Aficionados,
 
 I don't know if anyone has noticed, but patchwork is starting to collect
 a rather large amount of cruft.
 
 I occasionally jump onto patchwork and do a little housekeeping by marking
 updated patches as 'Superceeded' and anything applied by Wolfgang as
 'Accepted' (There may be a few patches that have been applied to custodian
 tress that I marked as 'Accepted' when really they should have been marked
 as 'Awaiting Upstream')
 
 I really don't mind doing this housekeeping, but I would like to make a
 few suggestions that will make the work a little easier:
 
  - If you are a custodian:
 o When you apply a patch to your repo, can you please assign it to
   yourself in patchwork and set it to 'Awaiting Upstream'
 o Reply to the ML with 'Applied to repo/branch'
 o When you send a pull request, create a bundle with all the patches
   that are to be pulled (you can create the bundle early and add
   patches as you apply them)
 o When Wolfgang pulls your repo, go to the bundle and mark all the
   patches 'Accepted'

A while back I recall it being established that patches should be marked
accepted when they go into the custodian repo -- has this changed?

-Scott

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Patchwork housekeeping

2012-03-22 Thread McClintock Matthew-B29882
On Thu, Mar 22, 2012 at 10:08 AM, Tom Rini tr...@ti.com wrote:
 On 03/21/2012 07:58 PM, Graeme Russ wrote:

 Hello Custodians and Mailing List Aficionados,

 I don't know if anyone has noticed, but patchwork is starting to collect
 a rather large amount of cruft.


 Do we, or do we not have the magic update patchwork when the master repo
 gets a patch hook setup?  It's not fool-proof, but it works well.

Where does one find this?

-M
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Patchwork housekeeping

2012-03-22 Thread Tom Rini

On 03/22/2012 09:09 AM, McClintock Matthew-B29882 wrote:

On Thu, Mar 22, 2012 at 10:08 AM, Tom Rinitr...@ti.com  wrote:

On 03/21/2012 07:58 PM, Graeme Russ wrote:


Hello Custodians and Mailing List Aficionados,

I don't know if anyone has noticed, but patchwork is starting to collect
a rather large amount of cruft.



Do we, or do we not have the magic update patchwork when the master repo
gets a patch hook setup?  It's not fool-proof, but it works well.


Where does one find this?


I'm just a user over in OpenEmbedded-land where it's in use.  Khem?

--
Tom
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Patchwork housekeeping

2012-03-22 Thread Khem Raj
On Thu, Mar 22, 2012 at 10:22 AM, Tom Rini tr...@ti.com wrote:

 I don't know if anyone has noticed, but patchwork is starting to collect
 a rather large amount of cruft.



 Do we, or do we not have the magic update patchwork when the master repo
 gets a patch hook setup?  It's not fool-proof, but it works well.


 Where does one find this?


 I'm just a user over in OpenEmbedded-land where it's in use.  Khem?

Yes. I am the one who set it up on OE. Its setup as post-receive hook.
I am attaching the sample to this mail.

Thanks
-Khem


post-receive.patchwork.oe
Description: Binary data
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] exporting the U-Boot functions to standalone application

2012-03-22 Thread Wolfgang Denk
Dear Haneef Mohamed,

please stop top posting / full quoting.  Read
http://www.netmeister.org/news/learn2quote.html


In message 1332426646.25781.yahoomail...@web193302.mail.sg3.yahoo.com you 
wrote:
 
 
 How do we link with u-boot? i did not understand.

Add your sources like any other command source file to the U-Boot
tree, ad it to the respectiuve Makefile, and build and link it with
the rest of the U-Boot code.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
I refuse to have a battle of wits with an unarmed person.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] tegra: Specify debugging serial port at boot.

2012-03-22 Thread Wolfgang Denk
Dear Simon,

In message CAPnjgZ2EzvwagqKpAwKGgU-=bpsgosjhso03o0g8gwolnyn...@mail.gmail.com 
you wrote:
 
  Yes, it is there, sorry.
 
  Which commit is that?
 
 It was 295d3942: Add board_pre_console_putc to deal with early console outp=
 ut
 
 The discussion threads are around here:
 
 http://lists.denx.de/pipermail/u-boot/2011-August/099620.html
 
 
 If you are looking for a revert :-)
 
 http://patchwork.ozlabs.org/patch/147617/

Yes, this should be reverted, indeed.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Nothing ever becomes real till it is experienced -- even a proverb is
no proverb to you till your life has illustrated it. - John Keats
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] BOOT: Add RAW ramdisk support to bootz

2012-03-22 Thread Wolfgang Denk
Dear Marek Vasut,

In message 201203221745.16226.marek.va...@gmail.com you wrote:
 
   Dear Wolfgang Denk, are we OK with applying this and bootz patch please?
   Can we get it into .04 release please?
  
  this - which patch version exactly are you referring to?
 
 Revision V6.

Could you please be a bit more specific?  Like posting a link to the
respective message on gmane, or in patchwork?

The Subject: of this message is BOOT: Add RAW ramdisk support to
bootz, but I have not seen any V6 for this patch.  Ican only guess
that you might be referring to [PATCH V6] BOOT: Add bootz command to
boot Linux zImage on ARM - but I'd rather be sure. 

 I believe this patch is quite important to the linux-arm people and early 
 adoption of this stuff would be very beneficial. Also, there are other 
 patches 
 that were applied after the MW was closed. Finally, this patch started long 
 before .04 release cycle.

Where/when?

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
A little suffering is good for the soul.
-- Kirk, The Corbomite Maneuver, stardate 1514.0
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] tegra: Specify debugging serial port at boot.

2012-03-22 Thread Wolfgang Denk
Dear Simon Glass,

In message capnjgz1sagr7iu0ewrtrojira9kpptxz8apladino0ck1q6...@mail.gmail.com 
you wrote:
 
 I am going to have a similar problem in the SPL soon - how to deal
 with panic(). Advice gratefully accepted.

The SPL code is not special in this regard: initialize the console
port as soon as possible; then use it.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
A Stanford research group advertised for participants in a  study  of
obsessive-compulsive  disorder. They were looking for therapy clients
who had been diagnosed with this disorder. The  response  was  grati-
fying;  they  got  3,000 responses about three days after the ad came
out. All from the same person.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] tegra: Specify debugging serial port at boot.

2012-03-22 Thread Simon Glass
Hi Wolfgang,

On Thu, Mar 22, 2012 at 4:00 PM, Wolfgang Denk w...@denx.de wrote:
 Dear Simon,

 In message 
 CAPnjgZ2EzvwagqKpAwKGgU-=bpsgosjhso03o0g8gwolnyn...@mail.gmail.com you 
 wrote:

  Yes, it is there, sorry.
 
  Which commit is that?

 It was 295d3942: Add board_pre_console_putc to deal with early console outp=
 ut

 The discussion threads are around here:

 http://lists.denx.de/pipermail/u-boot/2011-August/099620.html


 If you are looking for a revert :-)

 http://patchwork.ozlabs.org/patch/147617/

 Yes, this should be reverted, indeed.

OK, well you have it there.

I am going to have a similar problem in the SPL soon - how to deal
with panic(). Advice gratefully accepted.

Regards,
Simon


 Best regards,

 Wolfgang Denk

 --
 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: w...@denx.de
 Nothing ever becomes real till it is experienced -- even a proverb is
 no proverb to you till your life has illustrated it.     - John Keats
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] tegra: Specify debugging serial port at boot.

2012-03-22 Thread Graeme Russ
Hi Simon,

On Fri, Mar 23, 2012 at 10:03 AM, Simon Glass s...@google.com wrote:

 I am going to have a similar problem in the SPL soon - how to deal
 with panic(). Advice gratefully accepted.

Take a leaf out of the Linux x86 source

arch/x86/boot/main.c - This is the start of the 16-bit 'real-mode' code
which is entered by the boot loader (so it's like SPL - IPL being the
BIOS/Bootloader combo)

void main(void)
{
/* First, copy the boot header into the zeropage */
copy_boot_params();

/* Initialize the early-boot console */
console_init();
...


arch/x86/boot/early_serial_console.c

void console_init(void)
{
parse_earlyprintk();

if (!early_serial_base)
parse_console_uart8250();
}

early_serial_base is a global defined in boot.h:

extern int early_serial_base;

You can do the same in SPL, but you are not going to have the luxury of
having it configurable unless you can do so in some non-volatile memory
or hardware configuration (dedicated GPIO pins etc)

It's a chicken and egg scenario - If you want your default console port to
be configurable, you need code to determine the configuration. But you
cannot spew out debug messages for the code which determines the console
configuration. Linux x86 has the same problem, there is no way to ouput
debug messages in copy_boot_params() or console_init()

In U-Boot we kind of 'cheat' - We define a board specific default console
in the board config (hard coded in the U-Boot binary) which we use unitl
environment variables are available. Linux x86 could do the same - have
compile time options which allow the serial console to be enabled before
copy_boot_params(), but the amount of code which is 'dark' is so small
it's not worth it.

U-Boot is different, the amount of code that is 'dark' before the
environment variables are available is rather large. And pre console
buffer covers the 'dark' code just prior to the hard-coded console being
available (but of course pre console buffer does not help if there is a
hang or crash before the hard-coded console is available)

I should check - Is it possible to not have a default console, and
therefor pre console buffer is used all the way up to the console defined
in the environment being intialised?

Regards,

Graeme
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] OMAP3: pandora: pin mux updates for DM3730 board variant

2012-03-22 Thread Grazvydas Ignotas
DM3730 needs some additional pin mux configuration for GPIOs
126-129 to work, add it.

Signed-off-by: Grazvydas Ignotas nota...@gmail.com
---
 arch/arm/include/asm/arch-omap3/mux.h |6 ++
 board/pandora/pandora.c   |3 +++
 board/pandora/pandora.h   |6 ++
 3 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/arch/arm/include/asm/arch-omap3/mux.h 
b/arch/arm/include/asm/arch-omap3/mux.h
index 6daef49..71f183d 100644
--- a/arch/arm/include/asm/arch-omap3/mux.h
+++ b/arch/arm/include/asm/arch-omap3/mux.h
@@ -445,6 +445,12 @@
 #define CONTROL_PADCONF_STRBEN_DLY10x0224
 #define CONTROL_PADCONF_SYS_BOOT8  0x0226
 
+/* AM/DM37xx specific */
+#define CONTROL_PADCONF_GPIO1270x0A54
+#define CONTROL_PADCONF_GPIO1260x0A56
+#define CONTROL_PADCONF_GPIO1280x0A58
+#define CONTROL_PADCONF_GPIO1290x0A5A
+
 #define MUX_VAL(OFFSET,VALUE)\
writew((VALUE), OMAP34XX_CTRL_BASE + (OFFSET));
 
diff --git a/board/pandora/pandora.c b/board/pandora/pandora.c
index 58a676d..70d2d82 100644
--- a/board/pandora/pandora.c
+++ b/board/pandora/pandora.c
@@ -103,6 +103,9 @@ int misc_init_r(void)
 void set_muxconf_regs(void)
 {
MUX_PANDORA();
+   if (get_cpu_family() == CPU_OMAP36XX) {
+   MUX_PANDORA_3730();
+   }
 }
 
 #ifdef CONFIG_GENERIC_MMC
diff --git a/board/pandora/pandora.h b/board/pandora/pandora.h
index f0ad16b..fea8bf2 100644
--- a/board/pandora/pandora.h
+++ b/board/pandora/pandora.h
@@ -399,4 +399,10 @@ const omap3_sysinfo sysinfo = {
MUX_VAL(CP(SDRC_CKE0),  (IDIS | PTU | EN  | M0)) /*sdrc_cke0*/\
MUX_VAL(CP(SDRC_CKE1),  (IDIS | PTU | EN  | M0)) /*sdrc_cke1*/
 
+#define MUX_PANDORA_3730() \
+   MUX_VAL(CP(GPIO126),(IEN  | PTD | DIS | M4)) /*GPIO_126 - 
MMC1_WP*/\
+   MUX_VAL(CP(GPIO127),(IEN  | PTD | DIS | M4)) /*GPIO_127 - 
MMC2_WP*/\
+   MUX_VAL(CP(GPIO128),(IDIS | PTD | DIS | M4)) /*GPIO_128 - 
LED_MMC1*/\
+   MUX_VAL(CP(GPIO129),(IDIS | PTD | DIS | M4)) /*GPIO_129 - 
LED_MMC2*/
+
 #endif
-- 
1.7.0.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] OMAP3: pandora: revise GPIO configuration

2012-03-22 Thread Grazvydas Ignotas
Update pandora's GPIO setup code with these changes:
- convert to gpiolib
- set up dual voltage GPIOs to match supply of 1.8V by clearing VMODE1
- add GPIO_IO_PWRDNZ configuration for DM3730 variation of pandora
  (required to enable GPIO 126, 127, and 129 I/O cells in DM3730)
- add wifi reset pulse as recommended by wifi chip's manufacturer
- drop configuration of GPIOs that u-boot doesn't need

Signed-off-by: Grazvydas Ignotas nota...@gmail.com
---
 board/pandora/pandora.c |   54 +++---
 1 files changed, 41 insertions(+), 13 deletions(-)

diff --git a/board/pandora/pandora.c b/board/pandora/pandora.c
index 70d2d82..4702612 100644
--- a/board/pandora/pandora.c
+++ b/board/pandora/pandora.c
@@ -32,6 +32,7 @@
 #include common.h
 #include twl4030.h
 #include asm/io.h
+#include asm/gpio.h
 #include asm/arch/mmc_host_def.h
 #include asm/arch/mux.h
 #include asm/arch/gpio.h
@@ -45,6 +46,10 @@ DECLARE_GLOBAL_DATA_PTR;
 #define TWL4030_BB_CFG_BBSEL_3200MV(3  2)
 #define TWL4030_BB_CFG_BBISEL_500UA2
 
+#define CONTROL_WKUP_CTRL  0x48002a5c
+#define GPIO_IO_PWRDNZ (1  6)
+#define PBIASLITEVMODE1(1  8)
+
 /*
  * Routine: board_init
  * Description: Early hardware init.
@@ -60,29 +65,52 @@ int board_init(void)
return 0;
 }
 
+static void set_output_gpio(unsigned int gpio, int value)
+{
+   int ret;
+
+   ret = gpio_request(gpio, );
+   if (ret != 0) {
+   printf(could not request GPIO %u\n, gpio);
+   return;
+   }
+   ret = gpio_direction_output(gpio, value);
+   if (ret != 0)
+   printf(could not set GPIO %u to %d\n, gpio, value);
+}
+
 /*
  * Routine: misc_init_r
  * Description: Configure board specific parts
  */
 int misc_init_r(void)
 {
-   struct gpio *gpio1_base = (struct gpio *)OMAP34XX_GPIO1_BASE;
-   struct gpio *gpio4_base = (struct gpio *)OMAP34XX_GPIO4_BASE;
-   struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE;
-   struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE;
+   t2_t *t2_base = (t2_t *)T2_BASE;
+   u32 pbias_lite;
 
twl4030_led_init(TWL4030_LED_LEDEN_LEDBON);
 
-   /* Configure GPIOs to output */
-   writel(~(GPIO14 | GPIO15 | GPIO16 | GPIO23), gpio1_base-oe);
-   writel(~GPIO22, gpio4_base-oe);   /* 118 */
-   writel(~(GPIO0 | GPIO1 | GPIO28 | GPIO29 | GPIO30 | GPIO31),
-   gpio5_base-oe);   /* 128, 129, 156-159 */
-   writel(~GPIO4, gpio6_base-oe);/* 164 */
+   /* set up dual-voltage GPIOs to 1.8V */
+   pbias_lite = readl(t2_base-pbias_lite);
+   pbias_lite = ~PBIASLITEVMODE1;
+   pbias_lite |= PBIASLITEPWRDNZ1;
+   writel(pbias_lite, t2_base-pbias_lite);
+   if (get_cpu_family() == CPU_OMAP36XX)
+   writel(readl(CONTROL_WKUP_CTRL) | GPIO_IO_PWRDNZ,
+   CONTROL_WKUP_CTRL);
+
+   /* make sure audio and BT chips are in powerdown state */
+   set_output_gpio(14, 0);
+   set_output_gpio(15, 0);
+   set_output_gpio(118, 0);
+
+   /* enable USB supply */
+   set_output_gpio(164, 1);
 
-   /* Set GPIOs */
-   writel(GPIO28, gpio5_base-setdataout);
-   writel(GPIO4, gpio6_base-setdataout);
+   /* wifi needs a short pulse to enter powersave state */
+   set_output_gpio(23, 1);
+   udelay(5000);
+   gpio_direction_output(23, 0);
 
/* Enable battery backup capacitor (3.2V, 0.5mA charge current) */
twl4030_i2c_write_u8(TWL4030_CHIP_PM_RECEIVER,
-- 
1.7.0.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] OMAP3: pandora: drop console kernel argument

2012-03-22 Thread Grazvydas Ignotas
As ttyS0 is no longer valid for newer OMAP kernels, and pandora serial
cables are not widespread, simply drop console argument. This should
allow booting old and new kernels with default arguments, and those who
need serial can use a boot script on SD card.

Signed-off-by: Grazvydas Ignotas nota...@gmail.com
---
 include/configs/omap3_pandora.h |3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/include/configs/omap3_pandora.h b/include/configs/omap3_pandora.h
index 4df5f5d..d02f338 100644
--- a/include/configs/omap3_pandora.h
+++ b/include/configs/omap3_pandora.h
@@ -174,8 +174,7 @@
usbtty=cdc_acm\0 \
loadaddr=0x8200\0 \
bootargs=ubi.mtd=4 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs  \
-   rw rootflags=bulk_read console=ttyS0,115200n8  \
-   vram=6272K omapfb.vram=0:3000K\0 \
+   rw rootflags=bulk_read vram=6272K omapfb.vram=0:3000K\0 \
mtdparts= MTDPARTS_DEFAULT \0 \
 
 #define CONFIG_BOOTCOMMAND \
-- 
1.7.0.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/2] mx28evk: Provide default values for SPI bus and chip select

2012-03-22 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com

Provide default values for SPI bus and chip select.

This allows the command sf probe to work without passing SPI bus and chip 
select numbers as arguments.

Signed-off-by: Fabio Estevam fabio.este...@freescale.com
---
 include/configs/mx28evk.h |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index 04967d7..112fda4 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -186,6 +186,8 @@
 /* SPI Flash */
 #ifdef CONFIG_CMD_SF
 #define CONFIG_SPI_FLASH
+#define CONFIG_SF_DEFAULT_BUS  2
+#define CONFIG_SF_DEFAULT_CS   0
 /* this may vary and depends on the installed chip */
 #define CONFIG_SPI_FLASH_SST
 #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/2] configs: imx: Use CONFIG_SF_DEFAULT_CS

2012-03-22 Thread Fabio Estevam
CONFIG_SPI_FLASH_CS is not used anywhere.

Use CONFIG_SF_DEFAULT_CS instead.

Signed-off-by: Fabio Estevam fabio.este...@freescale.com
---
 include/configs/efikamx.h |2 +-
 include/configs/m28evk.h  |2 +-
 include/configs/vision2.h |2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/configs/efikamx.h b/include/configs/efikamx.h
index af542fa..120055f 100644
--- a/include/configs/efikamx.h
+++ b/include/configs/efikamx.h
@@ -113,7 +113,7 @@
 
 #define CONFIG_SPI_FLASH
 #define CONFIG_SPI_FLASH_SST
-#define CONFIG_SPI_FLASH_CS(1 | 121  8)
+#define CONFIG_SF_DEFAULT_CS   (1 | 121  8)
 #define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0)
 #define CONFIG_SF_DEFAULT_SPEED2500
 
diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index 4d59153..4b97c71 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -252,7 +252,7 @@
 #ifdef CONFIG_CMD_SF
 #defineCONFIG_SPI_FLASH
 #defineCONFIG_SPI_FLASH_STMICRO
-#defineCONFIG_SPI_FLASH_CS 2
+#defineCONFIG_SF_DEFAULT_CS2
 #defineCONFIG_SF_DEFAULT_MODE  SPI_MODE_0
 #defineCONFIG_SF_DEFAULT_SPEED 2400
 
diff --git a/include/configs/vision2.h b/include/configs/vision2.h
index 35b71f7..f6904f3 100644
--- a/include/configs/vision2.h
+++ b/include/configs/vision2.h
@@ -72,7 +72,7 @@
  * Use gpio 4 pin 25 as chip select for SPI flash
  * This corresponds to gpio 121
  */
-#define CONFIG_SPI_FLASH_CS(1 | (121  8))
+#define CONFIG_SF_DEFAULT_CS   (1 | (121  8))
 #define CONFIG_SF_DEFAULT_MODE   SPI_MODE_0
 #define CONFIG_SF_DEFAULT_SPEED  2500
 
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/1] MX53: DDR: Fix ZQHWCTRL field TZQ_CS

2012-03-22 Thread Troy Kisky

On 3/22/2012 3:00 PM, Troy Kisky wrote:

Currently, board files are setting this field to 0x01
which the manual says is a reserved value. Change to
use the default of 0x04 - 128 cycles.

Typo, should say default of 0x02 - 128 cycles



Signed-off-by: Troy Kiskytroy.ki...@boundarydevices.com
---
  board/freescale/mx53ard/imximage_dd3.cfg |2 +-
  board/freescale/mx53evk/imximage.cfg |2 +-
  board/freescale/mx53loco/imximage.cfg|2 +-
  board/freescale/mx53smd/imximage.cfg |2 +-
  4 files changed, 4 insertions(+), 4 deletions(-)




I've tested on an mx53, but this needs much more
testing before being applied.




___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/1] MX53: DDR: Fix ZQHWCTRL field TZQ_CS

2012-03-22 Thread Troy Kisky

On 3/22/2012 6:47 PM, Troy Kisky wrote:

On 3/22/2012 3:00 PM, Troy Kisky wrote:

Currently, board files are setting this field to 0x01
which the manual says is a reserved value. Change to
use the default of 0x04 - 128 cycles.

Typo, should say default of 0x02 - 128 cycles


Possibly the manual is wrong, and the value of 0x01 corresponds
to 64 cycles? My testing was on a DDR2 device where this field
is not relevant.




Signed-off-by: Troy Kiskytroy.ki...@boundarydevices.com
---
  board/freescale/mx53ard/imximage_dd3.cfg |2 +-
  board/freescale/mx53evk/imximage.cfg |2 +-
  board/freescale/mx53loco/imximage.cfg|2 +-
  board/freescale/mx53smd/imximage.cfg |2 +-
  4 files changed, 4 insertions(+), 4 deletions(-)




I've tested on an mx53, but this needs much more
testing before being applied.






___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [RFC v0 01/11] omap3+: Introduce configs/omap3_common.h

2012-03-22 Thread Jason Kridner
I'm reading/replying to these one-by-one for sanity/clarity with regards
to BeagleBoard...

-Original Message-
From: Tom Rini tr...@ti.com
Date: Thu, 22 Mar 2012 12:09:07 -0700
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC v0 01/11] omap3+: Introduce configs/omap3_common.h

This is a common file for OMAP3 (and OMAP3-alike) platforms to have
default, configurable when needed values and choices placed.  All users
of this file now have a section for providing their overrides (when the
defaults are not wanted), this file, and then a place to opt-out of
choices this file has made.

Signed-off-by: Tom Rini tr...@ti.com
---
 include/configs/am3517_crane.h |   19 +-
 include/configs/am3517_evm.h   |   20 ++-
 include/configs/cm_t35.h   |   22 +++--
 include/configs/devkit8000.h   |   24 --
 include/configs/dig297.h   |   22 +++--
 include/configs/igep00x0.h |   19 --
 include/configs/mcx.h  |   24 +++
 include/configs/mt_ventoux.h   |   13 ++
 include/configs/omap3_beagle.h |   19 +-
 include/configs/omap3_common.h |   40

 include/configs/omap3_evm.h|3 --
 include/configs/omap3_evm_common.h |   15 ---
 include/configs/omap3_evm_quick_mmc.h  |7 +++--
 include/configs/omap3_evm_quick_nand.h |7 +++--
 include/configs/omap3_logic.h  |   20 ++-
 include/configs/omap3_mvblx.h  |   23 +++---
 include/configs/omap3_overo.h  |   19 +-
 include/configs/omap3_pandora.h|   19 +-
 include/configs/omap3_sdp3430.h|   38
--
 include/configs/omap3_zoom1.h  |   19 +-
 include/configs/omap3_zoom2.h  |   19 +-
 include/configs/tam3517-common.h   |   21 ++--
 include/configs/tricorder.h|   23 --
 include/configs/twister.h  |   14 +++
 24 files changed, 315 insertions(+), 154 deletions(-)
 create mode 100644 include/configs/omap3_common.h



...remove non-beagle patches for brevity...


 
diff --git a/include/configs/omap3_beagle.h
b/include/configs/omap3_beagle.h
index 80b9a5a..21e4b01 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -29,16 +29,21 @@
 #define __CONFIG_H
 
 /*
- * High Level Configuration Options
+ * Values that differ from platform defaults or are unspecified.
  */
-#define CONFIG_OMAP   1   /* in a TI OMAP core */
-#define CONFIG_OMAP34XX   1   /* which is a 34XX */
-#define CONFIG_OMAP3_BEAGLE   1   /* working with BEAGLE */
+#define CONFIG_SDRC   /* The chip has SDRC controller */
 
-#define CONFIG_SDRC   /* The chip has SDRC controller */

I can see it can make sense to have an OMAP/DM/AM3x target without SDRC
enabled.

+/* Platform defaults */
+#include configs/omap3_common.h
 
-#include asm/arch/cpu.h /* get chip and board defs */
-#include asm/arch/omap3.h
+/*
+ * Override the common platform file choices.
+ */
+
+/*
+ * Other configuration options
+ */
+#define CONFIG_OMAP3_BEAGLE   /* working with BEAGLE */
 
 /*
  * Display CPU and Board information
diff --git a/include/configs/omap3_common.h
b/include/configs/omap3_common.h
new file mode 100644
index 000..417dec0
--- /dev/null
+++ b/include/configs/omap3_common.h
@@ -0,0 +1,40 @@
+/*
+ * (C) Copyright 2012
+ * Texas Instruments Incorporated.
+ * Tom Rini tr...@ti.com
+ *
+ * TI OMAP3 (and AM/DM related parts) common configuration settings
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __CONFIG_OMAP3_COMMON_H
+#define __CONFIG_OMAP3_COMMON_H
+
+/*
+ * A TI OMAP3 (or similar) core
+ */
+#define CONFIG_OMAP
+#define CONFIG_OMAP34XX
+
+/* Get CPU defs */
+#include asm/arch/cpu.h
+#include asm/arch/omap3.h
+
+#endif /* __CONFIG_OMAP3_COMMON_H */

... non-beagle stuff removed for brevity ...

I think this change looks rather useful and would have no negative impact.