1252391Sray/*-
2252391Sray * Copyright (c) 2013 Ruslan Bukin <br@bsdpad.com>
3252391Sray * All rights reserved.
4252391Sray *
5252391Sray * Redistribution and use in source and binary forms, with or without
6252391Sray * modification, are permitted provided that the following conditions
7252391Sray * are met:
8252391Sray * 1. Redistributions of source code must retain the above copyright
9252391Sray *    notice, this list of conditions and the following disclaimer.
10252391Sray * 2. Redistributions in binary form must reproduce the above copyright
11252391Sray *    notice, this list of conditions and the following disclaimer in the
12252391Sray *    documentation and/or other materials provided with the distribution.
13252391Sray *
14252391Sray * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15252391Sray * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16252391Sray * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17252391Sray * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18252391Sray * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19252391Sray * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20252391Sray * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21252391Sray * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22252391Sray * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23252391Sray * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24252391Sray * SUCH DAMAGE.
25252391Sray */
26252391Sray
27252391Sray#include "opt_ddb.h"
28252391Sray#include "opt_platform.h"
29252391Sray
30252391Sray#include <sys/cdefs.h>
31252391Sray__FBSDID("$FreeBSD: releng/11.0/sys/arm/samsung/exynos/exynos5_machdep.c 298627 2016-04-26 11:53:37Z br $");
32252391Sray
33258096Sbr#define	_ARM32_BUS_DMA_PRIVATE
34252391Sray#include <sys/param.h>
35252391Sray#include <sys/systm.h>
36252391Sray#include <sys/bus.h>
37298627Sbr#include <sys/devmap.h>
38252391Sray
39252391Sray#include <vm/vm.h>
40252391Sray
41258096Sbr#include <machine/armreg.h>
42252391Sray#include <machine/bus.h>
43252391Sray#include <machine/machdep.h>
44266301Sandrew#include <machine/platform.h>
45252391Sray
46252391Srayvm_offset_t
47266301Sandrewplatform_lastaddr(void)
48252391Sray{
49252391Sray
50298627Sbr	return (devmap_lastaddr());
51252391Sray}
52252391Sray
53252391Srayvoid
54266301Sandrewplatform_probe_and_attach(void)
55257669Sian{
56257669Sian
57257669Sian}
58257669Sian
59257669Sianvoid
60266301Sandrewplatform_gpio_init(void)
61252391Sray{
62258096Sbr
63252391Sray}
64252391Sray
65252391Srayvoid
66266301Sandrewplatform_late_init(void)
67252391Sray{
68258096Sbr
69252391Sray}
70252391Sray
71252391Srayint
72266301Sandrewplatform_devmap_init(void)
73252391Sray{
74252391Sray
75267388Sbr	/* CHIP ID */
76298627Sbr	devmap_add_entry(0x10000000, 0x100000);
77267388Sbr
78258096Sbr	/* UART */
79298627Sbr	devmap_add_entry(0x12C00000, 0x100000);
80252391Sray
81272712Sbr	/* DWMMC */
82298627Sbr	devmap_add_entry(0x12200000, 0x100000);
83272712Sbr
84252391Sray	return (0);
85252391Sray}
86252391Sray
87252391Sraystruct arm32_dma_range *
88252391Sraybus_dma_get_range(void)
89252391Sray{
90252391Sray
91252391Sray	return (NULL);
92252391Sray}
93252391Sray
94252391Srayint
95252391Sraybus_dma_get_range_nb(void)
96252391Sray{
97252391Sray
98252391Sray	return (0);
99252391Sray}
100