lkml.org 
[lkml]   [2015]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 11/13] mfd: intel-lpss: Pass HSUART configuration via properties
    Date
    From: Mika Westerberg <mika.westerberg@linux.intel.com>

    The HS-UART host controller driver needs to know certain properties like
    width of the register set if it cannot get that information from ACPI or
    DT. In order to support non-ACPI systems we pass this information to the
    driver via device properties.

    Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    ---
    drivers/mfd/intel-lpss-pci.c | 13 +++++++++++++
    1 file changed, 13 insertions(+)

    diff --git a/drivers/mfd/intel-lpss-pci.c b/drivers/mfd/intel-lpss-pci.c
    index 5bfdfcc..74f0d6d 100644
    --- a/drivers/mfd/intel-lpss-pci.c
    +++ b/drivers/mfd/intel-lpss-pci.c
    @@ -65,9 +65,21 @@ static const struct intel_lpss_platform_info spt_info = {
    .clk_rate = 120000000,
    };

    +static struct property_entry uart_properties[] = {
    + PROPERTY_ENTRY_U32("reg-io-width", 4),
    + PROPERTY_ENTRY_U32("reg-shift", 2),
    + PROPERTY_ENTRY_U8("snps,uart-16550-compatible", 1),
    + { },
    +};
    +
    +static struct property_set uart_pset = {
    + .properties = uart_properties,
    +};
    +
    static const struct intel_lpss_platform_info spt_uart_info = {
    .clk_rate = 120000000,
    .clk_con_id = "baudclk",
    + .pset = &uart_pset,
    };

    static const struct intel_lpss_platform_info bxt_info = {
    @@ -77,6 +89,7 @@ static const struct intel_lpss_platform_info bxt_info = {
    static const struct intel_lpss_platform_info bxt_uart_info = {
    .clk_rate = 100000000,
    .clk_con_id = "baudclk",
    + .pset = &uart_pset,
    };

    static const struct intel_lpss_platform_info bxt_i2c_info = {
    --
    2.6.2


    \
     
     \ /
      Last update: 2015-11-24 11:41    [W:2.679 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site