Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/odroid Remove ev that's no longer valid
details: https://anonhg.NetBSD.org/src/rev/15135587970b
branches: trunk
changeset: 342195:15135587970b
user: marty <marty%NetBSD.org@localhost>
date: Sat Dec 12 00:42:42 2015 +0000
description:
Remove ev that's no longer valid
development of the odroid boards has moved to evbarm/exynos and this
directory is now out of date with respect to new development.
diffstat:
sys/arch/evbarm/odroid/genassym.cf | 39 -
sys/arch/evbarm/odroid/odroid_machdep.c | 912 --------------------------------
sys/arch/evbarm/odroid/odroid_start.S | 383 -------------
sys/arch/evbarm/odroid/platform.h | 65 --
4 files changed, 0 insertions(+), 1399 deletions(-)
diffs (truncated from 1415 to 300 lines):
diff -r 79465fe7126f -r 15135587970b sys/arch/evbarm/odroid/genassym.cf
--- a/sys/arch/evbarm/odroid/genassym.cf Fri Dec 11 21:22:57 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-# $NetBSD: genassym.cf,v 1.2 2014/08/04 18:14:43 reinoud Exp $
-
-#-
-# Copyright (c) 2013 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Matt Thomas of 3am Software Foundry.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-include <arch/arm/samsung/sscom_reg.h>
-include <arch/evbarm/include/bootconfig.h>
-
-define UTRSTAT_TXEMPTY UTRSTAT_TXEMPTY
-define UTRSTAT_TXSHIFTER_EMPTY UTRSTAT_TXSHIFTER_EMPTY
-define SSCOM_UTXH SSCOM_UTXH
-define SSCOM_UTRSTAT SSCOM_UTRSTAT
-define MAX_BOOT_STRING MAX_BOOT_STRING
diff -r 79465fe7126f -r 15135587970b sys/arch/evbarm/odroid/odroid_machdep.c
--- a/sys/arch/evbarm/odroid/odroid_machdep.c Fri Dec 11 21:22:57 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,912 +0,0 @@
-/* $NetBSD: odroid_machdep.c,v 1.42 2015/11/26 21:42:18 marty Exp $ */
-
-/*
- * Copyright (c) 2014 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Reinoud Zandijk.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.42 2015/11/26 21:42:18 marty Exp $");
-
-#include "opt_evbarm_boardtype.h"
-#include "opt_exynos.h"
-#include "opt_machdep.h"
-#include "opt_ddb.h"
-#include "opt_kgdb.h"
-#include "opt_ipkdb.h"
-#include "opt_md.h"
-#include "opt_sscom.h"
-#include "opt_arm_debug.h"
-
-#include "ukbd.h"
-#include "arml2cc.h" // RPZ why is it not called opt_l2cc.h?
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/bus.h>
-#include <sys/cpu.h>
-#include <sys/device.h>
-#include <sys/exec.h>
-#include <sys/kernel.h>
-#include <sys/ksyms.h>
-#include <sys/msgbuf.h>
-#include <sys/proc.h>
-#include <sys/reboot.h>
-#include <sys/termios.h>
-#include <sys/gpio.h>
-
-#include <uvm/uvm_extern.h>
-
-#include <sys/conf.h>
-#include <dev/cons.h>
-#include <dev/md.h>
-
-#include <machine/db_machdep.h>
-#include <ddb/db_sym.h>
-#include <ddb/db_extern.h>
-#ifdef KGDB
-#include <sys/kgdb.h>
-#endif
-
-#include <machine/bootconfig.h>
-#include <arm/armreg.h>
-#include <arm/undefined.h>
-#include <arm/cortex/pl310_var.h>
-
-#include <arm/arm32/machdep.h>
-#include <arm/mainbus/mainbus.h>
-
-#include <arm/samsung/exynos4_reg.h>
-#include <arm/samsung/exynos5_reg.h>
-#include <arm/samsung/exynos_var.h>
-
-#include <evbarm/include/autoconf.h>
-#include <evbarm/odroid/platform.h>
-
-#include <dev/i2c/i2cvar.h>
-#include <dev/i2c/ddcreg.h>
-
-#include <dev/usb/ukbdvar.h>
-#include <net/if_ether.h>
-
-
-/* sanity checks */
-#ifndef EXYNOS4
-#ifndef EXYNOS5
-#error Please define _either_ an EXYNOS4 or an EXYNOS5 cpu, not mixed
-#endif
-#endif
-
-
-/* serial console stuff */
-#include "sscom.h"
-#include "opt_sscom.h"
-
-#if defined(KGDB) || \
- defined(SSCOM0CONSOLE) || defined(SSCOM1CONSOLE) || \
- defined(SSCOM2CONSOLE) || defined(SSCOM3CONSOLE)
-#if NSSCOM == 0
-#error must define sscom for use with serial console or KGD
-#endif
-
-#include <arm/samsung/sscom_var.h>
-#include <arm/samsung/sscom_reg.h>
-
-extern const int num_exynos_uarts_entries;
-extern const struct sscom_uart_info exynos_uarts[];
-
-/* sanity checks for serial console */
-#ifndef CONSPEED
-#define CONSPEED 115200
-#endif /* CONSPEED */
-#ifndef CONMODE
-#define CONMODE ((TTYDEF_CFLAG & ~(CSIZE | CSTOPB | PARENB | HUPCL)) | CS8) /* 8N1 */
-#endif /* CONMODE */
-
-// __CTASSERT(EXYNOS_CORE_PBASE + EXYNOS_UART0_OFFSET <= CONADDR);
-// __CTASSERT(CONADDR <= EXYNOS_CORE_PBASE + EXYNOS_UART4_OFFSET);
-// __CTASSERT(CONADDR % EXYNOS_BLOCK_SIZE == 0);
-//static const bus_addr_t conaddr = CONADDR;
-static const int conspeed = CONSPEED;
-static const int conmode = CONMODE;
-#endif /*defined(KGDB) || defined(SSCOM*CONSOLE) */
-
-/*
- * uboot passes 4 arguments to us.
- *
- * arg0 arg1 arg2 arg3 : the `bootargs' environment variable from the uboot
- * context (in PA!)
- *
- * Note that the storage has to be in .data and not in .bss. On kernel start
- * the .bss is cleared and this information would get lost.
- */
-uintptr_t uboot_args[4] = { 0 };
-
-
-/*
- * argument and boot configure storage
- */
-BootConfig bootconfig; /* for pmap's sake */
-char bootargs[MAX_BOOT_STRING] = ""; /* copied string from uboot */
-char *boot_args = NULL; /* MI bootargs */
-char *boot_file = NULL; /* MI bootfile */
-uint8_t uboot_enaddr[ETHER_ADDR_LEN] = {};
-
-
-/*
- * kernel start and end from the linker
- */
-extern char KERNEL_BASE_phys[]; /* physical start of kernel */
-extern char _end[]; /* physical end of kernel */
-#define KERNEL_BASE_PHYS ((paddr_t)KERNEL_BASE_phys)
-
-#define EXYNOS_IOPHYSTOVIRT(a) \
- ((vaddr_t)(((a) - EXYNOS_CORE_PBASE) + EXYNOS_CORE_VBASE))
-
-/* XXX we have no framebuffer implementation yet so com is console XXX */
-int use_fb_console = false;
-
-
-/* prototypes */
-void consinit(void);
-#ifdef KGDB
-static void kgdb_port_init(void);
-#endif
-static void exynos_usb_powercycle_lan9730(device_t self);
-static void exynos_extract_mac_adress(void);
-void odroid_device_register(device_t self, void *aux);
-void odroid_device_register_post_config(device_t self, void *aux);
-
-
-/*
- * Our static device mappings at fixed virtual addresses so we can use them
- * while booting the kernel.
- *
- * Map the extents segment-aligned and segment-rounded in size to avoid L2
- * page tables
- */
-
-#define _A(a) ((a) & ~L1_S_OFFSET)
-#define _S(s) (((s) + L1_S_SIZE - 1) & (~(L1_S_SIZE-1)))
-
-static const struct pmap_devmap e4_devmap[] = {
- {
- /* map in core IO space */
- .pd_va = _A(EXYNOS_CORE_VBASE),
- .pd_pa = _A(EXYNOS_CORE_PBASE),
- .pd_size = _S(EXYNOS4_CORE_SIZE),
- .pd_prot = VM_PROT_READ | VM_PROT_WRITE,
- .pd_cache = PTE_NOCACHE
- },
- {
- /* map in audiocore IO space */
- .pd_va = _A(EXYNOS4_AUDIOCORE_VBASE),
- .pd_pa = _A(EXYNOS4_AUDIOCORE_PBASE),
- .pd_size = _S(EXYNOS4_AUDIOCORE_SIZE),
- .pd_prot = VM_PROT_READ | VM_PROT_WRITE,
- .pd_cache = PTE_NOCACHE
- },
- {0}
-};
-
-static const struct pmap_devmap e5_devmap[] = {
- {
- /* map in core IO space */
- .pd_va = _A(EXYNOS_CORE_VBASE),
- .pd_pa = _A(EXYNOS_CORE_PBASE),
- .pd_size = _S(EXYNOS5_CORE_SIZE),
- .pd_prot = VM_PROT_READ | VM_PROT_WRITE,
- .pd_cache = PTE_NOCACHE
- },
- {
- /* map in audiocore IO space */
- .pd_va = _A(EXYNOS5_AUDIOCORE_VBASE),
- .pd_pa = _A(EXYNOS5_AUDIOCORE_PBASE),
- .pd_size = _S(EXYNOS5_AUDIOCORE_SIZE),
- .pd_prot = VM_PROT_READ | VM_PROT_WRITE,
- .pd_cache = PTE_NOCACHE
- },
- {0}
-};
-#undef _A
-#undef _S
-
-#ifdef PMAP_NEED_ALLOC_POOLPAGE
-static struct boot_physmem bp_highgig = {
- .bp_pages = (KERNEL_VM_BASE - KERNEL_BASE) / NBPG,
- .bp_freelist = VM_FREELIST_ISADMA,
- .bp_flags = 0,
-};
-#endif
-
-/*
- * u_int initarm(...)
- *
- * Our entry point from the assembly before main() is called.
- * - take a copy of the config we got from uboot
- * - init the physical console
- * - setting up page tables for the kernel
Home |
Main Index |
Thread Index |
Old Index