lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207220837.jtvQ0HOC-lkp@intel.com>
Date:   Fri, 22 Jul 2022 08:32:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     Paul Cercueil <paul@...pouillou.net>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: drivers/pinctrl/cirrus/pinctrl-lochnagar.c:200:1: error: pasting
 formed 'LOCHNAGAR1_(', an invalid preprocessing token

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   68e77ffbfd06ae3ef8f2abf1c3b971383c866983
commit: c434b9f80b0923e6460031b0fd964f8b0bf3c6a6 MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol
date:   1 year, 10 months ago
config: mips-randconfig-r016-20220722 (https://download.01.org/0day-ci/archive/20220722/202207220837.jtvQ0HOC-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0c1b32717bcffcf8edf95294e98933bd4c1e76ed)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mipsel-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/pinctrl/cirrus/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> drivers/pinctrl/cirrus/pinctrl-lochnagar.c:200:1: error: pasting formed 'LOCHNAGAR1_(', an invalid preprocessing token
   LN1_PIN_GPIO(CDC_RESET,    "codec-reset",    RST,      CDC_RESET,    1);
   ^
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:67:2: note: expanded from macro 'LN1_PIN_GPIO'
           LN_PIN_GPIO(1, ID, NAME, REG, SHIFT, INVERT)
           ^
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:52:63: note: expanded from macro 'LN_PIN_GPIO'
           .name = NAME, .type = LN_PTYPE_GPIO, .reg = LOCHNAGAR##REV##_##REG, \
                                                                        ^
>> drivers/pinctrl/cirrus/pinctrl-lochnagar.c:200:1: error: implicit declaration of function 'LOCHNAGAR1_' [-Werror,-Wimplicit-function-declaration]
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:67:2: note: expanded from macro 'LN1_PIN_GPIO'
           LN_PIN_GPIO(1, ID, NAME, REG, SHIFT, INVERT)
           ^
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:52:46: note: expanded from macro 'LN_PIN_GPIO'
           .name = NAME, .type = LN_PTYPE_GPIO, .reg = LOCHNAGAR##REV##_##REG, \
                                                       ^
   <scratch space>:15:1: note: expanded from here
   LOCHNAGAR1_
   ^
>> drivers/pinctrl/cirrus/pinctrl-lochnagar.c:200:1: error: initializer element is not a compile-time constant
   LN1_PIN_GPIO(CDC_RESET,    "codec-reset",    RST,      CDC_RESET,    1);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:67:2: note: expanded from macro 'LN1_PIN_GPIO'
           LN_PIN_GPIO(1, ID, NAME, REG, SHIFT, INVERT)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:52:46: note: expanded from macro 'LN_PIN_GPIO'
           .name = NAME, .type = LN_PTYPE_GPIO, .reg = LOCHNAGAR##REV##_##REG, \
                                                       ^~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:15:1: note: expanded from here
   LOCHNAGAR1_
   ^
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:201:1: error: pasting formed 'LOCHNAGAR1_(', an invalid preprocessing token
   LN1_PIN_GPIO(DSP_RESET,    "dsp-reset",      RST,      DSP_RESET,    1);
   ^
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:67:2: note: expanded from macro 'LN1_PIN_GPIO'
           LN_PIN_GPIO(1, ID, NAME, REG, SHIFT, INVERT)
           ^
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:52:63: note: expanded from macro 'LN_PIN_GPIO'
           .name = NAME, .type = LN_PTYPE_GPIO, .reg = LOCHNAGAR##REV##_##REG, \
                                                                        ^
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:201:1: error: initializer element is not a compile-time constant
   LN1_PIN_GPIO(DSP_RESET,    "dsp-reset",      RST,      DSP_RESET,    1);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:67:2: note: expanded from macro 'LN1_PIN_GPIO'
           LN_PIN_GPIO(1, ID, NAME, REG, SHIFT, INVERT)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/cirrus/pinctrl-lochnagar.c:52:46: note: expanded from macro 'LN_PIN_GPIO'
           .name = NAME, .type = LN_PTYPE_GPIO, .reg = LOCHNAGAR##REV##_##REG, \
                                                       ^~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:26:1: note: expanded from here
   LOCHNAGAR1_
   ^
   5 errors generated.


vim +200 drivers/pinctrl/cirrus/pinctrl-lochnagar.c

0548448b719ac78 Charles Keepax 2019-03-19   55  
0548448b719ac78 Charles Keepax 2019-03-19   56  #define LN_PIN_SAIF(REV, ID, NAME) \
0548448b719ac78 Charles Keepax 2019-03-19   57  static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = \
0548448b719ac78 Charles Keepax 2019-03-19   58  	{ .name = NAME, .type = LN_PTYPE_AIF, }
0548448b719ac78 Charles Keepax 2019-03-19   59  
0548448b719ac78 Charles Keepax 2019-03-19   60  #define LN_PIN_AIF(REV, ID) \
0548448b719ac78 Charles Keepax 2019-03-19   61  	LN_PIN_SAIF(REV, ID##_BCLK,  LN_##ID##_STR"-bclk"); \
0548448b719ac78 Charles Keepax 2019-03-19   62  	LN_PIN_SAIF(REV, ID##_LRCLK, LN_##ID##_STR"-lrclk"); \
0548448b719ac78 Charles Keepax 2019-03-19   63  	LN_PIN_SAIF(REV, ID##_RXDAT, LN_##ID##_STR"-rxdat"); \
0548448b719ac78 Charles Keepax 2019-03-19   64  	LN_PIN_SAIF(REV, ID##_TXDAT, LN_##ID##_STR"-txdat")
0548448b719ac78 Charles Keepax 2019-03-19   65  
0548448b719ac78 Charles Keepax 2019-03-19   66  #define LN1_PIN_GPIO(ID, NAME, REG, SHIFT, INVERT) \
0548448b719ac78 Charles Keepax 2019-03-19  @67  	LN_PIN_GPIO(1, ID, NAME, REG, SHIFT, INVERT)
0548448b719ac78 Charles Keepax 2019-03-19   68  
0548448b719ac78 Charles Keepax 2019-03-19   69  #define LN1_PIN_MUX(ID, NAME) \
0548448b719ac78 Charles Keepax 2019-03-19   70  static const struct lochnagar_pin lochnagar1_##ID##_pin = \
0548448b719ac78 Charles Keepax 2019-03-19   71  	{ .name = NAME, .type = LN_PTYPE_MUX, .reg = LOCHNAGAR1_##ID, }
0548448b719ac78 Charles Keepax 2019-03-19   72  
0548448b719ac78 Charles Keepax 2019-03-19   73  #define LN1_PIN_AIF(ID) LN_PIN_AIF(1, ID)
0548448b719ac78 Charles Keepax 2019-03-19   74  
0548448b719ac78 Charles Keepax 2019-03-19   75  #define LN2_PIN_GPIO(ID, NAME, REG, SHIFT, INVERT) \
0548448b719ac78 Charles Keepax 2019-03-19   76  	LN_PIN_GPIO(2, ID, NAME, REG, SHIFT, INVERT)
0548448b719ac78 Charles Keepax 2019-03-19   77  
0548448b719ac78 Charles Keepax 2019-03-19   78  #define LN2_PIN_MUX(ID, NAME) \
0548448b719ac78 Charles Keepax 2019-03-19   79  static const struct lochnagar_pin lochnagar2_##ID##_pin = \
0548448b719ac78 Charles Keepax 2019-03-19   80  	{ .name = NAME, .type = LN_PTYPE_MUX, .reg = LOCHNAGAR2_GPIO_##ID, }
0548448b719ac78 Charles Keepax 2019-03-19   81  
0548448b719ac78 Charles Keepax 2019-03-19   82  #define LN2_PIN_AIF(ID) LN_PIN_AIF(2, ID)
0548448b719ac78 Charles Keepax 2019-03-19   83  
0548448b719ac78 Charles Keepax 2019-03-19   84  #define LN2_PIN_GAI(ID) \
0548448b719ac78 Charles Keepax 2019-03-19   85  	LN2_PIN_MUX(ID##_BCLK,  LN_##ID##_STR"-bclk"); \
0548448b719ac78 Charles Keepax 2019-03-19   86  	LN2_PIN_MUX(ID##_LRCLK, LN_##ID##_STR"-lrclk"); \
0548448b719ac78 Charles Keepax 2019-03-19   87  	LN2_PIN_MUX(ID##_RXDAT, LN_##ID##_STR"-rxdat"); \
0548448b719ac78 Charles Keepax 2019-03-19   88  	LN2_PIN_MUX(ID##_TXDAT, LN_##ID##_STR"-txdat")
0548448b719ac78 Charles Keepax 2019-03-19   89  
0548448b719ac78 Charles Keepax 2019-03-19   90  #define LN_PIN(REV, ID) [LOCHNAGAR##REV##_PIN_##ID] = { \
0548448b719ac78 Charles Keepax 2019-03-19   91  	.number = LOCHNAGAR##REV##_PIN_##ID, \
0548448b719ac78 Charles Keepax 2019-03-19   92  	.name = lochnagar##REV##_##ID##_pin.name, \
0548448b719ac78 Charles Keepax 2019-03-19   93  	.drv_data = (void *)&lochnagar##REV##_##ID##_pin, \
0548448b719ac78 Charles Keepax 2019-03-19   94  }
0548448b719ac78 Charles Keepax 2019-03-19   95  
0548448b719ac78 Charles Keepax 2019-03-19   96  #define LN1_PIN(ID) LN_PIN(1, ID)
0548448b719ac78 Charles Keepax 2019-03-19   97  #define LN2_PIN(ID) LN_PIN(2, ID)
0548448b719ac78 Charles Keepax 2019-03-19   98  
0548448b719ac78 Charles Keepax 2019-03-19   99  #define LN_PINS(REV, ID) \
0548448b719ac78 Charles Keepax 2019-03-19  100  	LN_PIN(REV, ID##_BCLK), LN_PIN(REV, ID##_LRCLK), \
0548448b719ac78 Charles Keepax 2019-03-19  101  	LN_PIN(REV, ID##_RXDAT), LN_PIN(REV, ID##_TXDAT)
0548448b719ac78 Charles Keepax 2019-03-19  102  
0548448b719ac78 Charles Keepax 2019-03-19  103  #define LN1_PINS(ID) LN_PINS(1, ID)
0548448b719ac78 Charles Keepax 2019-03-19  104  #define LN2_PINS(ID) LN_PINS(2, ID)
0548448b719ac78 Charles Keepax 2019-03-19  105  
0548448b719ac78 Charles Keepax 2019-03-19  106  enum {
0548448b719ac78 Charles Keepax 2019-03-19  107  	LOCHNAGAR1_PIN_GF_GPIO2 = LOCHNAGAR1_PIN_NUM_GPIOS,
0548448b719ac78 Charles Keepax 2019-03-19  108  	LOCHNAGAR1_PIN_GF_GPIO3,
0548448b719ac78 Charles Keepax 2019-03-19  109  	LOCHNAGAR1_PIN_GF_GPIO7,
0548448b719ac78 Charles Keepax 2019-03-19  110  	LOCHNAGAR1_PIN_LED1,
0548448b719ac78 Charles Keepax 2019-03-19  111  	LOCHNAGAR1_PIN_LED2,
0548448b719ac78 Charles Keepax 2019-03-19  112  	LOCHNAGAR1_PIN_CDC_AIF1_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  113  	LOCHNAGAR1_PIN_CDC_AIF1_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  114  	LOCHNAGAR1_PIN_CDC_AIF1_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  115  	LOCHNAGAR1_PIN_CDC_AIF1_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  116  	LOCHNAGAR1_PIN_CDC_AIF2_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  117  	LOCHNAGAR1_PIN_CDC_AIF2_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  118  	LOCHNAGAR1_PIN_CDC_AIF2_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  119  	LOCHNAGAR1_PIN_CDC_AIF2_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  120  	LOCHNAGAR1_PIN_CDC_AIF3_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  121  	LOCHNAGAR1_PIN_CDC_AIF3_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  122  	LOCHNAGAR1_PIN_CDC_AIF3_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  123  	LOCHNAGAR1_PIN_CDC_AIF3_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  124  	LOCHNAGAR1_PIN_DSP_AIF1_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  125  	LOCHNAGAR1_PIN_DSP_AIF1_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  126  	LOCHNAGAR1_PIN_DSP_AIF1_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  127  	LOCHNAGAR1_PIN_DSP_AIF1_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  128  	LOCHNAGAR1_PIN_DSP_AIF2_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  129  	LOCHNAGAR1_PIN_DSP_AIF2_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  130  	LOCHNAGAR1_PIN_DSP_AIF2_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  131  	LOCHNAGAR1_PIN_DSP_AIF2_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  132  	LOCHNAGAR1_PIN_PSIA1_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  133  	LOCHNAGAR1_PIN_PSIA1_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  134  	LOCHNAGAR1_PIN_PSIA1_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  135  	LOCHNAGAR1_PIN_PSIA1_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  136  	LOCHNAGAR1_PIN_PSIA2_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  137  	LOCHNAGAR1_PIN_PSIA2_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  138  	LOCHNAGAR1_PIN_PSIA2_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  139  	LOCHNAGAR1_PIN_PSIA2_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  140  	LOCHNAGAR1_PIN_SPDIF_AIF_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  141  	LOCHNAGAR1_PIN_SPDIF_AIF_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  142  	LOCHNAGAR1_PIN_SPDIF_AIF_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  143  	LOCHNAGAR1_PIN_SPDIF_AIF_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  144  	LOCHNAGAR1_PIN_GF_AIF3_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  145  	LOCHNAGAR1_PIN_GF_AIF3_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  146  	LOCHNAGAR1_PIN_GF_AIF3_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  147  	LOCHNAGAR1_PIN_GF_AIF3_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  148  	LOCHNAGAR1_PIN_GF_AIF4_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  149  	LOCHNAGAR1_PIN_GF_AIF4_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  150  	LOCHNAGAR1_PIN_GF_AIF4_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  151  	LOCHNAGAR1_PIN_GF_AIF4_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  152  	LOCHNAGAR1_PIN_GF_AIF1_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  153  	LOCHNAGAR1_PIN_GF_AIF1_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  154  	LOCHNAGAR1_PIN_GF_AIF1_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  155  	LOCHNAGAR1_PIN_GF_AIF1_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  156  	LOCHNAGAR1_PIN_GF_AIF2_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  157  	LOCHNAGAR1_PIN_GF_AIF2_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  158  	LOCHNAGAR1_PIN_GF_AIF2_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  159  	LOCHNAGAR1_PIN_GF_AIF2_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  160  
0548448b719ac78 Charles Keepax 2019-03-19  161  	LOCHNAGAR2_PIN_SPDIF_AIF_BCLK = LOCHNAGAR2_PIN_NUM_GPIOS,
0548448b719ac78 Charles Keepax 2019-03-19  162  	LOCHNAGAR2_PIN_SPDIF_AIF_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  163  	LOCHNAGAR2_PIN_SPDIF_AIF_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  164  	LOCHNAGAR2_PIN_SPDIF_AIF_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  165  	LOCHNAGAR2_PIN_USB_AIF1_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  166  	LOCHNAGAR2_PIN_USB_AIF1_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  167  	LOCHNAGAR2_PIN_USB_AIF1_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  168  	LOCHNAGAR2_PIN_USB_AIF1_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  169  	LOCHNAGAR2_PIN_USB_AIF2_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  170  	LOCHNAGAR2_PIN_USB_AIF2_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  171  	LOCHNAGAR2_PIN_USB_AIF2_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  172  	LOCHNAGAR2_PIN_USB_AIF2_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  173  	LOCHNAGAR2_PIN_ADAT_AIF_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  174  	LOCHNAGAR2_PIN_ADAT_AIF_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  175  	LOCHNAGAR2_PIN_ADAT_AIF_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  176  	LOCHNAGAR2_PIN_ADAT_AIF_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  177  	LOCHNAGAR2_PIN_SOUNDCARD_AIF_BCLK,
0548448b719ac78 Charles Keepax 2019-03-19  178  	LOCHNAGAR2_PIN_SOUNDCARD_AIF_LRCLK,
0548448b719ac78 Charles Keepax 2019-03-19  179  	LOCHNAGAR2_PIN_SOUNDCARD_AIF_RXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  180  	LOCHNAGAR2_PIN_SOUNDCARD_AIF_TXDAT,
0548448b719ac78 Charles Keepax 2019-03-19  181  };
0548448b719ac78 Charles Keepax 2019-03-19  182  
0548448b719ac78 Charles Keepax 2019-03-19  183  enum lochnagar_pin_type {
0548448b719ac78 Charles Keepax 2019-03-19  184  	LN_PTYPE_GPIO,
0548448b719ac78 Charles Keepax 2019-03-19  185  	LN_PTYPE_MUX,
0548448b719ac78 Charles Keepax 2019-03-19  186  	LN_PTYPE_AIF,
0548448b719ac78 Charles Keepax 2019-03-19  187  	LN_PTYPE_COUNT,
0548448b719ac78 Charles Keepax 2019-03-19  188  };
0548448b719ac78 Charles Keepax 2019-03-19  189  
0548448b719ac78 Charles Keepax 2019-03-19  190  struct lochnagar_pin {
0548448b719ac78 Charles Keepax 2019-03-19  191  	const char name[20];
0548448b719ac78 Charles Keepax 2019-03-19  192  
0548448b719ac78 Charles Keepax 2019-03-19  193  	enum lochnagar_pin_type type;
0548448b719ac78 Charles Keepax 2019-03-19  194  
0548448b719ac78 Charles Keepax 2019-03-19  195  	unsigned int reg;
0548448b719ac78 Charles Keepax 2019-03-19  196  	int shift;
0548448b719ac78 Charles Keepax 2019-03-19  197  	bool invert;
0548448b719ac78 Charles Keepax 2019-03-19  198  };
0548448b719ac78 Charles Keepax 2019-03-19  199  
0548448b719ac78 Charles Keepax 2019-03-19 @200  LN1_PIN_GPIO(CDC_RESET,    "codec-reset",    RST,      CDC_RESET,    1);
0548448b719ac78 Charles Keepax 2019-03-19  201  LN1_PIN_GPIO(DSP_RESET,    "dsp-reset",      RST,      DSP_RESET,    1);
0548448b719ac78 Charles Keepax 2019-03-19  202  LN1_PIN_GPIO(CDC_CIF1MODE, "codec-cif1mode", I2C_CTRL, CDC_CIF_MODE, 0);
0548448b719ac78 Charles Keepax 2019-03-19  203  LN1_PIN_MUX(GF_GPIO2,      "gf-gpio2");
0548448b719ac78 Charles Keepax 2019-03-19  204  LN1_PIN_MUX(GF_GPIO3,      "gf-gpio3");
0548448b719ac78 Charles Keepax 2019-03-19  205  LN1_PIN_MUX(GF_GPIO7,      "gf-gpio7");
0548448b719ac78 Charles Keepax 2019-03-19  206  LN1_PIN_MUX(LED1,          "led1");
0548448b719ac78 Charles Keepax 2019-03-19  207  LN1_PIN_MUX(LED2,          "led2");
0548448b719ac78 Charles Keepax 2019-03-19  208  LN1_PIN_AIF(CDC_AIF1);
0548448b719ac78 Charles Keepax 2019-03-19  209  LN1_PIN_AIF(CDC_AIF2);
0548448b719ac78 Charles Keepax 2019-03-19  210  LN1_PIN_AIF(CDC_AIF3);
0548448b719ac78 Charles Keepax 2019-03-19  211  LN1_PIN_AIF(DSP_AIF1);
0548448b719ac78 Charles Keepax 2019-03-19  212  LN1_PIN_AIF(DSP_AIF2);
0548448b719ac78 Charles Keepax 2019-03-19  213  LN1_PIN_AIF(PSIA1);
0548448b719ac78 Charles Keepax 2019-03-19  214  LN1_PIN_AIF(PSIA2);
0548448b719ac78 Charles Keepax 2019-03-19  215  LN1_PIN_AIF(SPDIF_AIF);
0548448b719ac78 Charles Keepax 2019-03-19  216  LN1_PIN_AIF(GF_AIF1);
0548448b719ac78 Charles Keepax 2019-03-19  217  LN1_PIN_AIF(GF_AIF2);
0548448b719ac78 Charles Keepax 2019-03-19  218  LN1_PIN_AIF(GF_AIF3);
0548448b719ac78 Charles Keepax 2019-03-19  219  LN1_PIN_AIF(GF_AIF4);
0548448b719ac78 Charles Keepax 2019-03-19  220  

:::::: The code at line 200 was first introduced by commit
:::::: 0548448b719ac78fa18fdbcd03856952ba6cc7dc pinctrl: lochnagar: Add support for the Cirrus Logic Lochnagar

:::::: TO: Charles Keepax <ckeepax@...nsource.cirrus.com>
:::::: CC: Linus Walleij <linus.walleij@...aro.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ