2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2015-09-21 15:27:41 +00:00
|
|
|
/*
|
2017-01-15 05:59:05 +00:00
|
|
|
* Copyright (C) 2016-2017 Socionext Inc.
|
2015-09-21 15:27:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/io.h>
|
2016-01-08 16:51:13 +00:00
|
|
|
|
|
|
|
#include "../init.h"
|
|
|
|
#include "sbc-regs.h"
|
2015-09-21 15:27:41 +00:00
|
|
|
|
2017-01-15 05:59:05 +00:00
|
|
|
void uniphier_pxs2_sbc_init(void)
|
2015-09-21 15:27:41 +00:00
|
|
|
{
|
2019-07-10 11:07:37 +00:00
|
|
|
if (!uniphier_sbc_is_enabled())
|
|
|
|
return;
|
|
|
|
|
2017-01-15 05:59:05 +00:00
|
|
|
uniphier_sbc_init_savepin();
|
|
|
|
|
2015-09-21 15:27:41 +00:00
|
|
|
/* necessary for ROM boot ?? */
|
|
|
|
/* system bus output enable */
|
|
|
|
writel(0x17, PC0CTRL);
|
2017-08-29 06:42:20 +00:00
|
|
|
|
2017-11-24 15:25:35 +00:00
|
|
|
uniphier_pin_init("system-bus"); /* PXs3 */
|
2015-09-21 15:27:41 +00:00
|
|
|
}
|