From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Fri, 28 Oct 2016 18:49:39 +0200 Subject: [U-Boot] [U-Boot, v11] dm: at91: Add driver model support for the spi driver In-Reply-To: <1477635469-12593-1-git-send-email-wenyou.yang@atmel.com> (from Wenyou Yang on Fri, 28 Oct 2016 14:17:49 +0800) References: <1477635469-12593-1-git-send-email-wenyou.yang@atmel.com> Message-ID: <20161028164939.29639-1-andreas@biessmann.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wenyou Yang, Wenyou Yang writes: >Add driver model support while retaining the existing legacy code. >This allows the driver to support boards that have converted to >driver model as well as those that have not. > >Signed-off-by: Wenyou Yang >Reviewed-by: Simon Glass >Acked-by: Stephen Warren >--- > >Changes in v11: > - Set cs_gpio direction to output and active. > - Use wait_for_bit() to replace do {} while (). > - Add more description for help of ATMEL_SPI. > >Changes in v10: > - Add Acked-by tag. > >Changes in v9: > - Due to the peripheral clock driver improvement, remove the > unneccessary clock calling. > >Changes in v8: > - Fix compile error for AVR32. > >Changes in v7: > - Move gpio_request_list_by_name() to _probe(), remove > *_ofdata_to_platdata(). > >Changes in v6: > - Remove the two flash related options. > >Changes in v5: > - Change clk_client.h -> clk.h to adapt to clk API conversion. > >Changes in v4: > - Collect Reviewed-by tag. > - Update the clk API based on [PATCH] clk: convert API to match > reset/mailbox fstyle (http://patchwork.ozlabs.org/patch/625342/). > - Remove check on dev_get_parent() return. > - Fixed the return value, -ENODEV->-EINVAL. > - Retain #include line. > >Changes in v3: > - Remove redundant log print. > >Changes in v2: > - Add clock support. > > drivers/spi/Kconfig | 8 ++ > drivers/spi/atmel_spi.c | 288 ++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 296 insertions(+) applied to u-boot-atmel/master, thanks! Best regards, Andreas Bie?mann