[U-Boot] [PATCH 4/6] tegra: Add tegra keyboard support
Stephen Warren
swarren at nvidia.com
Wed Dec 7 23:02:01 CET 2011
On 12/02/2011 07:57 PM, Simon Glass wrote:
> Add support for internal matrix keyboard controller for Nvidia Tegra platforms.
> This driver uses the fdt decode function to obtain its key codes.
> +static int fdt_decode_kbc(const void *blob, int node, struct keyb *config)
> +{
> + config->kbc = (struct kbc_tegra *)fdtdec_get_addr(blob, node, "reg");
> + config->plain_keycode = fdtdec_locate_byte_array(blob, node,
> + "keycode-plain", KBC_KEY_COUNT);
> + config->shift_keycode = fdtdec_locate_byte_array(blob, node,
> + "keycode-shift", KBC_KEY_COUNT);
> + config->fn_keycode = fdtdec_locate_byte_array(blob, node,
> + "keycode-fn", KBC_KEY_COUNT);
> + config->ctrl_keycode = fdtdec_locate_byte_array(blob, node,
> + "keycode-ctrl", KBC_KEY_COUNT);
> + if (!config->plain_keycode) {
> + debug("%s: cannot find keycode-plain map\n", __func__);
> + return -1;
> + }
> + return 0;
> +}
Simon,
Sorry to keep pushing back on everything so much, but I don't believe
the structure of this binding is correct.
More information about the U-Boot
mailing list