[RFC PATCH v2 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-05 Thread Lorenzo Pieralisi
The TC2 versatile express core tile integrates a logic block that provides the interface between the dual cluster test-chip and the M3 microcontroller that carries out power management. The logic block, called Serial Power Controller (SPC), contains several memory mapped registers to control among

Re: [RFC PATCH v2 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-05 Thread Nicolas Pitre
On Wed, 5 Jun 2013, Lorenzo Pieralisi wrote: The TC2 versatile express core tile integrates a logic block that provides the interface between the dual cluster test-chip and the M3 microcontroller that carries out power management. The logic block, called Serial Power Controller (SPC),

Re: [RFC PATCH v2 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-05 Thread Jon Medhurst (Tixy)
On Wed, 2013-06-05 at 12:46 +0100, Lorenzo Pieralisi wrote: [...] + +static bool __init __vexpress_spc_check_loaded(void); +static bool (*spc_check_loaded)(void) = __vexpress_spc_check_loaded; We get a section mismatch warning from the above because __vexpress_spc_check_loaded is marked

Re: [RFC PATCH v2 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-05 Thread Jon Medhurst (Tixy)
On Wed, 2013-06-05 at 12:46 +0100, Lorenzo Pieralisi wrote: [...] +static const struct of_device_id vexpress_spc_ids[] __initconst = { + { .compatible = arm,vexpress-spc,v2p-ca15_a7 }, + { .compatible = arm,vexpress-spc }, + {}, +}; + +static int __init vexpress_spc_init(void)

Re: [RFC PATCH v2 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-05 Thread Lorenzo Pieralisi
On Wed, Jun 05, 2013 at 07:08:33PM +0100, Jon Medhurst (Tixy) wrote: On Wed, 2013-06-05 at 12:46 +0100, Lorenzo Pieralisi wrote: [...] +static const struct of_device_id vexpress_spc_ids[] __initconst = { + { .compatible = arm,vexpress-spc,v2p-ca15_a7 }, + { .compatible =