From owner-svn-src-all@freebsd.org Sat Nov 19 15:10:12 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1FCAFC4ACC6; Sat, 19 Nov 2016 15:10:12 +0000 (UTC) (envelope-from br@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E5B4DFC3; Sat, 19 Nov 2016 15:10:11 +0000 (UTC) (envelope-from br@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uAJFABNT014367; Sat, 19 Nov 2016 15:10:11 GMT (envelope-from br@FreeBSD.org) Received: (from br@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAJFAAne014365; Sat, 19 Nov 2016 15:10:10 GMT (envelope-from br@FreeBSD.org) Message-Id: <201611191510.uAJFAAne014365@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: br set sender to br@FreeBSD.org using -f From: Ruslan Bukin Date: Sat, 19 Nov 2016 15:10:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r308835 - in head/sys/mips: include mips X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2016 15:10:12 -0000 Author: br Date: Sat Nov 19 15:10:10 2016 New Revision: 308835 URL: https://svnweb.freebsd.org/changeset/base/308835 Log: Identify Ingenic CPUs. Submitted by: kan Sponsored by: DARPA, AFRL Modified: head/sys/mips/include/locore.h head/sys/mips/mips/cpu.c Modified: head/sys/mips/include/locore.h ============================================================================== --- head/sys/mips/include/locore.h Sat Nov 19 15:03:49 2016 (r308834) +++ head/sys/mips/include/locore.h Sat Nov 19 15:10:10 2016 (r308835) @@ -59,6 +59,9 @@ #define MIPS_PRID_CID_LEXRA 0x0b /* Lexra */ #define MIPS_PRID_CID_RMI 0x0c /* RMI */ #define MIPS_PRID_CID_CAVIUM 0x0d /* Cavium */ +#define MIPS_PRID_CID_INGENIC 0xe1 /* Ingenic */ +#define MIPS_PRID_CID_INGENIC2 0xd1 /* Ingenic */ + #define MIPS_PRID_COPTS(x) (((x) >> 24) & 0x00ff) /* Company Options */ #endif /* _MIPS_LOCORE_H */ Modified: head/sys/mips/mips/cpu.c ============================================================================== --- head/sys/mips/mips/cpu.c Sat Nov 19 15:03:49 2016 (r308834) +++ head/sys/mips/mips/cpu.c Sat Nov 19 15:10:10 2016 (r308835) @@ -373,6 +373,10 @@ cpu_identify(void) case MIPS_PRID_CID_CAVIUM: printf("Cavium"); break; + case MIPS_PRID_CID_INGENIC: + case MIPS_PRID_CID_INGENIC2: + printf("Ingenic XBurst"); + break; case MIPS_PRID_CID_PREHISTORIC: default: printf("Unknown cid %#x", cpuinfo.cpu_vendor);