Re: [PATCH 2/5] ARM: Add interface for registering and calling firmware-specific operations

2012-09-22 Thread Russell King - ARM Linux
On Fri, Sep 21, 2012 at 11:23:22PM -0700, Olof Johansson wrote: > static void __iomem *default_cpu_boot_reg(int cpu) > { > return (void __iomem *)0; > } NULL is perfectly acceptable here. -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message

Re: [PATCH 2/5] ARM: Add interface for registering and calling firmware-specific operations

2012-09-22 Thread Tomasz Figa
Hi Olof, Kyungmin, On Friday 21 of September 2012 23:23:22 Olof Johansson wrote: > On Sat, Sep 22, 2012 at 03:01:56PM +0900, Kyungmin Park wrote: > > On 9/22/12, Olof Johansson wrote: > > > On Thu, Sep 13, 2012 at 10:13:35AM +0200, Tomasz Figa wrote: > > >> +#define call_firmware_op(op, ...)

Re: [PATCH 2/5] ARM: Add interface for registering and calling firmware-specific operations

2012-09-21 Thread Olof Johansson
On Sat, Sep 22, 2012 at 03:01:56PM +0900, Kyungmin Park wrote: > On 9/22/12, Olof Johansson wrote: > > On Thu, Sep 13, 2012 at 10:13:35AM +0200, Tomasz Figa wrote: > >> Some boards are running with secure firmware running in TrustZone secure > >> world, which changes the way some things have to be

Re: [PATCH 2/5] ARM: Add interface for registering and calling firmware-specific operations

2012-09-21 Thread Kyungmin Park
On 9/22/12, Olof Johansson wrote: > On Thu, Sep 13, 2012 at 10:13:35AM +0200, Tomasz Figa wrote: >> Some boards are running with secure firmware running in TrustZone secure >> world, which changes the way some things have to be initialized. >> >> This patch adds an interface for platforms to speci

Re: [PATCH 2/5] ARM: Add interface for registering and calling firmware-specific operations

2012-09-21 Thread Olof Johansson
On Thu, Sep 13, 2012 at 10:13:35AM +0200, Tomasz Figa wrote: > Some boards are running with secure firmware running in TrustZone secure > world, which changes the way some things have to be initialized. > > This patch adds an interface for platforms to specify available firmware > operations and c

Re: [PATCH 2/5] ARM: Add interface for registering and calling firmware-specific operations

2012-09-13 Thread Tomasz Figa
On Thursday 13 of September 2012 10:13:35 Tomasz Figa wrote: > In code using firmware ops: > > __raw_writel(virt_to_phys(exynos4_secondary_startup), > CPU1_BOOT_REG); > > /* Call Exynos specific smc call */ > do_firmware_op(cpu_boot, cpu); Typo, s/do_/call_/ . Be

[PATCH 2/5] ARM: Add interface for registering and calling firmware-specific operations

2012-09-13 Thread Tomasz Figa
Some boards are running with secure firmware running in TrustZone secure world, which changes the way some things have to be initialized. This patch adds an interface for platforms to specify available firmware operations and call them. A wrapper macro, call_firmware_op(), checks if the operation