Skip to contentSkip to conversation

cmd: Add a 'misc' command to access miscellaneous devices

PATCH New Bin Meng 2 participants 3 messages Oct 14, 2020 – Oct 24, 2020

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 cmd: Add a 'misc' command to access miscellaneous devices

From: Bin Meng <[email protected]>

Enable the command "misc" for accessing miscellaneous devices with a MISC uclass driver. The command provides listing all MISC devices as well as read and write functionalities via their drivers.

---
This patch depends on http://patchwork.ozlabs.org/project/uboot/list/?series=207559

 cmd/Kconfig  |   8 ++++
 cmd/Makefile |   1 +
 cmd/misc.c   | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 143 insertions(+)
 create mode 100644 cmd/misc.c
cmd/Kconfig +8 -0
index d4427a7..257d548 100644
@@ -1025,6 +1025,14 @@ config CMD_LSBLK
 	  Print list of available block device drivers, and for each, the list
 	  of known block devices.
 
+config CMD_MISC
+	bool "misc"
+	depends on MISC
+	help
+	  Enable the command "misc" for accessing miscellaneous devices with
+	  a MISC uclass driver. The command provides listing all MISC devices
+	  as well as read and write functionalities via their drivers.
+
 config CMD_MMC
 	bool "mmc"
 	help
cmd/Makefile +1 -0
index c536a3e..4b46798 100644
@@ -94,6 +94,7 @@ obj-$(CONFIG_CMD_MEMORY) += mem.o
 obj-$(CONFIG_CMD_IO) += io.o
 obj-$(CONFIG_CMD_MFSL) += mfsl.o
 obj-$(CONFIG_CMD_MII) += mii.o
+obj-$(CONFIG_CMD_MISC) += misc.o
 obj-$(CONFIG_CMD_MDIO) += mdio.o
 obj-$(CONFIG_CMD_SLEEP) += sleep.o
 obj-$(CONFIG_CMD_MMC) += mmc.o
cmd/misc.c new file +134 -0

134 lines not on this page · raw message

Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/1 cmd: Add a 'misc' command to access miscellaneous devices

Quoted 8 lines · Bin Meng

From: Bin Meng <[email protected]>

Enable the command "misc" for accessing miscellaneous devices with a MISC uclass driver. The command provides listing all MISC devices as well as read and write functionalities via their drivers.

Quoted 9 lines

---
This patch depends on http://patchwork.ozlabs.org/project/uboot/list/?series=207559

 cmd/Kconfig  |   8 ++++
 cmd/Makefile |   1 +
 cmd/misc.c   | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 143 insertions(+)
 create mode 100644 cmd/misc.c

ping?

#2 lore raw

PATCH 1/1 cmd: Add a 'misc' command to access miscellaneous devices

In reply to Bin Meng
Quoted 7 lines · Bin Meng

From: Bin Meng <[email protected]>

Enable the command "misc" for accessing miscellaneous devices with a MISC uclass driver. The command provides listing all MISC devices as well as read and write functionalities via their drivers.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201024/98d9aca0/attachment.sig>