init.c (907ec43a486df72891e79e1f47a718ee17e36ee2) init.c (f8a68c9668a63249d0105444101a99d9eccd7cc2)
1
2/*
3 * Copyright (c) 2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.

--- 637 unchanged lines hidden (view full) ---

646 return -EIO;
647
648 /* Configure GPIO AR600x UART */
649 status = ath6kl_bmi_write_hi32(ar, hi_dbg_uart_txpin,
650 ar->hw.uarttx_pin);
651 if (status)
652 return status;
653
1
2/*
3 * Copyright (c) 2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.

--- 637 unchanged lines hidden (view full) ---

646 return -EIO;
647
648 /* Configure GPIO AR600x UART */
649 status = ath6kl_bmi_write_hi32(ar, hi_dbg_uart_txpin,
650 ar->hw.uarttx_pin);
651 if (status)
652 return status;
653
654 /* Only set the baud rate if we're actually doing debug */
655 if (ar->conf_flags & ATH6KL_CONF_UART_DEBUG) {
656 status = ath6kl_bmi_write_hi32(ar, hi_desired_baud_rate,
657 ar->hw.uarttx_rate);
658 if (status)
659 return status;
660 }
661
654 /* Configure target refclk_hz */
655 if (ar->hw.refclk_hz != 0) {
656 status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz,
657 ar->hw.refclk_hz);
658 if (status)
659 return status;
660 }
661

--- 1274 unchanged lines hidden ---
662 /* Configure target refclk_hz */
663 if (ar->hw.refclk_hz != 0) {
664 status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz,
665 ar->hw.refclk_hz);
666 if (status)
667 return status;
668 }
669

--- 1274 unchanged lines hidden ---