Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1676044

Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash Controller v2

From Marek Vasut <marek.vasut@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash Controller v2
Date 2017-06-27 20:00 +0200
Message-ID <tX2Wl-3Sd-9@gated-at.bofh.it> (permalink)
References (1 earlier) <tWEU1-4zS-5@gated-at.bofh.it> <tWVUS-7zY-17@gated-at.bofh.it> <tX08a-1VG-23@gated-at.bofh.it> <tX1xg-32b-13@gated-at.bofh.it> <tX2tk-3Gw-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 06/27/2017 07:26 PM, matthew.gerlach@linux.intel.com wrote:

[...]

>>>>> +#ifndef __ALTERA_QUADSPI_H
>>>>> +#define __ALTERA_QUADSPI_H
>>>>> +
>>>>> +#include <linux/device.h>
>>>>> +
>>>>> +#define ALTERA_QUADSPI_FL_BITREV_READ BIT(0)
>>>>> +#define ALTERA_QUADSPI_FL_BITREV_WRITE BIT(1)
>>>>> +
>>>>> +#define ALTERA_QUADSPI_MAX_NUM_FLASH_CHIP 3
>>>>> +
>>>>> +int altera_quadspi_create(struct device *dev, void __iomem *csr_base,
>>>>> +              void __iomem *data_base, void __iomem *window_reg,
>>>>> +              size_t window_size, u32 flags);
>>>>> +
>>>>> +int altera_qspi_add_bank(struct device *dev,
>>>>> +             u32 bank, struct device_node *np);
>>>>> +
>>>>> +int altera_quadspi_remove_banks(struct device *dev);
>>>>
>>>> Why is this header needed at all ?
>>>
>>> This header is needed because of the very different ways
>>> FPGAs can be used with a processor running Linux.  In the case of a
>>> soft processor in the FPGA or an ARM connected to a FPGA, this header
>>> is not necessary because device trees are used to probe the driver.
>>> However, if the FPGA is on a PCIe card connected to an x86, device trees
>>> are not generally used, and the pcie driver must enumerate the
>>> "sub-driver".
>>
>> But we don't support that later part, do we ?
> 
> There is currently v2 patch set for the intel-fpga PCIe driver being
> reviewed where I am adding support for version 2 of the Altera Quadspi
> controller.

It'd be real nice to mention that in the cover letter with a link to
that patchset , otherwise it's real hard to understand why you did this.

> This technique of separating core driver code from platform/device tree
> code has been reviewed and accepted for the Altera Partial
> Reconfiguration IP, Altera Freeze Bridge, and the fpga region.

-- 
Best regards,
Marek Vasut

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash Controller v2 matthew.gerlach@linux.intel.com - 2017-06-26 18:20 +0200
  Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash  Controller v2 Marek Vasut <marek.vasut@gmail.com> - 2017-06-27 12:30 +0200
    Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash  Controller v2 matthew.gerlach@linux.intel.com - 2017-06-27 17:00 +0200
      Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash  Controller v2 Marek Vasut <marek.vasut@gmail.com> - 2017-06-27 18:30 +0200
        Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash  Controller v2 matthew.gerlach@linux.intel.com - 2017-06-27 19:30 +0200
          Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash  Controller v2 Marek Vasut <marek.vasut@gmail.com> - 2017-06-27 20:00 +0200
            Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash  Controller v2 matthew.gerlach@linux.intel.com - 2017-06-27 21:50 +0200

csiph-web