Deleted Added
full compact
ti_machdep.c (260294) ti_machdep.c (266301)
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

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

33 * SUCH DAMAGE.
34 *
35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45
36 */
37
38#include "opt_platform.h"
39
40#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

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

33 * SUCH DAMAGE.
34 *
35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45
36 */
37
38#include "opt_platform.h"
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/sys/arm/ti/ti_machdep.c 260294 2014-01-04 22:14:59Z ian $");
41__FBSDID("$FreeBSD: head/sys/arm/ti/ti_machdep.c 266301 2014-05-17 11:27:36Z andrew $");
42
43#define _ARM32_BUS_DMA_PRIVATE
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/bus.h>
47
48#include <vm/vm.h>
49#include <vm/pmap.h>
50
51#include <machine/bus.h>
52#include <machine/devmap.h>
53#include <machine/machdep.h>
42
43#define _ARM32_BUS_DMA_PRIVATE
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/bus.h>
47
48#include <vm/vm.h>
49#include <vm/pmap.h>
50
51#include <machine/bus.h>
52#include <machine/devmap.h>
53#include <machine/machdep.h>
54#include <machine/platform.h>
54
55#include <arm/ti/omap4/omap4_reg.h>
56
57void (*ti_cpu_reset)(void) = NULL;
58
59vm_offset_t
55
56#include <arm/ti/omap4/omap4_reg.h>
57
58void (*ti_cpu_reset)(void) = NULL;
59
60vm_offset_t
60initarm_lastaddr(void)
61platform_lastaddr(void)
61{
62
63 return (arm_devmap_lastaddr());
64}
65
66void
62{
63
64 return (arm_devmap_lastaddr());
65}
66
67void
67initarm_early_init(void)
68platform_probe_and_attach(void)
68{
69}
70
71void
69{
70}
71
72void
72initarm_gpio_init(void)
73platform_gpio_init(void)
73{
74}
75
76void
74{
75}
76
77void
77initarm_late_init(void)
78platform_late_init(void)
78{
79}
80
81/*
82 * Construct static devmap entries to map out the most frequently used
83 * peripherals using 1mb section mappings.
84 */
85int
79{
80}
81
82/*
83 * Construct static devmap entries to map out the most frequently used
84 * peripherals using 1mb section mappings.
85 */
86int
86initarm_devmap_init(void)
87platform_devmap_init(void)
87{
88#if defined(SOC_OMAP4)
89 arm_devmap_add_entry(0x48000000, 0x01000000); /*16mb L4_PER devices */
90 arm_devmap_add_entry(0x4A000000, 0x01000000); /*16mb L4_CFG devices */
91#elif defined(SOC_TI_AM335X)
92 arm_devmap_add_entry(0x44C00000, 0x00400000); /* 4mb L4_WKUP devices*/
93 arm_devmap_add_entry(0x47400000, 0x00100000); /* 1mb USB */
94 arm_devmap_add_entry(0x47800000, 0x00100000); /* 1mb mmchs2 */

--- 34 unchanged lines hidden ---
88{
89#if defined(SOC_OMAP4)
90 arm_devmap_add_entry(0x48000000, 0x01000000); /*16mb L4_PER devices */
91 arm_devmap_add_entry(0x4A000000, 0x01000000); /*16mb L4_CFG devices */
92#elif defined(SOC_TI_AM335X)
93 arm_devmap_add_entry(0x44C00000, 0x00400000); /* 4mb L4_WKUP devices*/
94 arm_devmap_add_entry(0x47400000, 0x00100000); /* 1mb USB */
95 arm_devmap_add_entry(0x47800000, 0x00100000); /* 1mb mmchs2 */

--- 34 unchanged lines hidden ---