X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Flogicpd%2Fzoom2%2Fzoom2_serial.c;h=29592761161919b30919832f788607d41df5c68a;hb=8401bfa91ef57e331e2a3abdf768d41803bec88e;hp=fcfe6247d041598f618ef6db48e7b58987900c4f;hpb=b919a3f2981109c9f2aaafe9c692dbb99f1c6366;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/logicpd/zoom2/zoom2_serial.c b/board/logicpd/zoom2/zoom2_serial.c index fcfe624..2959276 100644 --- a/board/logicpd/zoom2/zoom2_serial.c +++ b/board/logicpd/zoom2/zoom2_serial.c @@ -2,23 +2,9 @@ * Copyright (c) 2009 Wind River Systems, Inc. * Tom Rix * - * 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., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ * * This file was adapted from arch/powerpc/cpu/mpc5xxx/serial.c - * */ #include @@ -132,3 +118,13 @@ QUAD_INIT (0) QUAD_INIT (1) QUAD_INIT (2) QUAD_INIT (3) + +struct serial_device *default_serial_console(void) +{ + switch (ZOOM2_DEFAULT_SERIAL_DEVICE) { + case 0: return &zoom2_serial_device0; + case 1: return &zoom2_serial_device1; + case 2: return &zoom2_serial_device2; + case 3: return &zoom2_serial_device3; + } +}