All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/9] imx: esdhc: Needed to use in imx-regs.h defined address
Date: Wed, 18 Apr 2012 17:05:19 +0200	[thread overview]
Message-ID: <4F8ED82F.5010905@denx.de> (raw)
In-Reply-To: <4F8E9FF3.8050805@exertus.fi>

On 18/04/2012 13:05, Timo Ketola wrote:

>>
>> fsl_esdhc.c includes config.h. If your board configuration file includes
>> imx-regs.h, as most i.MX boards do, the file is automatically included,
>> I suppose.
> 
> I tried that but then:
> 
> .../u-boot-imx/build-exe4026/include/asm/arch/imx-regs.h:43:2: error:
> expected specifier-qualifier-list before ?u32?
> 
> when compiling
> 
> arch/arm/cpu/arm926ejs/cpu.o

Well, I have not said that there cannot be other issues. At first glance
you must include asm/types.h, in cpu.c or in imx-regs.h.

>>> PPC seems to use a predefined macro from asm/immap_8xxx.h files. Where
>>> is that file included?
>>
>> It is a different way. The board configuration file includes the
>> register description file, so for example immap_86xx.h, immap_85xx.h,
> 
> Where? I don't see an example.

For PPC86xx I can see at least:

arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c:#include <asm/immap_86xx.h>
arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c:#include <asm/immap_86xx.h>
board/freescale/mpc8610hpcd/mpc8610hpcd.c:#include <asm/immap_86xx.h>
board/freescale/mpc8641hpcn/mpc8641hpcn.c:#include <asm/immap_86xx.h>

> But I see them included in common.h.
> Should there be also imx-regs? Seems to work if I do so.

No, this is wrong.

> 
>> or
>> imx-regs.h, and defines CONFIG_SYS_FSL_ESDHC_ADDR using its own specific
>> macro, if any, for example:
>>
>> #define CONFIG_SYS_FSL_ESDHC_ADDR       CONFIG_SYS_MPC85xx_ESDHC_ADDR
>>
>> Why is it not enough for you to set in your board configuration file:
>>
>> #define CONFIG_SYS_FSL_ESDHC_ADDR       IMX_MMC_SDHC1_BASE
> 
> I tried also exactly that, but then:
> 
> fsl_esdhc.c:544:20: error: ?IMX_MMC_SDHC1_BASE? undeclared (first use in
> this function)

...then imx-regs.h was not included...

> 
> fsl_esdhc.c seems not to see imx-regs.h file.
> 
> Then I tried to include imx-regs.h in fsl_esdhc.c and 'MAKEALL -a arm'
> was happy.
> 
> Maybe the right fix is to include imx-regs in common.h?

No. common.h, as the name suggests, is for all architectures, not only
for i.MX. We cannot fix i:MX and break other boards.

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: sbabic at denx.de
=====================================================================

  reply	other threads:[~2012-04-18 15:05 UTC|newest]

Thread overview: 110+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12  9:33 [U-Boot] [PATCH 0/8] i.MX25: Miscellaneus fixes Timo Ketola
2012-04-12  9:33 ` [U-Boot] [PATCH 1/8] i.MX25: add mxc_get_clock infrastructure Timo Ketola
2012-04-12  9:33 ` [U-Boot] [PATCH 2/8] i.MX: Add target flashable to offset 0 Timo Ketola
2012-04-12 11:11   ` Stefano Babic
2012-04-12 11:21     ` Timo Ketola
2012-04-12  9:33 ` [U-Boot] [PATCH 3/8] Build: Ignore build tree and IDE control file Timo Ketola
2012-04-12 11:13   ` Stefano Babic
2012-04-12 11:24     ` Timo Ketola
2012-04-12 12:00       ` Stefano Babic
2012-04-12 12:04         ` Timo Ketola
2012-08-09 20:26   ` Wolfgang Denk
2012-08-13  5:43     ` Timo Ketola
2012-04-12  9:33 ` [U-Boot] [PATCH 4/8] i.MX25: Has a GPIO4 too Timo Ketola
2012-04-12 11:15   ` Stefano Babic
2012-04-12 12:10   ` Wolfgang Denk
2012-04-12 12:20     ` Timo Ketola
2012-04-12 13:09       ` Detlev Zundel
2012-04-13  4:58         ` Timo Ketola
2012-04-12  9:33 ` [U-Boot] [PATCH 5/8] MXC FEC: Resolve speed before configuring gasket Timo Ketola
2012-04-12 12:05   ` Stefano Babic
2012-04-12 13:16     ` Timo Ketola
2012-04-12 14:31       ` Stefano Babic
2012-04-12 12:12   ` Wolfgang Denk
2012-04-12 19:59   ` Troy Kisky
2012-04-12 20:12     ` Timo Ketola
2012-04-12  9:33 ` [U-Boot] [PATCH 6/8] i.MX25: Add Exertus EXE4026 board Timo Ketola
2012-04-12 10:43   ` Fabio Estevam
2012-04-12 10:57     ` Timo Ketola
2012-04-12 12:06   ` Stefano Babic
2012-04-12 12:09     ` Timo Ketola
2012-04-12 12:40       ` Stefano Babic
2012-04-12  9:33 ` [U-Boot] [PATCH 7/8] MXC NAND: Place BBT patterns into free OOB region Timo Ketola
2012-04-12  9:33 ` [U-Boot] [PATCH 8/8] i.MX25: This model has almost the same USB-controller as i.MX31 Timo Ketola
2012-04-13 11:20 ` [U-Boot] [PATCH 0/9 v2] i.MX25: Miscellaneus fixes Timo Ketola
2012-04-13 11:20   ` [U-Boot] [PATCH 1/9] i.MX25: esdhc: Add mxc_get_clock infrastructure Timo Ketola
2012-04-13 11:20   ` [U-Boot] [PATCH 2/9] i.MX25: This architecture has a GPIO4 too Timo Ketola
2012-04-13 11:20   ` [U-Boot] [PATCH 3/9] imx: fec: Resolve speed before configuring gasket Timo Ketola
2012-04-13 11:20   ` [U-Boot] [PATCH 4/9] imx: nand: Place BBT patterns into free OOB region Timo Ketola
2012-04-13 17:19     ` Scott Wood
2012-04-13 18:12       ` Timo Ketola
2012-04-13 18:17         ` Scott Wood
2012-04-13 18:39           ` Timo Ketola
2012-04-16  6:41           ` Timo Ketola
2012-04-16 14:43             ` Scott Wood
2012-04-13 11:20   ` [U-Boot] [PATCH 5/9] i.MX25: This architecture has almost the same USB-controller as i.MX31 Timo Ketola
2012-04-13 11:20   ` [U-Boot] [PATCH 6/9] imx: usb: There is no such register Timo Ketola
2012-04-13 11:20   ` [U-Boot] [PATCH 7/9] imx: esdhc: Needed to use in imx-regs.h defined address Timo Ketola
2012-04-13 11:21   ` [U-Boot] [PATCH 8/9] imx: nand: Don't invent new configuration variable Timo Ketola
2012-04-13 17:21     ` Scott Wood
2012-04-13 18:28       ` Timo Ketola
2012-04-13 11:21   ` [U-Boot] [PATCH 9/9] imx: Add u-boot.imx as target for ARM9 i.MX SOCs Timo Ketola
2012-04-18  7:57 ` [U-Boot] [PATCH 0/8 v3] i.MX25: Miscellaneus fixes Timo Ketola
2012-04-18  7:57   ` [U-Boot] [PATCH 1/9] i.MX25: esdhc: Add mxc_get_clock infrastructure Timo Ketola
2012-04-18  9:23     ` Wolfgang Denk
2012-04-18 10:42       ` Timo Ketola
2012-04-18  7:57   ` [U-Boot] [PATCH 2/9] i.MX25: This architecture has a GPIO4 too Timo Ketola
2012-04-18  7:57   ` [U-Boot] [PATCH 3/9] imx: fec: Resolve speed before configuring gasket Timo Ketola
2012-04-18  7:57   ` [U-Boot] [PATCH 4/9] imx: nand: Support flash based BBT Timo Ketola
2012-04-18 16:30     ` Scott Wood
2012-04-18  7:57   ` [U-Boot] [PATCH 5/9] i.MX25: This architecture has almost the same USB-controller as i.MX31 Timo Ketola
2012-04-18  7:57   ` [U-Boot] [PATCH 6/9] imx: usb: There is no such register Timo Ketola
2012-04-18  9:05     ` Stefano Babic
2012-04-18  9:15       ` Timo Ketola
2012-04-18 10:32         ` Stefano Babic
2012-04-18  7:57   ` [U-Boot] [PATCH 7/9] imx: esdhc: Needed to use in imx-regs.h defined address Timo Ketola
2012-04-18  8:43     ` Stefano Babic
2012-04-18  9:11       ` Timo Ketola
2012-04-18 10:30         ` Stefano Babic
2012-04-18 11:05           ` Timo Ketola
2012-04-18 15:05             ` Stefano Babic [this message]
2012-04-18 16:27               ` Timo Ketola
2012-04-18 16:59                 ` Timo Ketola
2012-04-18  7:57   ` [U-Boot] [PATCH 8/9] imx: Add u-boot.imx as target for ARM9 i.MX SOCs Timo Ketola
2012-04-18  8:13   ` [U-Boot] [PATCH 0/8 v3] i.MX25: Miscellaneus fixes Timo Ketola
2012-04-18  8:40   ` Stefano Babic
2012-04-19  8:55 ` [U-Boot] [PATCH V4 0/8] i.MX25: Preparing new board with miscellaneus fixes Timo Ketola
2012-04-19  8:55   ` [U-Boot] [PATCH V4 1/8] i.MX25: esdhc: Add mxc_get_clock infrastructure Timo Ketola
2012-04-19 16:15     ` Stefano Babic
2012-05-06 17:24     ` Stefano Babic
2012-04-19  8:55   ` [U-Boot] [PATCH V4 2/8] i.MX25: This architecture has a GPIO4 too Timo Ketola
2012-04-19 16:17     ` Stefano Babic
2012-05-06 17:17     ` Stefano Babic
2012-04-19  8:55   ` [U-Boot] [PATCH V4 3/8] imx: fec: Resolve speed before configuring gasket Timo Ketola
2012-04-19 16:16     ` Stefano Babic
2012-04-19 19:27     ` Troy Kisky
2012-04-19 20:18       ` Timo Ketola
2012-04-19 21:13         ` Troy Kisky
2012-04-19 21:23           ` Troy Kisky
2012-04-20  4:35             ` Timo Ketola
2012-04-20  7:30               ` Stefano Babic
2012-04-20  8:54                 ` Timo Ketola
2012-04-23  7:55                   ` Stefano Babic
2012-04-23  8:17                     ` Timo Ketola
2012-04-19 21:28     ` Troy Kisky
2012-04-20  4:25       ` Timo Ketola
2012-04-19  8:55   ` [U-Boot] [PATCH V4 4/8] imx: nand: Support flash based BBT Timo Ketola
2012-04-19 15:27     ` Scott Wood
2012-05-06 17:18     ` Stefano Babic
2012-04-19  8:55   ` [U-Boot] [PATCH V4 5/8] i.MX25: usb: Set PORTSCx register Timo Ketola
2012-04-19 16:16     ` Stefano Babic
2012-05-01 19:46       ` Marek Vasut
2012-05-06 17:19     ` Stefano Babic
2012-04-19  8:55   ` [U-Boot] [PATCH V4 6/8] imx: usb: There is no such register Timo Ketola
2012-04-19 16:17     ` Stefano Babic
2012-05-06 17:20     ` Stefano Babic
2012-04-19  8:55   ` [U-Boot] [PATCH V4 7/8] i.MX2: Include asm/types.h in arch-mx25/imx-regs.h Timo Ketola
2012-04-19 16:17     ` Stefano Babic
2012-05-06 17:21     ` Stefano Babic
2012-04-19  8:55   ` [U-Boot] [PATCH V4 8/8] imx: Add u-boot.imx as target for ARM9 i.MX SOCs Timo Ketola
2012-04-19 16:17     ` Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F8ED82F.5010905@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.