/*
**************************************************************************
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) 2014-2015, Marvell International Ltd.

Alternatively, this software may be distributed under the terms of the GNU
General Public License Version 2, and any use shall comply with the terms and
conditions of the GPL.  A copy of the GPL is available at
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
ARE EXPRESSLY DISCLAIMED.  The GPL license provides additional details about
this warranty disclaimer.
 ******************************************************************************
*/

pie_verification is kernel space code to do a bypass test for PIE.  Data buffers are created for both the PIE IDMAs and ODMA.  Random data is placed in the data buffer for the IDMA, and then the DMAs are kicked off.  The data is compared between the
input and output buffers.  If 16 bit data was input (16 bit 3 channel or 16 bit mono), then only the the MSB is passed through 
to the output.  If color is input and mono out, only the Red channel data passes to the output.

The main test is the "t" option
All pertinent modules need to be insmoded
pietop, piecommon, piepogodma, pie*pogoizer, descriptor, pieidma* pieodma*

Then to run the main test, at the target linux command line type:
echo "t" > /sys/firmware/pie_verification/pietest/pietest

There is lots of other functionality -  To see all options of what to do, type:

     cat < /sys/firmware/pie_verification/pietest/pietest
