All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/5] rockchip: Add a read-only efuse driver for the RK3399 (and derive serial# from fuses on the RK3399-Q7)
@ 2017-04-28 15:11 Philipp Tomsich
  2017-04-28 15:11 ` [U-Boot] [PATCH v2 1/5] rockchip: clk: rk3399: allow requests for PCLK_EFUSE1024NS Philipp Tomsich
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Philipp Tomsich @ 2017-04-28 15:11 UTC (permalink / raw)
  To: u-boot


As the RK3399-Q7 (Puma) differs from our previous modules in how we
can force an external boot (on the RK3399-Q7 this holds the eMMC and
SPI in reset, until an external signal is removed) through the 'BIOS
disable'-signal of the Qseven specification, we can't derive the
unique board id reliably from the eMMC's unique id.

Instead, for the RK3399-Q7, we rely on the efuse block of the RK3399
and use the (assumed to be unique) cpu_id region.

This patch-series adds the required infrastructure and switches the
RK3399-Q7 (puma_rk3399) over to this new infrastructure:
 - adds a rockchip-efuse driver as a misc-device (and permits requests
   for the clock gate listed in the DTS for the efuse node)
 - ports the CRC32-based 'serial#' derivation over from Linux
 - exposes the complete cpu_id field through 'cpuid#'

Changes in v2:
- added derivation of ethaddr from cpuid

Klaus Goger (1):
  rockchip: board: puma_rk3399: derive ethaddr from cpuid

Philipp Tomsich (4):
  rockchip: clk: rk3399: allow requests for PCLK_EFUSE1024NS
  rockchip: efuse: add (misc) driver for RK3399 non-secure efuse block
  rockchip: board: puma_rk3399: add support for serial# and cpuid# via
    efuses
  rockchip: defconfig: puma-rk3399: enable RK3399 efuse driver

 board/theobroma-systems/puma_rk3399/puma-rk3399.c | 117 ++++++++++++++++
 configs/puma-rk3399_defconfig                     |   2 +
 drivers/clk/rockchip/clk_rk3399.c                 |   4 +
 drivers/misc/Kconfig                              |  14 ++
 drivers/misc/Makefile                             |   1 +
 drivers/misc/rockchip-efuse.c                     | 163 ++++++++++++++++++++++
 include/configs/puma_rk3399.h                     |   4 +
 7 files changed, 305 insertions(+)
 create mode 100644 drivers/misc/rockchip-efuse.c

-- 
1.9.1

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-05-03 10:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-28 15:11 [U-Boot] [PATCH v2 0/5] rockchip: Add a read-only efuse driver for the RK3399 (and derive serial# from fuses on the RK3399-Q7) Philipp Tomsich
2017-04-28 15:11 ` [U-Boot] [PATCH v2 1/5] rockchip: clk: rk3399: allow requests for PCLK_EFUSE1024NS Philipp Tomsich
2017-04-30  3:48   ` Simon Glass
2017-05-02 11:12     ` sjg at google.com
2017-04-28 15:11 ` [U-Boot] [PATCH v2 2/5] rockchip: efuse: add (misc) driver for RK3399 non-secure efuse block Philipp Tomsich
2017-04-30  3:48   ` Simon Glass
2017-05-03 10:06     ` Simon Glass
2017-05-03 10:25       ` Dr. Philipp Tomsich
2017-04-28 15:11 ` [U-Boot] [PATCH v2 3/5] rockchip: board: puma_rk3399: add support for serial# and cpuid# via efuses Philipp Tomsich
2017-04-30  3:48   ` Simon Glass
2017-04-28 15:11 ` [U-Boot] [PATCH v2 4/5] rockchip: defconfig: puma-rk3399: enable RK3399 efuse driver Philipp Tomsich
2017-04-30  3:48   ` Simon Glass
2017-04-28 15:11 ` [U-Boot] [PATCH v2 5/5] rockchip: board: puma_rk3399: derive ethaddr from cpuid Philipp Tomsich
2017-04-30  3:48   ` Simon Glass

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.