mv_machdep.c (294425) | mv_machdep.c (294426) |
---|---|
1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34 * 35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45 36 */ 37 38#include "opt_ddb.h" 39#include "opt_platform.h" 40 41#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34 * 35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45 36 */ 37 38#include "opt_ddb.h" 39#include "opt_platform.h" 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/sys/arm/mv/mv_machdep.c 294425 2016-01-20 13:53:33Z zbb $"); | 42__FBSDID("$FreeBSD: head/sys/arm/mv/mv_machdep.c 294426 2016-01-20 13:55:51Z zbb $"); |
43 44#define _ARM32_BUS_DMA_PRIVATE 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/bus.h> 48 49#include <vm/vm.h> 50#include <vm/pmap.h> --- 12 unchanged lines hidden (view full) --- 63 64static int platform_mpp_init(void); 65#if defined(SOC_MV_ARMADAXP) 66void armadaxp_init_coher_fabric(void); 67void armadaxp_l2_init(void); 68#endif 69#if defined(SOC_MV_ARMADA38X) 70int armada38x_win_set_iosync_barrier(void); | 43 44#define _ARM32_BUS_DMA_PRIVATE 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/bus.h> 48 49#include <vm/vm.h> 50#include <vm/pmap.h> --- 12 unchanged lines hidden (view full) --- 63 64static int platform_mpp_init(void); 65#if defined(SOC_MV_ARMADAXP) 66void armadaxp_init_coher_fabric(void); 67void armadaxp_l2_init(void); 68#endif 69#if defined(SOC_MV_ARMADA38X) 70int armada38x_win_set_iosync_barrier(void); |
71int armada38x_scu_enable(void); |
|
71#endif 72 73#define MPP_PIN_MAX 68 74#define MPP_PIN_CELLS 2 75#define MPP_PINS_PER_REG 8 76#define MPP_SEL(pin,func) (((func) & 0xf) << \ 77 (((pin) % MPP_PINS_PER_REG) * 4)) 78 --- 173 unchanged lines hidden (view full) --- 252#endif 253 armadaxp_l2_init(); 254#endif 255 256#if defined(SOC_MV_ARMADA38X) 257 /* Set IO Sync Barrier bit for all Mbus devices */ 258 if (armada38x_win_set_iosync_barrier() != 0) 259 printf("WARNING: could not map CPU Subsystem registers\n"); | 72#endif 73 74#define MPP_PIN_MAX 68 75#define MPP_PIN_CELLS 2 76#define MPP_PINS_PER_REG 8 77#define MPP_SEL(pin,func) (((func) & 0xf) << \ 78 (((pin) % MPP_PINS_PER_REG) * 4)) 79 --- 173 unchanged lines hidden (view full) --- 253#endif 254 armadaxp_l2_init(); 255#endif 256 257#if defined(SOC_MV_ARMADA38X) 258 /* Set IO Sync Barrier bit for all Mbus devices */ 259 if (armada38x_win_set_iosync_barrier() != 0) 260 printf("WARNING: could not map CPU Subsystem registers\n"); |
261 if (armada38x_scu_enable() != 0) 262 printf("WARNING: could not enable SCU\n"); |
|
260#endif 261} 262 263#define FDT_DEVMAP_MAX (MV_WIN_CPU_MAX + 2) 264static struct arm_devmap_entry fdt_devmap[FDT_DEVMAP_MAX] = { 265 { 0, 0, 0, 0, 0, } 266}; 267 --- 228 unchanged lines hidden --- | 263#endif 264} 265 266#define FDT_DEVMAP_MAX (MV_WIN_CPU_MAX + 2) 267static struct arm_devmap_entry fdt_devmap[FDT_DEVMAP_MAX] = { 268 { 0, 0, 0, 0, 0, } 269}; 270 --- 228 unchanged lines hidden --- |