summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/sbc/sbc-boot.c
blob: ec22b453e0fba6adc1de4ac8bcf11033f13cdd9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: GPL-2.0+
//
// Copyright (C) 2011-2014 Panasonic Corporation
// Copyright (C) 2015-2019 Socionext Inc.

#include <linux/io.h>

#include "sbc-regs.h"

int uniphier_sbc_boot_is_swapped(void)
{
	return !(readl(SBBASE0) & SBBASE_BANK_ENABLE);
}