| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 | |
| OLD | NEW |