[PATCH v2 06/10] spi: add Marvell MVEBU SoC SPI driver
Sebastian Hesselbarth
sebastian.hesselbarth at gmail.com
Thu Jul 4 03:39:56 EDT 2013
On 07/04/13 09:36, Sascha Hauer wrote:
> On Tue, Jul 02, 2013 at 08:30:45PM +0200, Sebastian Hesselbarth wrote:
>> This adds support for the SPI controller found on Marvell MVEBU SoCs
>> (Dove, Kirkwood, Discovery Innovation, and Armada 370/XP). Current driver
>> is DT only. Compatible strings are provided for Orion (common denominator),
>> Armada 370/XP and Dove SoCs.
>>
>> +#if defined(ARCH_ARMADA_370) || defined(ARCH_ARMADA_XP)
>
> These have to be CONFIG_*. Also elsewhere in this patch.
Ok will update and resend.
>> +static int mvebu_spi_probe(struct device_d *dev)
>> +{
>> + struct spi_master *master;
>> + struct mvebu_spi *priv;
>> + const struct of_device_id *match;
>> + int ret = 0;
>> +
>> + match = of_match_node(mvebu_spi_dt_ids, dev->device_node);
>> + if (!match)
>> + return -EINVAL;
>> +
>> + priv = xzalloc(sizeof(*priv));
>> + priv->base = dev_request_mem_region(dev, 0);
>> + if (!priv->base) {
>> + ret = -EINVAL;
>> + goto err_free;
>> + }
>> + priv->set_baudrate = (void *)match->data;
>> + priv->clk = clk_lookup("tclk");
>
> still clk_lookup?
That was in drivers/clocksource/{orion,mvebu}.c. This slipped through.
Will be fixed in v3.
Sebastian
More information about the barebox
mailing list