From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/5] input: Provide a board specific mechanism to decide whether to skip i8042 init
Date: Fri, 12 Oct 2012 09:05:36 -0700 [thread overview]
Message-ID: <50783FD0.5040803@ti.com> (raw)
In-Reply-To: <1350004554-18506-2-git-send-email-sjg@chromium.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/11/12 18:15, Simon Glass wrote:
> From: Gabe Black <gabeblack@chromium.org>
>
> This change adds a board overridable function which can be used to
> decide whether or not to initialize the i8042 keyboard controller.
> On systems where it isn't actually connected to anything, this can
> save a significant amount of boot time.
>
> On Stumpy, this saves about 200ms on boot.
>
> Signed-off-by: Gabe Black <gabeblack@chromium.org> Signed-off-by:
> Simon Glass <sjg@chromium.org> --- drivers/input/i8042.c | 13
> ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c index
> 99254e4..cae2d0a 100644 --- a/drivers/input/i8042.c +++
> b/drivers/input/i8042.c @@ -320,6 +320,17 @@ static int
> kbd_controller_present(void) return in8(I8042_STATUS_REG) != 0xff;
> }
>
> +/* + * Implement a weak default function for boards that
> optionally + * need to skip the i8042 initialization. + */ +int
> __board_i8042_skip(void) +{ + /* As default, don't skip */ + return
> 0; +} +int board_i8042_skip(void) __attribute__((weak,
> alias("__board_i8042_skip")));
Please add <linux/compiler.h> and use __weak directly, thanks.
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iQIcBAEBAgAGBQJQeD/QAAoJENk4IS6UOR1WVMsP/RJTlWaTvF56K6H75WbjK7l5
xE7zeAeCS4gbM1CS0fEv1X4296L7oWUUUkw73gwSEAxd2CxOj96HrhJI0WQIqZ/a
m6ysfwswzY92oqXJGxnWnLiZzd0JUR/QHZAM7U0tX1yHFsYrycEtuq+JvfMm5BU7
1ozqrN0SoFPa8ZBq0GpnXhDsGdMApucDBkbDv3cgHTYPkOlfh3gLpbz/dkWKxrCv
NBwKvZgVMtEPf9hZf5CLuB2ghfWIRyP50Bf99nKhV+gdLGtrEbboHkMMXEc2Z1ex
foEMqpmSiMVd9yMRqVEIM3sWwnapqAZVn3wQLoq5Kz+YGS/9e0c9t95ck+CmndiM
kJmrx/LZ/XSGzjLrKC3MWLWC/KUS2hHqj4AfYUf1kL5lPuHM24c+oSRfOjogkaqR
bMJZ9ii/kYcQJry/dAYTjFyEa120X48y46e2bNcMhWVZh48A6VpJkFILb1Ga4tEo
ss+hMBX/tiMNp8eoOR7y1n+A+94r3ABKUrLapjfVKg+qXeufrMyotBVfPY35hWnP
qLNVlPpdEF7nP1Wt22OB9s6bBcI6dCrNuL75Ym6wJ3DYnpqU8Y8f3HihwL7cBy7F
o1Zpo0bzazNfy722IYphWu0O3hihIQ11fRpAndVemUzjaXP/kKxaVhiDCj28xHup
9zGuTm7SW/liJTXp4cc8
=5tNx
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2012-10-12 16:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-12 1:15 [U-Boot] [PATCH 1/5] input: Use finer grain udelays while waitng for the i8042 keyboard buffer to empty Simon Glass
2012-10-12 1:15 ` [U-Boot] [PATCH 2/5] input: Provide a board specific mechanism to decide whether to skip i8042 init Simon Glass
2012-10-12 16:05 ` Tom Rini [this message]
2012-10-13 0:03 ` Simon Glass
2012-10-12 1:15 ` [U-Boot] [PATCH 3/5] input: i8042: Provide feature to disable keyboard before booting kernel Simon Glass
2012-10-12 1:15 ` [U-Boot] [PATCH 4/5] input: Fix i8042 keyboard reset Simon Glass
2012-10-12 1:15 ` [U-Boot] [PATCH 5/5] input: Add ANSI 3.64 escape sequence generation Simon Glass
2012-10-12 3:55 ` [U-Boot] [PATCH 1/5] input: Use finer grain udelays while waitng for the i8042 keyboard buffer to empty Graeme Russ
2012-10-12 23:44 ` Simon Glass
2012-10-20 17:42 ` Tom Rini
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=50783FD0.5040803@ti.com \
--to=trini@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 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.