public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ramon Fried <ramon.fried@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 0/6] Qualcomm SMEM driver
Date: Mon,  2 Jul 2018 02:58:30 +0300	[thread overview]
Message-ID: <20180701235830.22320-1-ramon.fried@gmail.com> (raw)

This patchset introduces Qualcomm's shared memory manager.
In U-boot context, it will allow reading board specific information
(IE. RAM address, RAM size) that was prepopulated by the SBL.

As part of the patchset a new uclass id is introduced, UCLASS_SMEM.

Changes in v5:
(As suggested by Simon Glass)
- Add more documentation to smem.h describing item/host parameters.

Changes in v4:
- Fixed typo in function name.

Changes in v3:
(As suggested by Simon Glass)
- Fixed line wrap
- Fixed smem_get_free_space() interface to match smem_get_free_space()
- Added more documentation to ops.
- Removed license, SPDX is enough.
- Text and grammar fixes.
- Adapt to smem_get_free_space() new interface in series 3.

Changes in v2:
(As suggested by Simon Glass)
- Introduced a new dm class (CLASS_SMEM) instead of CLASS_SOC.
- Added sandbox driver
- Added testing for DM class.
- Applied checkpatch fixes (also sent these to Linux upstream)
- Changed UCLASS_SOC to UCLASS_SMEM
- Removed function exports and registered functionality through .ops

Ramon Fried (6):
  dm: SMEM (Shared memory) uclass
  soc: qualcomm: Add Shared Memory Manager driver
  dts: db410c: added smem nodes
  dts: db820c: added smem nodes
  drivers: smem: sandbox
  test: smem: add basic smem test

 MAINTAINERS                             |   1 +
 arch/arm/Kconfig                        |   2 +
 arch/arm/dts/dragonboard410c-uboot.dtsi |   5 +
 arch/arm/dts/dragonboard410c.dts        |  16 +
 arch/arm/dts/dragonboard820c-uboot.dtsi |   4 +
 arch/arm/dts/dragonboard820c.dts        |  16 +
 arch/sandbox/dts/test.dts               |   4 +
 configs/sandbox64_defconfig             |   2 +
 configs/sandbox_defconfig               |   2 +
 drivers/Kconfig                         |   2 +
 drivers/Makefile                        |   1 +
 drivers/smem/Kconfig                    |  24 +
 drivers/smem/Makefile                   |   7 +
 drivers/smem/msm_smem.c                 | 932 ++++++++++++++++++++++++
 drivers/smem/sandbox_smem.c             |  45 ++
 drivers/smem/smem-uclass.c              |  45 ++
 include/dm/uclass-id.h                  |   1 +
 include/smem.h                          |  91 +++
 test/dm/Makefile                        |   1 +
 test/dm/smem.c                          |  28 +
 20 files changed, 1229 insertions(+)
 create mode 100644 drivers/smem/Kconfig
 create mode 100644 drivers/smem/Makefile
 create mode 100644 drivers/smem/msm_smem.c
 create mode 100644 drivers/smem/sandbox_smem.c
 create mode 100644 drivers/smem/smem-uclass.c
 create mode 100644 include/smem.h
 create mode 100644 test/dm/smem.c

-- 
2.17.1

                 reply	other threads:[~2018-07-01 23:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20180701235830.22320-1-ramon.fried@gmail.com \
    --to=ramon.fried@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox