linux/include/linux/spi/at86rf230.h
<<
>>
Prefs
   1/*
   2 * AT86RF230/RF231 driver
   3 *
   4 * Copyright (C) 2009-2012 Siemens AG
   5 *
   6 * This program is free software; you can redistribute it and/or modify
   7 * it under the terms of the GNU General Public License version 2
   8 * as published by the Free Software Foundation.
   9 *
  10 * This program is distributed in the hope that it will be useful,
  11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13 * GNU General Public License for more details.
  14 *
  15 * You should have received a copy of the GNU General Public License along
  16 * with this program; if not, write to the Free Software Foundation, Inc.,
  17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18 *
  19 * Written by:
  20 * Dmitry Eremin-Solenikov <dmitry.baryshkov@siemens.com>
  21 */
  22#ifndef AT86RF230_H
  23#define AT86RF230_H
  24
  25struct at86rf230_platform_data {
  26        int rstn;
  27        int slp_tr;
  28        int dig2;
  29
  30        /* Setting the irq_type will configure the driver to request
  31         * the platform irq trigger type according to the given value
  32         * and configure the interrupt polarity of the device to the
  33         * corresponding polarity.
  34         *
  35         * Allowed values are: IRQF_TRIGGER_RISING, IRQF_TRIGGER_FALLING,
  36         *                     IRQF_TRIGGER_HIGH and IRQF_TRIGGER_LOW
  37         *
  38         * Setting it to 0, the driver does not touch the trigger type
  39         * configuration of the interrupt and sets the interrupt polarity
  40         * of the device to high active (the default value).
  41         */
  42        int irq_type;
  43};
  44
  45#endif
  46