Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: drivers/input/tegra-kbc.c

Issue 3574012: Simplify Tegra2 keyboard initialization. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/u-boot.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « board/tegra2/seaboard/seaboard.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) Copyright 2010 2 * (C) Copyright 2010
3 * NVIDIA Corporation <www.nvidia.com> 3 * NVIDIA Corporation <www.nvidia.com>
4 * 4 *
5 * See file CREDITS for list of people who contributed to this 5 * See file CREDITS for list of people who contributed to this
6 * project. 6 * project.
7 * 7 *
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of 10 * published by the Free Software Foundation; either version 2 of
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 val = kbc_readl(KBC_KP_ENT1_0); 350 val = kbc_readl(KBC_KP_ENT1_0);
351 } else { 351 } else {
352 break; 352 break;
353 } 353 }
354 } 354 }
355 kbc_writel(0x7, KBC_INT_0); 355 kbc_writel(0x7, KBC_INT_0);
356 356
357 return 0; 357 return 0;
358 } 358 }
359 359
360 int tegra_kbc_init(void) 360 int drv_keyboard_init(void)
361 { 361 {
362 int error; 362 int error;
363 struct stdio_dev kbddev; 363 struct stdio_dev kbddev;
364 char *stdinname; 364 char *stdinname;
365 365
366 config_kbc_pinmux(); 366 config_kbc_pinmux();
367 config_kbc_clock(); 367 config_kbc_clock();
368 368
369 kbc = malloc(sizeof(*kbc)); 369 kbc = malloc(sizeof(*kbc));
370 if (!kbc) 370 if (!kbc)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 if (!error) 402 if (!error)
403 return 0; 403 return 0;
404 else 404 else
405 return error; 405 return error;
406 } 406 }
407 return 1; 407 return 1;
408 } 408 }
409 409
410 return error; 410 return error;
411 } 411 }
412
OLDNEW
« no previous file with comments | « board/tegra2/seaboard/seaboard.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698