forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-sa1100/jornada720_ssp.c
....@@ -1,12 +1,9 @@
1
-/**
1
+// SPDX-License-Identifier: GPL-2.0-only
2
+/*
23 * arch/arm/mac-sa1100/jornada720_ssp.c
34 *
45 * Copyright (C) 2006/2007 Kristoffer Ericson <Kristoffer.Ericson@gmail.com>
56 * Copyright (C) 2006 Filip Zyzniewski <filip.zyzniewski@tefnet.pl>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 *
118 * SSP driver for the HP Jornada 710/720/728
129 */
....@@ -29,6 +26,7 @@
2926
3027 /**
3128 * jornada_ssp_reverse - reverses input byte
29
+ * @byte: input byte to reverse
3230 *
3331 * we need to reverse all data we receive from the mcu due to its physical location
3432 * returns : 01110111 -> 11101110
....@@ -49,6 +47,7 @@
4947
5048 /**
5149 * jornada_ssp_byte - waits for ready ssp bus and sends byte
50
+ * @byte: input byte to transmit
5251 *
5352 * waits for fifo buffer to clear and then transmits, if it doesn't then we will
5453 * timeout after <timeout> rounds. Needs mcu running before its called.
....@@ -80,6 +79,7 @@
8079
8180 /**
8281 * jornada_ssp_inout - decide if input is command or trading byte
82
+ * @byte: input byte to send (may be %TXDUMMY)
8383 *
8484 * returns : (jornada_ssp_byte(byte)) on success
8585 * : %-ETIMEDOUT on timeout failure