···11+// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause12/*23 * Amlogic Meson Reset Controller driver34 *44- * This file is provided under a dual BSD/GPLv2 license. When using or55- * redistributing this file, you may do so under either license.66- *77- * GPL LICENSE SUMMARY88- *95 * Copyright (c) 2016 BayLibre, SAS.106 * Author: Neil Armstrong <narmstrong@baylibre.com>1111- *1212- * This program is free software; you can redistribute it and/or modify1313- * it under the terms of version 2 of the GNU General Public License as1414- * published by the Free Software Foundation.1515- *1616- * This program is distributed in the hope that it will be useful, but1717- * WITHOUT ANY WARRANTY; without even the implied warranty of1818- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU1919- * General Public License for more details.2020- *2121- * You should have received a copy of the GNU General Public License2222- * along with this program; if not, see <http://www.gnu.org/licenses/>.2323- * The full GNU General Public License is included in this distribution2424- * in the file called COPYING.2525- *2626- * BSD LICENSE2727- *2828- * Copyright (c) 2016 BayLibre, SAS.2929- * Author: Neil Armstrong <narmstrong@baylibre.com>3030- *3131- * Redistribution and use in source and binary forms, with or without3232- * modification, are permitted provided that the following conditions3333- * are met:3434- *3535- * * Redistributions of source code must retain the above copyright3636- * notice, this list of conditions and the following disclaimer.3737- * * Redistributions in binary form must reproduce the above copyright3838- * notice, this list of conditions and the following disclaimer in3939- * the documentation and/or other materials provided with the4040- * distribution.4141- * * Neither the name of Intel Corporation nor the names of its4242- * contributors may be used to endorse or promote products derived4343- * from this software without specific prior written permission.4444- *4545- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS4646- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT4747- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR4848- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT4949- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,5050- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT5151- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,5252- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY5353- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT5454- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE5555- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.567 */578#include <linux/err.h>589#include <linux/init.h>