From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932605AbbICPnO (ORCPT ); Thu, 3 Sep 2015 11:43:14 -0400 Received: from eusmtp01.atmel.com ([212.144.249.243]:1081 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932686AbbICPnD (ORCPT ); Thu, 3 Sep 2015 11:43:03 -0400 Subject: Re: [PATCH linux-next v9 1/3] mfd: atmel-flexcom: create include file with macros used by DT bindings To: Cyrille Pitchen , , , , References: <69844d8092ccbcaef6a3a24d39127ca432462d69.1441118159.git.cyrille.pitchen@atmel.com> CC: , , , , , , , From: Nicolas Ferre Organization: atmel Message-ID: <55E86A59.7060107@atmel.com> Date: Thu, 3 Sep 2015 17:42:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <69844d8092ccbcaef6a3a24d39127ca432462d69.1441118159.git.cyrille.pitchen@atmel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 01/09/2015 16:46, Cyrille Pitchen a écrit : > This patch defines some macros to be used as value for the > "atmel,flexcom-mode" DT property. This value is then written into > the Operating Mode (OPMODE) bit field of the Flexcom Mode Register. > > Signed-off-by: Cyrille Pitchen Acked-by: Nicolas Ferre > --- > include/dt-bindings/mfd/atmel-flexcom.h | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > create mode 100644 include/dt-bindings/mfd/atmel-flexcom.h > > diff --git a/include/dt-bindings/mfd/atmel-flexcom.h b/include/dt-bindings/mfd/atmel-flexcom.h > new file mode 100644 > index 000000000000..6728f2851b4d > --- /dev/null > +++ b/include/dt-bindings/mfd/atmel-flexcom.h > @@ -0,0 +1,16 @@ > +/* > + * This header provides macros for Atmel Flexcom DT bindings. > + * > + * Copyright (C) 2015 Cyrille Pitchen > + * > + * GPLv2 only > + */ > + > +#ifndef __DT_BINDINGS_ATMEL_FLEXCOM_H__ > +#define __DT_BINDINGS_ATMEL_FLEXCOM_H__ > + > +#define ATMEL_FLEXCOM_MODE_USART 1 > +#define ATMEL_FLEXCOM_MODE_SPI 2 > +#define ATMEL_FLEXCOM_MODE_TWI 3 > + > +#endif /* __DT_BINDINGS_ATMEL_FLEXCOM_H__ */ > -- Nicolas Ferre