Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-10 Thread Tom Rini
On Wed, Feb 04, 2015 at 09:48:32AM +0100, Albert ARIBAUD wrote: Hello Tom, On Mon, 2 Feb 2015 13:56:57 -0500, Tom Rini tr...@ti.com wrote: And (and this is being split into different email threads, sigh), it would be good, possibly, if we have something that means very early init

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-10 Thread Simon Glass
Hi Tom, On 10 February 2015 at 15:07, Tom Rini tr...@ti.com wrote: On Wed, Feb 04, 2015 at 09:48:32AM +0100, Albert ARIBAUD wrote: Hello Tom, On Mon, 2 Feb 2015 13:56:57 -0500, Tom Rini tr...@ti.com wrote: And (and this is being split into different email threads, sigh), it would be

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-05 Thread Hans de Goede
Hi, On 05-02-15 04:00, Simon Glass wrote: Hi Albert, On 4 February 2015 at 01:48, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Tom, On Mon, 2 Feb 2015 13:56:57 -0500, Tom Rini tr...@ti.com wrote: And (and this is being split into different email threads, sigh), it would be good,

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-05 Thread Simon Glass
Hi Albert, On 5 February 2015 at 11:02, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Simon, On Thu, 5 Feb 2015 08:34:53 -0700, Simon Glass s...@chromium.org wrote: Hi Albert, reset - no stack, no RAM ( (except SPL can presumably access data section) More precisely: from a

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-05 Thread Simon Glass
Hi Albert, On 5 February 2015 at 08:14, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Simon, On Wed, 4 Feb 2015 20:00:48 -0700, Simon Glass s...@chromium.org wrote: Hi Albert, On 4 February 2015 at 01:48, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Tom, On Mon, 2

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-05 Thread Albert ARIBAUD
Hello Simon, On Wed, 4 Feb 2015 20:00:48 -0700, Simon Glass s...@chromium.org wrote: Hi Albert, On 4 February 2015 at 01:48, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Tom, On Mon, 2 Feb 2015 13:56:57 -0500, Tom Rini tr...@ti.com wrote: And (and this is being split into

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-05 Thread Albert ARIBAUD
Hello Simon, On Thu, 5 Feb 2015 08:34:53 -0700, Simon Glass s...@chromium.org wrote: Hi Albert, reset - no stack, no RAM ( (except SPL can presumably access data section) More precisely: from a hardware viewpoint there would be no DDR, but there could be SRAM, and from a program

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-04 Thread Albert ARIBAUD
Hello Tom, On Mon, 2 Feb 2015 13:56:57 -0500, Tom Rini tr...@ti.com wrote: And (and this is being split into different email threads, sigh), it would be good, possibly, if we have something that means very early init things, but we can be written in C. Very early -- and early too, BTW -- is

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-04 Thread Simon Glass
Hi Albert, On 4 February 2015 at 01:48, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Tom, On Mon, 2 Feb 2015 13:56:57 -0500, Tom Rini tr...@ti.com wrote: And (and this is being split into different email threads, sigh), it would be good, possibly, if we have something that means

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-02 Thread Tom Rini
On Sat, Jan 31, 2015 at 03:14:35PM -0700, Simon Glass wrote: Hi Tom, On 31 January 2015 at 14:49, Tom Rini tr...@ti.com wrote: On Sat, Jan 31, 2015 at 10:25:50PM +0100, Albert ARIBAUD wrote: Hello Tom, On Tue, 27 Jan 2015 09:23:47 -0500, Tom Rini tr...@ti.com wrote: On Mon,

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-02 Thread Simon Glass
+Bin Hi Tom, On 2 February 2015 at 11:56, Tom Rini tr...@ti.com wrote: On Sat, Jan 31, 2015 at 03:14:35PM -0700, Simon Glass wrote: Hi Tom, On 31 January 2015 at 14:49, Tom Rini tr...@ti.com wrote: On Sat, Jan 31, 2015 at 10:25:50PM +0100, Albert ARIBAUD wrote: Hello Tom,

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-31 Thread Albert ARIBAUD
Hello Tom, On Tue, 27 Jan 2015 09:23:47 -0500, Tom Rini tr...@ti.com wrote: On Mon, Jan 26, 2015 at 08:32:41PM +0100, Hans de Goede wrote: Hi, On 26-01-15 16:18, Tom Rini wrote: On Fri, Jan 23, 2015 at 09:54:12AM +0100, Hans de Goede wrote: Hi, On 22-01-15 22:03, Tom Rini wrote:

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-31 Thread Tom Rini
On Sat, Jan 31, 2015 at 10:25:50PM +0100, Albert ARIBAUD wrote: Hello Tom, On Tue, 27 Jan 2015 09:23:47 -0500, Tom Rini tr...@ti.com wrote: On Mon, Jan 26, 2015 at 08:32:41PM +0100, Hans de Goede wrote: Hi, On 26-01-15 16:18, Tom Rini wrote: On Fri, Jan 23, 2015 at 09:54:12AM

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-31 Thread Simon Glass
Hi Tom, On 31 January 2015 at 14:49, Tom Rini tr...@ti.com wrote: On Sat, Jan 31, 2015 at 10:25:50PM +0100, Albert ARIBAUD wrote: Hello Tom, On Tue, 27 Jan 2015 09:23:47 -0500, Tom Rini tr...@ti.com wrote: On Mon, Jan 26, 2015 at 08:32:41PM +0100, Hans de Goede wrote: Hi,

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-27 Thread Tom Rini
On Mon, Jan 26, 2015 at 08:32:41PM +0100, Hans de Goede wrote: Hi, On 26-01-15 16:18, Tom Rini wrote: On Fri, Jan 23, 2015 at 09:54:12AM +0100, Hans de Goede wrote: Hi, On 22-01-15 22:03, Tom Rini wrote: On Thu, Jan 22, 2015 at 08:10:06PM +0100, Hans de Goede wrote: Hi, On 22-01-15

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-26 Thread Tom Rini
On Fri, Jan 23, 2015 at 09:54:12AM +0100, Hans de Goede wrote: Hi, On 22-01-15 22:03, Tom Rini wrote: On Thu, Jan 22, 2015 at 08:10:06PM +0100, Hans de Goede wrote: Hi, On 22-01-15 17:20, Tom Rini wrote: On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans de Goede wrote: On some SoCs /

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-26 Thread Hans de Goede
Hi, On 26-01-15 16:18, Tom Rini wrote: On Fri, Jan 23, 2015 at 09:54:12AM +0100, Hans de Goede wrote: Hi, On 22-01-15 22:03, Tom Rini wrote: On Thu, Jan 22, 2015 at 08:10:06PM +0100, Hans de Goede wrote: Hi, On 22-01-15 17:20, Tom Rini wrote: On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-26 Thread Albert ARIBAUD
Hello Tom, On Thu, 22 Jan 2015 11:20:58 -0500, Tom Rini tr...@ti.com wrote: On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans de Goede wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init hook with a weak default which just calls

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-26 Thread Hans de Goede
Hi, On 26-01-15 09:09, Albert ARIBAUD wrote: Hello Tom, On Thu, 22 Jan 2015 11:20:58 -0500, Tom Rini tr...@ti.com wrote: On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans de Goede wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-23 Thread Hans de Goede
Hi, On 22-01-15 22:03, Tom Rini wrote: On Thu, Jan 22, 2015 at 08:10:06PM +0100, Hans de Goede wrote: Hi, On 22-01-15 17:20, Tom Rini wrote: On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans de Goede wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache,

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-22 Thread Hans de Goede
Hi, On 21-01-15 22:59, Bill Pringlemeir wrote: On 21 Jan 2015, hdego...@redhat.com wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init hook with a weak default which just calls cpu_init_cp15. This way different implementations can be

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-22 Thread Tom Rini
On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans de Goede wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init hook with a weak default which just calls cpu_init_cp15. This way different implementations can be provided to do some extra

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-22 Thread Bill Pringlemeir
On 21 Jan 2015, hdego...@redhat.com wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init hook with a weak default which just calls cpu_init_cp15. This way different implementations can be provided to do some extra work before or

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-22 Thread Hans de Goede
Hi, On 22-01-15 17:20, Tom Rini wrote: On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans de Goede wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init hook with a weak default which just calls cpu_init_cp15. This way different

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-22 Thread Tom Rini
On Thu, Jan 22, 2015 at 08:10:06PM +0100, Hans de Goede wrote: Hi, On 22-01-15 17:20, Tom Rini wrote: On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans de Goede wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init hook with a weak

[U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-21 Thread Hans de Goede
On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init hook with a weak default which just calls cpu_init_cp15. This way different implementations can be provided to do some extra work before or after cpu_init_cp15, or completely replacing

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-21 Thread Bill Pringlemeir
On 21 Jan 2015, hdego...@redhat.com wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init hook with a weak default which just calls cpu_init_cp15. This way different implementations can be provided to do some extra work before or