From: Jean-Jacques Hiblot <jjhiblot@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 02/10] spl: misc: Allow misc drivers in SPL and TPL
Date: Thu, 31 Jan 2019 10:38:58 +0100 [thread overview]
Message-ID: <8acffd02-e837-0a37-ccc0-d2a8fddf2f78@ti.com> (raw)
In-Reply-To: <CAPnjgZ1m4rJPO_WaOTuQXSbhZiYps=YrL9Y1w23f-3qFE6cV6w@mail.gmail.com>
On 31/01/2019 03:57, Simon Glass wrote:
> Hi Jean-Jacques,
>
> On Tue, 20 Nov 2018 at 06:49, Jean-Jacques Hiblot <jjhiblot@ti.com> wrote:
>> Hi Simon,
>>
>> On 18/11/2018 16:14, Simon Glass wrote:
>>> In some cases it is necessary to read the keyboard in early phases of
>>> U-Boot. The cros_ec keyboard is kept in the misc directory. Update the
>>> config to allow this.
>>>
>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>> ---
>>>
>>> Changes in v2:
>>> - Leave the misc uclass alone since it stops sandbox_spl working
>>>
>>> drivers/misc/Kconfig | 72 +++++++++++++++++++++++++++++++++++++++++++
>>> drivers/misc/Makefile | 8 +++--
>>> 2 files changed, 77 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
>>> index 48febc47d26..802046cf966 100644
>>> --- a/drivers/misc/Kconfig
>>> +++ b/drivers/misc/Kconfig
>>> @@ -13,6 +13,24 @@ config MISC
>>> set of generic read, write and ioctl methods may be used to
>>> access the device.
>>>
>>> +config SPL_MISC
>>> + bool "Enable Driver Model for Misc drivers in SPL"
>>> + depends on SPL_DM
>>> + help
>>> + Enable driver model for miscellaneous devices. This class is
>>> + used only for those do not fit other more general classes. A
>>> + set of generic read, write and ioctl methods may be used to
>>> + access the device.
>> Platforms currently use CONFIG_SPL_DRIVERS_MISC_SUPPORT and CONFIG_MISC
>> to enable the MISC drivers in the SPL.
> This is a bit confusing but that is not my understanding of the situation.
>
> CONFIG_MISC enables UCLASS_MISC devices. The 'misc' drivers directory
> is included always in U-Boot proper. Yes the
> CONFIG_SPL_DRIVERS_MISC_SUPPORT option is for SPL only.
>
> But in my case I want an option to enable driver-model MISC devices in
> SPL/TPL. Oddly this is orthogonal to whether the drivers/misc
> directory itself is included in the build.
Ok. that makes sense now.
>
> Regards,
> Simon
>
next prev parent reply other threads:[~2019-01-31 9:38 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-18 15:14 [U-Boot] [PATCH v2 00/10] Various fixes and improvements Simon Glass
2018-11-18 15:14 ` [U-Boot] [PATCH v2 01/10] malloc_simple: Add logging of allocations Simon Glass
2018-11-29 17:39 ` sjg at google.com
2018-11-18 15:14 ` [U-Boot] [PATCH v2 02/10] spl: misc: Allow misc drivers in SPL and TPL Simon Glass
2018-11-20 13:49 ` Jean-Jacques Hiblot
2019-01-31 2:57 ` Simon Glass
2019-01-31 9:38 ` Jean-Jacques Hiblot [this message]
2019-05-22 13:21 ` Simon Glass
2018-11-18 15:14 ` [U-Boot] [PATCH v2 03/10] power: pmic: Correct debug/error output Simon Glass
2018-11-18 21:17 ` Lukasz Majewski
2018-11-29 17:39 ` sjg at google.com
2018-11-18 15:14 ` [U-Boot] [PATCH v2 04/10] test: Add a 'make qcheck' target for quicker testing Simon Glass
2018-11-29 17:39 ` sjg at google.com
2018-11-18 15:14 ` [U-Boot] [PATCH v2 05/10] dm: core: Export uclass_find_device_by_phandle() Simon Glass
2018-11-29 17:39 ` sjg at google.com
2018-11-18 15:14 ` [U-Boot] [PATCH v2 06/10] dm: core: Add a few more specific child-finding functions Simon Glass
2018-11-29 17:39 ` sjg at google.com
2018-11-18 15:14 ` [U-Boot] [PATCH v2 07/10] dm: core: Put UCLASS_SIMPLE_BUS in order Simon Glass
2018-11-29 17:39 ` sjg at google.com
2018-11-18 15:14 ` [U-Boot] [PATCH v2 08/10] dm: sandbox: i2c: Add a new 'emulation parent' uclass Simon Glass
2018-11-29 17:39 ` sjg at google.com
2018-11-18 15:14 ` [U-Boot] [PATCH v2 09/10] dm: sandbox: i2c: Use new emulator parent uclass Simon Glass
2018-11-29 17:39 ` sjg at google.com
2018-11-18 15:14 ` [U-Boot] [PATCH v2 10/10] rtc: Allow child drivers Simon Glass
2018-11-29 17:39 ` sjg at google.com
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=8acffd02-e837-0a37-ccc0-d2a8fddf2f78@ti.com \
--to=jjhiblot@ti.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