All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Hunter <jon-hunter@ti.com>
To: Tony Lindgren <tony@atomide.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
	linux-arm <linux-arm-kernel@lists.infradead.org>,
	Afzal Mohammed <afzal@ti.com>
Subject: Re: [PATCH 2/2] ARM: OMAP2: Fix GPMC memory initialisation
Date: Tue, 5 Feb 2013 18:22:41 -0600	[thread overview]
Message-ID: <5111A251.9020400@ti.com> (raw)
In-Reply-To: <20130205233407.GR25185@atomide.com>


On 02/05/2013 05:34 PM, Tony Lindgren wrote:
> * Jon Hunter <jon-hunter@ti.com> [130204 14:49]:
>>
>> On 02/04/2013 04:12 PM, Jon Hunter wrote:
>>>
>>> On 02/01/2013 03:51 PM, Tony Lindgren wrote:
>>>
>>>> How about let's fix this properly to start with so we don't add
>>>> more blockers moving this code to drivers/bus?
>>>>
>>>> Looks like gpmc_mem_init() gets called from gpmc_probe() so
>>>> we can pass that information in pdev.
>>>
>>> I have re-worked this a bit to use platform data. I have also update
>>> the logic for testing internal/external boot on omap2430 which is
>>> different from omap2420 (according to the TRM). However, I have only
>>> boot tested on omap2420. 
>>>
>>> Do you know why this was changed in the first place? See below ...
>>>
>>> http://permalink.gmane.org/gmane.linux.kernel.commits.head/95931
>>>
>>> Heres what I have now ...
>>
>> Updated patch (I was missing a kfree()). By the way, this is based
>> upon the apollon removal patch. I understand probably needs to be
>> rebased on your latest gpmc series too.
> 
> Yeah makes sense to me thanks. I'll figure out where to apply this
> so we don't get too many dependencies.

Actually, let me look into this a bit more. It appears that for all
omap2+ devices NOR should be mapped to CS0 at 0x08000000. So I am
wondering if the boot-loader is re-mapping the CS0 space. If it is then
may be we can avoid having such hacks in the kernel by fixing the
bootloader. To date only the apollon board has really had this problem
and I need to check what I have on my H4 (which has been hacked by me ;-)

Cheers
Jon

WARNING: multiple messages have this Message-ID (diff)
From: jon-hunter@ti.com (Jon Hunter)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: OMAP2: Fix GPMC memory initialisation
Date: Tue, 5 Feb 2013 18:22:41 -0600	[thread overview]
Message-ID: <5111A251.9020400@ti.com> (raw)
In-Reply-To: <20130205233407.GR25185@atomide.com>


On 02/05/2013 05:34 PM, Tony Lindgren wrote:
> * Jon Hunter <jon-hunter@ti.com> [130204 14:49]:
>>
>> On 02/04/2013 04:12 PM, Jon Hunter wrote:
>>>
>>> On 02/01/2013 03:51 PM, Tony Lindgren wrote:
>>>
>>>> How about let's fix this properly to start with so we don't add
>>>> more blockers moving this code to drivers/bus?
>>>>
>>>> Looks like gpmc_mem_init() gets called from gpmc_probe() so
>>>> we can pass that information in pdev.
>>>
>>> I have re-worked this a bit to use platform data. I have also update
>>> the logic for testing internal/external boot on omap2430 which is
>>> different from omap2420 (according to the TRM). However, I have only
>>> boot tested on omap2420. 
>>>
>>> Do you know why this was changed in the first place? See below ...
>>>
>>> http://permalink.gmane.org/gmane.linux.kernel.commits.head/95931
>>>
>>> Heres what I have now ...
>>
>> Updated patch (I was missing a kfree()). By the way, this is based
>> upon the apollon removal patch. I understand probably needs to be
>> rebased on your latest gpmc series too.
> 
> Yeah makes sense to me thanks. I'll figure out where to apply this
> so we don't get too many dependencies.

Actually, let me look into this a bit more. It appears that for all
omap2+ devices NOR should be mapped to CS0 at 0x08000000. So I am
wondering if the boot-loader is re-mapping the CS0 space. If it is then
may be we can avoid having such hacks in the kernel by fixing the
bootloader. To date only the apollon board has really had this problem
and I need to check what I have on my H4 (which has been hacked by me ;-)

Cheers
Jon

  reply	other threads:[~2013-02-06  0:22 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-01 16:38 [PATCH 0/2] ARM: OMAP2+: GPMC Fixes Jon Hunter
2013-02-01 16:38 ` Jon Hunter
2013-02-01 16:38 ` [PATCH 1/2] ARM: OMAP2+: Prevent potential crash if GPMC probe fails Jon Hunter
2013-02-01 16:38   ` Jon Hunter
2013-02-01 22:08   ` Tony Lindgren
2013-02-01 22:08     ` Tony Lindgren
2013-02-08 22:56     ` Jon Hunter
2013-02-08 22:56       ` Jon Hunter
2013-02-09 15:55       ` Ezequiel Garcia
2013-02-09 15:55         ` Ezequiel Garcia
2013-02-14 12:04         ` Philip, Avinash
2013-02-14 12:04           ` Philip, Avinash
2013-02-16 22:37           ` Grazvydas Ignotas
2013-02-16 22:37             ` Grazvydas Ignotas
2013-02-01 16:38 ` [PATCH 2/2] ARM: OMAP2: Fix GPMC memory initialisation Jon Hunter
2013-02-01 16:38   ` Jon Hunter
2013-02-01 21:51   ` Tony Lindgren
2013-02-01 21:51     ` Tony Lindgren
2013-02-02  1:22     ` Jon Hunter
2013-02-02  1:22       ` Jon Hunter
2013-02-02 18:11       ` Tony Lindgren
2013-02-02 18:11         ` Tony Lindgren
2013-02-04 15:05         ` Jon Hunter
2013-02-04 15:05           ` Jon Hunter
2013-02-04 17:45           ` Tony Lindgren
2013-02-04 17:45             ` Tony Lindgren
2013-02-04 18:46             ` Jon Hunter
2013-02-04 18:46               ` Jon Hunter
2013-02-04 19:15               ` Tony Lindgren
2013-02-04 19:15                 ` Tony Lindgren
2013-02-04 19:33                 ` Jon Hunter
2013-02-04 19:33                   ` Jon Hunter
2013-02-04 19:47                   ` Tony Lindgren
2013-02-04 19:47                     ` Tony Lindgren
2013-02-04 19:51                     ` Jon Hunter
2013-02-04 19:51                       ` Jon Hunter
2013-02-04 22:12     ` Jon Hunter
2013-02-04 22:12       ` Jon Hunter
2013-02-04 22:45       ` Jon Hunter
2013-02-04 22:45         ` Jon Hunter
2013-02-05 23:34         ` Tony Lindgren
2013-02-05 23:34           ` Tony Lindgren
2013-02-06  0:22           ` Jon Hunter [this message]
2013-02-06  0:22             ` Jon Hunter
2013-02-06 17:28             ` Tony Lindgren
2013-02-06 17:28               ` Tony Lindgren

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=5111A251.9020400@ti.com \
    --to=jon-hunter@ti.com \
    --cc=afzal@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /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.