Deleted Added
full compact
armadaxp.c (250293) armadaxp.c (294413)
1/*-
2 * Copyright (c) 2011 Semihalf.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * From: FreeBSD: src/sys/arm/mv/kirkwood/sheevaplug.c,v 1.2 2010/06/13 13:28:53
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2011 Semihalf.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * From: FreeBSD: src/sys/arm/mv/kirkwood/sheevaplug.c,v 1.2 2010/06/13 13:28:53
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/arm/mv/armadaxp/armadaxp.c 250293 2013-05-06 14:12:36Z gber $");
30__FBSDID("$FreeBSD: head/sys/arm/mv/armadaxp/armadaxp.c 294413 2016-01-20 11:57:11Z zbb $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35
36#include <machine/bus.h>
37#include <machine/armreg.h>
38

--- 42 unchanged lines hidden (view full) ---

81#define ARMADAXP_L2_FLUSH_WAY 0x7FC
82
83#define MV_COHERENCY_FABRIC_BASE (MV_MBUS_BRIDGE_BASE + 0x200)
84#define COHER_FABRIC_CTRL 0x00
85#define COHER_FABRIC_CONF 0x04
86#define COHER_FABRIC_CFU 0x28
87#define COHER_FABRIC_CIB_CTRL 0x80
88
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35
36#include <machine/bus.h>
37#include <machine/armreg.h>
38

--- 42 unchanged lines hidden (view full) ---

81#define ARMADAXP_L2_FLUSH_WAY 0x7FC
82
83#define MV_COHERENCY_FABRIC_BASE (MV_MBUS_BRIDGE_BASE + 0x200)
84#define COHER_FABRIC_CTRL 0x00
85#define COHER_FABRIC_CONF 0x04
86#define COHER_FABRIC_CFU 0x28
87#define COHER_FABRIC_CIB_CTRL 0x80
88
89/* XXX Make gpio driver optional and remove it */
90struct resource_spec mv_gpio_res[] = {
91 { SYS_RES_MEMORY, 0, RF_ACTIVE },
92 { SYS_RES_IRQ, 0, RF_ACTIVE },
93 { -1, 0 }
94};
95
96struct vco_freq_ratio {
97 uint8_t vco_cpu; /* VCO to CLK0(CPU) clock ratio */
98 uint8_t vco_l2c; /* VCO to NB(L2 cache) clock ratio */
99 uint8_t vco_hcl; /* VCO to HCLK(DDR controller) clock ratio */
100 uint8_t vco_ddr; /* VCO to DR(DDR memory) clock ratio */
101};
102
103static struct vco_freq_ratio freq_conf_table[] = {

--- 204 unchanged lines hidden ---
89struct vco_freq_ratio {
90 uint8_t vco_cpu; /* VCO to CLK0(CPU) clock ratio */
91 uint8_t vco_l2c; /* VCO to NB(L2 cache) clock ratio */
92 uint8_t vco_hcl; /* VCO to HCLK(DDR controller) clock ratio */
93 uint8_t vco_ddr; /* VCO to DR(DDR memory) clock ratio */
94};
95
96static struct vco_freq_ratio freq_conf_table[] = {

--- 204 unchanged lines hidden ---