From: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/6] rockchip: spl: rk3399: prepare to have SPI config per-board
Date: Wed, 29 Mar 2017 13:31:25 +0200 [thread overview]
Message-ID: <1490787091-21008-1-git-send-email-philipp.tomsich@theobroma-systems.com> (raw)
To support SPI flashes (via the device model) and enable loading of
later-stage images from SPI in SPL, we need a few adjustments to the
common configuration header for the RK3399:
- enable SPL_SPI_LOAD if SPI is enabled for SPL (in rk3399_common)
- move CONFIG_SPI and CONFIG_SPI_FLASH (from rk3399_common) to defconfig
Changes in v2:
- fixes a wrong macro usage, which caused the SPI module input clock
frequency to be significantly higher than intended
- frequencies have now been validated using an oscilloscope (keep in mind
that all frequencies are derived from a 99MHz module input clock) at the
following measurement points:
* 1 MHz ... 0.99 MHz
* 5 MHz ... 4.95 MHz
* 10 MHz ... 9.9 MHz
* 30 MHz ... 33 MHz
* 50 MHz ... 49.5 MHz
- fixes an off-by-one for the RK3399 that cause the SPI module input
clock to be misstated as 84MHz (even though it was running at 99MHz)
Jakob Unterwurzacher (2):
rockchip: spi: enable support for the rk_spi driver for the RK3399
rockchip: spi: rk3399: move CONFIG_SPI and CONFIG_SPI_FLASH to
defconfig
Philipp Tomsich (4):
rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5
clk: rk3399: fix off-by one during rate calculation in
i2c/spi_set_rate
rockchip: pinctrl: rk3399: add support for the SPI5 controller
rockchip: spl: rk3399: enable SPL_SPI_LOAD if SPI is enabled for SPL
arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 12 +++++
arch/arm/include/asm/arch-rockchip/periph.h | 3 ++
drivers/clk/rockchip/clk_rk3399.c | 71 ++++++++++++++++++++++++-
drivers/pinctrl/rockchip/pinctrl_rk3399.c | 17 ++++++
drivers/spi/rk_spi.c | 1 +
include/configs/rk3399_common.h | 5 +-
6 files changed, 106 insertions(+), 3 deletions(-)
--
1.9.1
next reply other threads:[~2017-03-29 11:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-29 11:31 Philipp Tomsich [this message]
2017-03-29 11:31 ` [U-Boot] [PATCH v2 1/6] rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5 Philipp Tomsich
2017-03-29 11:31 ` [U-Boot] [PATCH v2 2/6] clk: rk3399: fix off-by one during rate calculation in i2c/spi_set_rate Philipp Tomsich
2017-04-01 4:23 ` Simon Glass
2017-03-29 11:31 ` [U-Boot] [PATCH v2 3/6] rockchip: pinctrl: rk3399: add support for the SPI5 controller Philipp Tomsich
2017-04-01 4:23 ` Simon Glass
2017-03-29 11:31 ` [U-Boot] [PATCH v2 4/6] rockchip: spi: enable support for the rk_spi driver for the RK3399 Philipp Tomsich
2017-04-01 4:23 ` Simon Glass
2017-03-29 11:31 ` [U-Boot] [PATCH v2 5/6] rockchip: spi: rk3399: move CONFIG_SPI and CONFIG_SPI_FLASH to defconfig Philipp Tomsich
2017-04-01 4:23 ` Simon Glass
2017-04-05 1:05 ` Simon Glass
2017-03-29 11:31 ` [U-Boot] [PATCH v2 6/6] rockchip: spl: rk3399: enable SPL_SPI_LOAD if SPI is enabled for SPL Philipp Tomsich
2017-04-01 4:23 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1490787091-21008-1-git-send-email-philipp.tomsich@theobroma-systems.com \
--to=philipp.tomsich@theobroma-systems.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.