diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-10-11 19:14:10 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:36:31 -0700 |
commit | 40d1737f8c8b1fd686e30a715c8c99fd57147640 (patch) | |
tree | 271fdb8589d2cf5f3a18bed8a9e9071b3d372b1b /arch/arm/mach-tegra/board-common.h | |
parent | 1dac610dbea1a93d02a78b9a491ec44e41c8b330 (diff) |
ARM: tegra: move uart debug port initialization into common file.
There is lots of duplicate code for initializing
the debug port for all platform.
Move this to board-common file so that duplicate code
can be avoided.
Change-Id: I3e8a10cd3db4db21d6752a0b689136bfe9828197
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/143721
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Rebase-Id: R0ee5cb4caae5d563a0a9df9a1d69b1846b974ebd
Diffstat (limited to 'arch/arm/mach-tegra/board-common.h')
-rw-r--r-- | arch/arm/mach-tegra/board-common.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-common.h b/arch/arm/mach-tegra/board-common.h new file mode 100644 index 000000000000..fdacefd25ab3 --- /dev/null +++ b/arch/arm/mach-tegra/board-common.h @@ -0,0 +1,27 @@ +/* + * board-common.h: Common function API declaration for all board files. + * + * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __MACH_TEGRA_BOARD_COMMON_H +#define __MACH_TEGRA_BOARD_COMMON_H + +extern struct platform_device *uart_console_debug_device; +int uart_console_debug_init(int defaul_debug_port); + +#endif |