Commit Graph

2430 Commits

Author SHA1 Message Date
uebayasi
7fe7089a02 Add pseudo-device ksyms' where options DDB' is used, because
config(1)/config(5) can't handle module dependency correctly at this
moment.

(This is another proof that shared file definition (`file xxx.c a|b')
is a bad idea.)
2015-08-21 01:52:07 +00:00
riz
f388f9ad5d options FFS_EI, and options IPSEC for GENERIC.common . No objections
when raised on port-arm, and only affects those boards including this
file.

Tested on BPI and ODROID-C1
2015-08-20 18:25:09 +00:00
uebayasi
185745d477 Indent with 2 spaces. 2015-08-20 07:00:48 +00:00
uebayasi
524c1ab042 Clean up ${LINKSCRIPT} and ${KERNLDSCRIPT}. 2015-08-20 06:21:02 +00:00
phx
d643dd143b MI driver for the Microchip 3x0x series of SAR analog to digital converters. 2015-08-18 15:54:20 +00:00
maxv
e99716e305 Remove KMEMSTATS. 2015-08-12 07:53:56 +00:00
riz
d3c5fe8471 Use GENERIC.common 2015-08-11 00:19:37 +00:00
tnn
7d1a028693 add commented out entries for com ports that are physically routed 2015-08-08 23:32:22 +00:00
jmcneill
567f4a1651 We have two SD controllers with different capabilities. Use the fast "SDHC"
controller for the card that the bootloader marked as the boot device,
and the slower "SDIO" controller for the other card if present.

The controller to slot mappings can be wired down in the kernel config
with the "port" locator if necessary.
2015-08-08 14:01:44 +00:00
jmcneill
826d810d5a Pass boot device to amlogicsdhc and amlogicsdio drivers. 2015-08-08 13:54:05 +00:00
jmcneill
a7d5b4b793 Enable eMMC on the SDIO controller. 2015-08-08 10:56:55 +00:00
maxv
b74522aae1 Remove KMEMSTATS. 2015-08-08 06:36:24 +00:00
maxv
02aebf5ed4 Remove KMEMSTATS. 2015-08-07 13:53:28 +00:00
maxv
d22da207ed Remove the KMEMSTATS option. It no longer exists. 2015-08-07 07:29:33 +00:00
jmcneill
bfaf326c74 enable eMMC 2015-08-02 00:24:45 +00:00
jmcneill
ded9bc704e Enable tegracec and hdmicec 2015-08-01 21:20:46 +00:00
skrll
9c4bc51ae1 Re-enable cpus [123] now that bcm2835_intr.c is fixed with rev 1.11/ 2015-08-01 16:18:47 +00:00
ryo
7d0814f960 - setup iomux before attach console
- define EVBARM_BOARDTYPE in each config file
- add iomux settings for UART1
- add some iomux definitions
2015-07-30 08:09:36 +00:00
jmcneill
41a4a26eaf disable DEBUG and LOCKDEBUG 2015-07-26 10:09:53 +00:00
maxv
da640ae79a Double compiler branch.
Found by Brainy
2015-07-22 14:10:45 +00:00
skrll
2937f60293 Trailing whitespace. 2015-07-22 10:32:16 +00:00
htodd
47c34601a5 DDB is already defined in the included file. 2015-07-18 15:05:52 +00:00
matt
ecc2d96a28 Add install kernel for cubox-i 2015-07-18 00:57:10 +00:00
matt
585d1e8810 Deal with more than 1GB of RAM. 2015-07-17 20:29:29 +00:00
reinoud
d812002de5 Update MARVELL_NAS to allow it to execute 6.X userland and fix obvious
obmissions.

The config file itself would benefit from rewriting it to use GENERIC.common
but i haven't dug into that yet.
2015-07-16 13:10:37 +00:00
martin
934f228a1e Clear STRIPFLAGS (stripping in general is dangerous with the -BE8 object
format, and should never be done before the final linking has happened).
From Rin Okuyama.
2015-07-15 11:21:49 +00:00
kiyohara
51e0a6bae5 Move makphy to after mv{gb,xp}e.
And indents.
2015-06-28 13:10:38 +00:00
kiyohara
7d7691d2af Remove mvsdio. OpenBlocks AX3 not have it. 2015-06-28 12:58:52 +00:00
jmcneill
c39a576f5e enable trng driver 2015-06-06 14:00:52 +00:00
jmcneill
731c66cc7d Add kernel config for Olimex A20-OLinuXino-LIME2 2015-06-03 10:01:56 +00:00
jmcneill
684275fceb Olimex A20-OLinuXino-LIME2 support, from Greg Willatt <gpw26@mrao.cam.ac.uk> 2015-06-03 10:01:32 +00:00
hsuenaga
b2a4d4f392 add kernel config of if_mvxpe(new ethernet) and mvxpsec(new cryptographic).
still disabled by default. I need to do more test...
2015-06-03 04:31:46 +00:00
hsuenaga
7d6cdecd7e initialize ARMADA XP's Mbus address decoder and code clean up
probably we need more sophisticated Mbus driver or KPI...
2015-06-03 03:25:51 +00:00
matt
99d1b2efee cinclude CUBIEBOARD.local 2015-06-01 23:17:47 +00:00
matt
d3558c0177 Increase kernel VA space for kernels that don't use direct mapped memory.
(512MB -> 1.25GB)
2015-05-31 22:15:52 +00:00
jmcneill
42e3a53701 disable __HAVE_MM_MD_DIRECT_MAPPED_PHYS again, still some stability issues 2015-05-31 20:04:44 +00:00
jmcneill
9be3b3689d enable MULTIPROCESSOR 2015-05-31 14:43:59 +00:00
skrll
9014cc8d38 No need to cpu_dcache_wbinv_all now that a9_mpsubr.S invalidates L1 only
as it should
2015-05-31 08:13:18 +00:00
jmcneill
58a741c99b enable __HAVE_MM_MD_DIRECT_MAPPED_PHYS and PMAP_NEED_ALLOC_POOLPAGE 2015-05-31 00:41:53 +00:00
matt
3c80ab26d6 Use the first1g for kernel memory, not the 2nd one. 2015-05-30 23:17:37 +00:00
jmcneill
7e86eeda9b attach gpiobutton to power button pin 2015-05-30 15:36:27 +00:00
jmcneill
abf8a55536 add HDAUDIOVERBOSE 2015-05-30 14:13:12 +00:00
jmcneill
6e40faebf1 enable hdaudio 2015-05-30 13:47:17 +00:00
jmcneill
d33dbb1618 Tegra K1 Watchdog support. 2015-05-30 13:25:55 +00:00
jmcneill
a34b0ce127 Replace ath with athn, and attach gpiorfkill to GPIO X7 2015-05-29 23:18:30 +00:00
matt
8826022743 Remove #define VERBOSE_INIT_ARM 2015-05-28 02:22:05 +00:00
jmcneill
6e40120187 MP not ready, disable it again 2015-05-27 09:40:51 +00:00
skrll
728b01dfee Before spinning up the secondary cpus flush the dcache otherwise the
dcache invalidate in cortex_mpstart makes bad things happen.

I have no idea why.

RPI2 boots again
2015-05-21 20:50:57 +00:00
jmcneill
8987f28bba re-enable multiprocessor support now that sdmmc has been fixed 2015-05-21 10:35:08 +00:00
jmcneill
ed3efacb13 Power-on Host1x subsystem 2015-05-18 20:36:42 +00:00
jmcneill
bfb965fe25 Work in progress HDMI / framebuffer support for Tegra K1. 2015-05-18 19:32:48 +00:00
jmcneill
3333c4c041 add ddc at iic3 (HDMI DDC) 2015-05-16 11:49:01 +00:00
jmcneill
5cdbd765d2 enable SATA, maybe it will inspire someone to fix it 2015-05-15 12:18:48 +00:00
jmcneill
27610eb34b enable XUSB PADCTL 2015-05-15 11:49:58 +00:00
hsuenaga
18a97e755e add synchronization barrier for AURORA_IO_CACHE_COHERENCY.
cleanup MARVELL L2 cache code.
2015-05-14 05:39:32 +00:00
jmcneill
8f1f86202d add INSTALL kernel for JETSONTK1 2015-05-14 00:07:04 +00:00
jmcneill
0e46ac913f 5V/12V power to molex connector on Jetson TK1 is controlled by GPIO EE2 2015-05-14 00:02:00 +00:00
skrll
119978f543 Whitespace 2015-05-13 11:21:38 +00:00
skrll
37fba0f3a7 One comment is enough for anybody 2015-05-13 11:21:04 +00:00
jmcneill
9d47d126db select max cpu frequency (~2.3GHz) at boot 2015-05-13 11:07:28 +00:00
jmcneill
685c034321 initialize cpufreq subsystem 2015-05-13 11:07:02 +00:00
jmcneill
0ea784f51b add titemp 2015-05-12 20:54:30 +00:00
jmcneill
069a031648 copy bootargs from uboot before we turn on the MMU, for the benefit of kernels without __HAVE_MM_MD_DIRECT_MAPPED_PHYS 2015-05-12 10:37:20 +00:00
jmcneill
8300b51deb add ath@pci (mini-PCIe expansion slot) 2015-05-11 21:46:50 +00:00
jmcneill
3bc45873a8 add tegrai2c (I2C[12345]) and seeprom on I2C1 2015-05-10 23:51:08 +00:00
jmcneill
23bcc13e35 half-attached sdhc breaks reset for some reason, so disable eMMC until we fix it 2015-05-10 13:24:11 +00:00
jmcneill
430e427719 Jetson TK1: USB1 VBUS power is controlled by GPIO N4 2015-05-09 18:57:30 +00:00
jmcneill
036acc4d2c for Jetson TK1, GPIO N5 controls vbus vdd for USB2 2015-05-09 12:08:30 +00:00
jmcneill
2486eb6552 enable tegrampio 2015-05-07 23:55:31 +00:00
mrg
4499df58a1 bump CHILD_MAX and OPEN_MAX defaults on several platforms, both to 1024. 2015-05-07 19:14:55 +00:00
hkenken
275055545e use armv7_generic_space 2015-05-07 04:13:47 +00:00
jmcneill
8827e7890a Tegra K1 RTC driver. 2015-05-05 00:25:44 +00:00
jmcneill
10be22f9da Remove __HAVE_MM_MD_DIRECT_MAPPED_PHYS and re-enable 2GB support, fixed
by arm32_kvminit.c r1.33
2015-05-04 00:59:29 +00:00
jmcneill
5e96a9e7b1 disable MULTIPROCESSOR for now 2015-05-03 18:49:28 +00:00
jmcneill
ec484ab4fe UART clock source is PLLP. Set com type to COM_TYPE_TEGRA. 2015-05-03 17:24:45 +00:00
hsuenaga
4e3bd6105a add new ethernet driver mvxpe for recent MARVELL's SoC after ARMADA/XP.
this driver supports 'counter mode', and is disabled by default.

ARMADA SoC family has new ethernet controller acceleration mode called
'enhanced mode' or 'counter mode.' it seems that backward compatibility mode
used by if_mvgbe is still working, but the specification of the old mode
is completely disappeared from SoC's reference manual.

I tested the driver using MIRABOX(ARMADA/370).
2015-05-03 14:38:09 +00:00
jmcneill
e1b20f2837 Add Tegra K1 PCIE support. 2015-05-03 01:07:44 +00:00
jmcneill
581102ab39 jetsontk1 specific gpio setup for sdhc 2015-05-02 17:15:20 +00:00
jmcneill
834fa49e7b enable tegragpio 2015-05-02 12:09:34 +00:00
skrll
990b408b90 Disable non-boot CPUs on RPI2 - there are still issues with interrupt
handling.
2015-05-01 09:59:11 +00:00
hkenken
85ce02e169 remove DIAGNOSTIC 2015-05-01 07:22:42 +00:00
martin
2ea02f975a Add options COPY_SYMTAB to make module loading (and /dev/ksyms) work again. 2015-04-29 19:05:51 +00:00
jmcneill
8bcb30da14 Add a basic driver for the Clock and Reset controller, use it to determine
CPU frequency.
2015-04-28 11:15:55 +00:00
jmcneill
82e3865891 disable sata and hda until we learn how to power them up 2015-04-27 09:56:36 +00:00
jmcneill
f0b45a5b6d remove unnecessary debug print 2015-04-27 00:33:46 +00:00
jmcneill
19d924bc96 add Tegra124 MP support 2015-04-26 22:04:28 +00:00
jmcneill
cf61db07b7 arg 2GB causing usb issues, re-add __HAVE_MM_DIRECT_MAPPED_PHYS for now 2015-04-26 18:03:48 +00:00
jmcneill
9e89a84a7d disable __HAVE_MM_MD_DIRECT_MAPPED_PHYS so we can use all 2GB 2015-04-26 17:41:33 +00:00
jmcneill
aa39d1df52 handle PMAP_NEED_ALLOC_POOLPAGE 2015-04-26 17:40:59 +00:00
jmcneill
4c7784d04d add AHB_A2 to devmap, print SCTLR value in initarm 2015-04-26 16:24:01 +00:00
jmcneill
2e22f644ae KERNEL_BASE_{PHYS,VIRT} are already defined in std.tegra 2015-04-26 16:11:57 +00:00
jmcneill
f4d63a19ea Add Amlogic GPIO driver. 2015-04-25 14:41:33 +00:00
matt
bdd8e25a08 Revert back to IS_CURCPU until panics with CURLWP are solved. 2015-04-22 23:04:16 +00:00
matt
36b5b12d8a No need for CPU_CORTEXA7 since it's implied by ALLWINNER_A20 2015-04-21 04:24:51 +00:00
jmcneill
7a329562eb Add pseudo-devices crypto, swcrypto, bridge, vlan, ppp, pppoe, tun, tap,
gre, and npf.
2015-04-20 10:09:09 +00:00
matt
19763396ac Switch to armv7_generic bus_space. 2015-04-20 01:33:22 +00:00
matt
80ff7cef1c Use TPIDRPRW_IS_CURLWP 2015-04-20 00:11:27 +00:00
matt
05fc45b72f Comment out __HAVE_PREEMPTION 2015-04-20 00:09:48 +00:00
matt
bc2411d2fd Remove CPU_CORTEXA7 since ALLWINNER_A31 implies it 2015-04-19 23:03:47 +00:00
matt
32119e03e7 Remove options CPU_CORTEX* since options ALLWINNER_* will now define them.
Use GENERIC.common for CUBIEBOARD (and BPI and CUBIETRUCK)
2015-04-19 21:28:37 +00:00
matt
1a80f299be Add JIT options and DKWEDGE_{AUTODISCOVER,GPT} 2015-04-19 21:09:02 +00:00
skrll
cc6cdaf8bc Remove dmover(9) references 2015-04-18 13:43:45 +00:00
skrll
691b39ea81 Enable COMPAT_NETBSD32 2015-04-18 11:32:37 +00:00
skrll
12b1faf657 Use GENERIC.common 2015-04-18 11:30:22 +00:00
skrll
2b32f2bf6f Use character constants instead of ascii values for readability
Print A80 in the A80 case and actually print the CPU number for A31/A80
2015-04-18 11:04:49 +00:00
skrll
7f8193012c Use character constants instead of ascii values for readability 2015-04-18 11:03:31 +00:00
skrll
d581e64e0b Typo 2015-04-18 08:06:13 +00:00
jmcneill
2e73a896f8 port number is required 2015-04-17 18:36:15 +00:00
hsuenaga
a7d5f1c231 lookup clock frequencies of ARMADA 370 correctly. 2015-04-15 10:30:42 +00:00
hsuenaga
c3635de7de add u-boot argument parser for Marvell ARMADA XP/370.
use 'ethaddr' and 'eth1addr' in u-boot argument to setup MAC address of mvgbe.
2015-04-15 10:15:40 +00:00
bouyer
75ac5055c8 Add the edma controller, and enable DMA for sdhc0 and sdhc1 2015-04-14 18:45:57 +00:00
riastradh
445478ce67 MD rnd.h cleanups. Please let me know if I broke anything! 2015-04-13 21:18:40 +00:00
skrll
3d5eb3e43c RPI2 MP support.
Thanks to Matt Thomas for making this possible with his changes to pic.c
2015-04-12 17:32:39 +00:00
jmcneill
eec2712ffd replace NFS_BOOT_BOOTP with NFS_BOOT_DHCP 2015-04-12 14:55:30 +00:00
skrll
0802cfce6f Tweak cpu start up slightly and print TTBR for cortex_mmuinfo when
VERBOSE_INIT_ARM
2015-04-11 15:29:58 +00:00
matt
f9b7e48585 options<space><tab> 2015-04-11 00:11:40 +00:00
hkenken
ca11570717 add PARALLELLA and ZEDBOARD 2015-04-10 11:04:58 +00:00
hkenken
0973511bca include "GENERIC.common" 2015-04-10 10:58:07 +00:00
jmcneill
0f61bda0b6 use conf/filesystems.config 2015-04-03 23:52:51 +00:00
jmcneill
8d31b76868 Move common non-device stuff to GENERIC.common. Simplify board configs,
and let them all share common settings.
2015-04-03 23:25:07 +00:00
jmcneill
12e9b90f9f Allow for choosing between 16 and 24bpp framebuffers. The default is now
16 instead of 24. Set 'fb.depth=16' or 'fb.depth=24' on kernel command-line
to explicitly select a colour depth.
2015-04-03 18:03:05 +00:00
jmcneill
f058c67066 comment out DDB_COMMANDONENTER 2015-04-03 18:00:25 +00:00
riz
afea39b2f2 Spell "Independent" correctly in cargo-culted comments. 2015-03-31 17:37:47 +00:00
jmcneill
d52192759c Use shared armv7_generic_space 2015-03-29 22:49:44 +00:00
jmcneill
c154fb0a46 Use shared armv7_generic_space 2015-03-29 22:27:04 +00:00
jmcneill
8588c5e96f hey there's a README here! add ALLWINNER_A80, BPI, CUBIEBOARD, CUBIETRUCK, HUMMINGBIRD_A31, JETSONTK1, ODROID-C1, ROCKCHIP configs 2015-03-29 21:11:17 +00:00
jmcneill
7629fee564 no need to set arm_cpu_max here, it is done in soc specific code 2015-03-29 10:55:11 +00:00
jmcneill
d4fd11438d NVIDIA Tegra K1 support, work in progress. 2015-03-29 10:41:59 +00:00
skrll
3e7e38c3d0 Trailing whitespace. 2015-03-27 11:42:28 +00:00
jmcneill
4f1b45db2e Add Amlogic RTC driver, from Anon Ymous 2015-03-22 17:28:22 +00:00
jmcneill
6bd142becd Use the hardware scaler to do overscan compensation. You can set the
scaling value as a percentage in two ways -- either as a kernel cmdline
parameter (fb.scale=<pct>) or at runtime with sysctl (hw.genfb0.scale=<pct>).

Setting scale=100 disables the scaler, any other value enables it. For
the cheap TV on my desk, scale=95 gives me a fully visible framebuffer.
2015-03-22 13:53:33 +00:00
jmcneill
08f124e4e2 Basic framebuffer console support. Work in progress. 2015-03-21 01:17:00 +00:00
jmcneill
8f2d1952a2 disable DEBUG, LOCKDEBUG, VERBOSE_INIT_ARM 2015-03-18 23:03:06 +00:00
jmcneill
8b8b794d16 Add CPUFREQ option to set boot CPU frequency. ODROID-C1 is advertised
as quad-core 1.5GHz but boots up at 1.2GHz; add CPUFREQ=1512 to config
and make sure to set the correct speed before attaching CPUs.

The speed can still be scaled down with machdep.cpu sysctls.
2015-03-17 22:29:40 +00:00
jmcneill
1d0fa5c96e add ODROID-C1 install kernel 2015-03-16 22:16:42 +00:00
joerg
b4c948cc41 Do invalidate the cache as RPI2 build with Clang can't fetch the memory
config otherwise.
2015-03-15 22:54:03 +00:00
jmcneill
11d383a541 add no options ARM11_COMPAT_MMU 2015-03-14 19:06:14 +00:00
jmcneill
2fc05df71f re-add ARM11_COMPAT_MMU, lost in the rpi2 shuffle 2015-03-14 14:59:43 +00:00
skrll
0793be9372 Note RPI2 2015-03-09 22:05:06 +00:00
jmcneill
a3b2252a54 enable amlogicsdhc 2015-03-08 12:45:35 +00:00
jmcneill
af9a28ef89 amlogic_reset: increase terminal_count to give uart sufficient time to flush any pending bytes before rebooting 2015-03-08 11:22:05 +00:00
jmcneill
183112512a add amlogicrng, add commented-out genfb placeholder 2015-03-07 21:35:10 +00:00
skrll
d12136cf04 Add an RPI2_INSTALL 2015-03-06 22:29:06 +00:00
jmcneill
b7fbc144bb initialize amlogic cpufreq sysctls 2015-03-05 23:44:30 +00:00
skrll
ec9ad5f873 Spellos 2015-03-05 08:09:44 +00:00
jmcneill
65bc6e64e2 Support for passing mac address from u-boot to the kernel with the
awge0.mac-address cmdline option.
2015-03-04 23:52:54 +00:00
skrll
5b9b796bff Spin up the non-boot CPUs, but don't allow cpu_boot_secondary_processors
to see them for now.

RPI2 nows works well with only the boot cpu.
2015-03-04 17:02:17 +00:00
jmcneill
aaff7bb5e1 ODROID-C1 onboard ethernet support. 2015-03-04 12:36:12 +00:00
jmcneill
f7487ce3ce fix build without VERBOSE_INIT_ARM 2015-03-03 23:20:04 +00:00
jmcneill
df09e41367 cleanup, copy in boot args from uboot 2015-03-03 23:14:41 +00:00
jmcneill
df81c70737 auto-detect RAM size 2015-03-01 15:37:26 +00:00
jmcneill
6ad5a230fa ODROID-C1 SMP support. 2015-03-01 15:07:49 +00:00
jmcneill
c4e54644b6 add dwctwo and usb devices 2015-02-28 18:52:01 +00:00
jmcneill
c7663cfa5a access watchdog with AMLOGIC_CBUS_OFFSET offset 2015-02-28 18:50:15 +00:00
jmcneill
335d06a52b set correct a9tmr/a9wdt frequency 2015-02-28 15:21:07 +00:00
skrll
1f9df33256 Initial RPI2 support - it doesn't work yet. The generic timer gets messed
up somehow.

This commit changes the KVA layout of the RPI.
2015-02-28 09:34:34 +00:00
jmcneill
e7e5c999fe implement amlogic_reset 2015-02-27 21:13:52 +00:00
jmcneill
d96a60be65 pass external pl310 offset to arml2cc with device_register 2015-02-27 20:41:01 +00:00
jmcneill
56475ea782 derive cpu freq from cbus regs 2015-02-27 19:57:10 +00:00
jmcneill
c70e4bf63c use va not pa for console bsh 2015-02-27 18:00:29 +00:00
jmcneill
c1939731e3 Add basic serial console support. 2015-02-27 17:35:08 +00:00
jmcneill
321b890ebd no need to override ARM_CBAR, remove unused COM_16750 option 2015-02-27 17:33:31 +00:00
kiyohara
cd074d660e Add OVERO_INSTALL. 2015-02-27 13:18:11 +00:00
ryo
4edfd80a8e on iMX6, disable __HAVE_MM_MD_DIRECT_MAPPED_PHYS and PMAP_NEED_ALLOC_POOLPAGE by default. 2015-02-25 08:11:48 +00:00
joerg
50a901d1dc Give LLVM a bit breathing room for the sshramdisk when building for
generic ARM.
2015-02-23 23:21:47 +00:00
joerg
9642a6c30f Use default PAGER_MAP_DEFAULT_SIZE for ARM and PowerPC, exception
acorn26. This bumps the KVA reservation from 4MB to 16MB and avoids
long hangs on my Cubietruck under IO. acorn26 is kept as it does have a
ridiculous low 32MB KVA limit.
2015-02-23 20:34:37 +00:00
skrll
be476388f9 Bump memory disk size to fix build. 2015-02-16 22:50:02 +00:00
joerg
dcdeaeb906 Both ext2 and iso9660 are useful when dealing with external devices, so
include them.
2015-02-13 13:48:17 +00:00
ozaki-r
983ef0b1a0 Remove unexpected code duplications
I don't know why this happened...
2015-02-11 07:51:10 +00:00
skrll
90bfba80c0 Name some interrupts 2015-02-09 21:56:20 +00:00
slp
c972c7f865 Add configuration file for Versatile Express A15 board. 2015-02-09 07:50:24 +00:00
slp
3e1fed327a Add support for Versatile Express A15 board.
This has not been tested with real hardware, just with the software
model emulated by QEMU.
2015-02-09 07:47:15 +00:00
joerg
cfdedc1449 Include vnd, fss and putter 2015-02-08 20:25:10 +00:00
jmcneill
b2dc542fe0 Work-in-progress Odroid-C1 support. 2015-02-07 17:20:16 +00:00
jmcneill
7cc6666854 add install kernel for INTEGRATOR_CP 2015-01-27 20:26:15 +00:00
jmcneill
11b65f4460 enable plmmc(4) 2015-01-27 16:35:47 +00:00
jmcneill
c856dd1c49 add plmmc(4) glue 2015-01-27 16:34:34 +00:00
skrll
88735ca84f Don't mask irq 23 2015-01-26 08:55:41 +00:00
hkenken
2074c2d050 Initial Zynq (Xilinx) support
Add support for ZedBoard evaluation board and Parallella board.
* cemac(4) Cadence EMAC/GEM(Gigabit) Ethernet Controller driver
  based on at91emac
2015-01-23 12:34:09 +00:00
jmcneill
d415dbe367 Newer Raspberry Pi firmware has changed the framebuffer from BGR to RGB.
The method we use to set the pixel order (vcprop set pixel order) does
not seem to work, nor does querying the pixel order (vcprop get pixel order).

The firmware passes this information to the kernel by adding a
"bcm2708_fb.fbswap" kernel cmdline arg. 0=BGR, 1=RGB. If the parameter is
absent, assume we are running on old firmware and use BGR mode.
2015-01-21 11:02:55 +00:00
jmcneill
fa0429db0e fix VERBOSE_INIT_ARM; cant call rockchip_chip_name() this early 2015-01-17 17:30:26 +00:00
jmcneill
de8b484268 Add Rockchip PX2 support, from FUKAUMI Naoki <fun@naobsd.org> 2015-01-17 15:05:24 +00:00
jmcneill
2db3e9eb36 looks like hym8563 and pcf8563 are compatible, switch to pcf8563rtc driver 2015-01-11 16:53:42 +00:00
jmcneill
c768532052 add hymrtc driver 2015-01-11 15:23:09 +00:00
jmcneill
506c85bb55 add rlphy 2015-01-10 12:50:54 +00:00
jmcneill
96cc888f77 Petri Laakso <petri.laakso@asd.fi>
-       New audio driver
-       Add new devices rtc and digfilt
-       Use BOOT_ARGS if defined in kernel configuration
2015-01-10 12:18:09 +00:00
jmcneill
ae7ee7f450 define MEMSIZE in opt_imx.h, fixes build of IMX23_OLINUXINO kernel 2015-01-10 12:11:39 +00:00
jmcneill
401a108a75 use BOOTOPT_TYPE_MACADDR 2015-01-06 00:52:26 +00:00
jmcneill
1a6d2c6b3b typo fix 2015-01-06 00:45:45 +00:00
jmcneill
3b928cbe55 allow passing rkemac0.mac-address=xx:xx:xx:xx:xx:xx on kernel cmdline to override random mac address 2015-01-06 00:43:59 +00:00
jmcneill
1e3894553e remove rgephy, radxa rock seems to have an smsc phy that works with ukphy 2015-01-05 22:17:38 +00:00
martin
ad080d19b4 Fix typo in BPI specific setup, spotted by Jared.
Now awge works with the official sunxi-linux u-boot versions as well.
2015-01-04 15:59:32 +00:00
jmcneill
ee9ed106f4 set LDO5 to 3.3V and enable for emac 2015-01-04 03:55:11 +00:00
jmcneill
d9650d3cbb add rkemac, rgephy, ukphy 2015-01-04 03:53:34 +00:00
jmcneill
380f6aeb58 build fix 2015-01-03 16:15:25 +00:00
jmcneill
27939bef63 set DCDC4 to 3.3V for mmc0 2015-01-03 13:28:00 +00:00
jmcneill
35dd32a1db attach rktimer and rkiic early 2015-01-03 13:27:11 +00:00
jmcneill
1b714ed8e8 add rktimer 2015-01-02 23:20:49 +00:00
jmcneill
5e4a2bdda1 init cpufreq, remove cpu.frequency boot arg support 2015-01-02 22:00:02 +00:00
christos
c182898b0d We have three sets of DTYPE_ constants in the kernel:
altq		Drop 		Type
	disklabel	Disk 		Type
	file		Descriptor	Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
2015-01-02 19:42:05 +00:00
martin
03cf64aad4 Use pinset-func 3 for gmac on BananaPI (value taken from the only working
u-boot driver).
This makes root on NFS and ftp transfers work for me.
2015-01-02 11:46:53 +00:00
jmcneill
5c3b4119a4 Enable LDO2 for HDMI driver. 2015-01-02 00:50:56 +00:00
jmcneill
2284275e2c wire down iicN units, add act8846pm at iic1 2015-01-01 17:34:00 +00:00
jmcneill
c62041e48d fix i2c offsets 2014-12-31 23:38:42 +00:00
jmcneill
3c14839044 MULTIPROCESSOR works now 2014-12-30 21:29:43 +00:00
jmcneill
1914bfd31d do armv7_dcache_inv_all before cortex_mpstart on secondaries 2014-12-30 21:24:36 +00:00
jmcneill
211b6cbf4d specify irq numbers for rkiic so we can avoid polled mode when possible 2014-12-30 17:28:52 +00:00
jmcneill
ff912df066 enable rkiic and iic 2014-12-30 17:16:29 +00:00
jmcneill
bf33f1be32 Add support for setting RK3188/RK3188+ CPU frequency. If the SoC ID is
passed in bootargs matching RK3188 or RK3188+, and the cpu.frequency
option specifies a supported rate (currently 600, 1008, 1608 MHz), the
APLL clock will be adjusted accordingly.
2014-12-30 03:53:52 +00:00
jmcneill
c767bf429f something wrong with MP, turn it off for now 2014-12-29 12:53:39 +00:00
jmcneill
5b6f48e0e1 MAX_BOOT_STRING is not large enough for noisy Rockchip U-Boot; bump bootargs to 1024 bytes 2014-12-29 03:16:07 +00:00
jmcneill
fe2ccb09db Copy cmdline from U-Boot to bootargs. 2014-12-28 21:34:33 +00:00
jmcneill
c238f14705 add -mfpu=neon to CPPFLAGS 2014-12-28 16:29:21 +00:00
jmcneill
07297f2230 enable MULTIPROCESSOR 2014-12-28 16:04:05 +00:00
jmcneill
196997ef0d add MULTIPROCESSOR support 2014-12-28 16:03:51 +00:00
jmcneill
cc521a8b25 add support for detecting memory size. 2GB config doesnt work yet, so keep MEMSIZE set for now. 2014-12-28 01:51:37 +00:00
jmcneill
227b4fc43d Bring this closer to Allwinner / RPI configs:
Add MSDOSFS, KERNFS, PROCFS, INET6, SYSVMSG, SYSVSEM, SYSVSHM, BUFQ_PRIOCSCAN.
Remove DEBUG, LOCKDEBUG, VERBOSE_INIT_ARM.
Change DDB_ONPANIC from 2 to 1.
Cinclude ROCKCHIP.local
2014-12-27 20:28:09 +00:00
jmcneill
5040b7889f use rockchip_a9periph_get_rate for a9tmr frequency 2014-12-27 16:19:24 +00:00
jmcneill
9ac0c0c11a timer_clk is 24MHz 2014-12-27 04:20:38 +00:00
jmcneill
5eeafad29c use correct bs tag for arml2cc_init 2014-12-27 03:58:52 +00:00
jmcneill
8f94c21074 dont hard-code cpu_cc_freq 2014-12-27 02:40:23 +00:00
jmcneill
79ec78c527 add dwcmmc 2014-12-27 01:29:13 +00:00
jmcneill
14e2578603 use rockchip_crureg.h 2014-12-27 01:21:02 +00:00
martin
deab0235f8 "Jared broke my kernel by adding comments!" - make it compile again 2014-12-26 21:45:17 +00:00
jmcneill
3d2a425be2 Map all of core0 and core1 space and let drivers use bus_space_subregion
instead of bus_space_map. Fill in rockchip_reset.
2014-12-26 19:44:48 +00:00
jmcneill
4868a9ae4a Initial support for Rockchip RK3066 / RK3188 SoCs, from Hiroshi Tokuda
<tokuda@tokuda.net> on port-arm:

http://mail-index.netbsd.org/port-arm/2014/10/09/msg002651.html
2014-12-26 16:53:33 +00:00
matt
a7cfe46ea7 Default to armv7-a when building ODROID kernels so we get the armv7a
instructions.
2014-12-23 18:38:58 +00:00
jmcneill
2c296d5db2 fix A20/A31 MP 2014-12-22 23:46:50 +00:00
jmcneill
d8a2c87b34 read chip ID from SRAM ver reg on A80; the chip ID is 0x1639 2014-12-22 00:07:24 +00:00
jmcneill
2f4075b12d enable awindebe, genfb, wsdisplay 2014-12-21 17:42:12 +00:00
jmcneill
971763960c add INSTALL kernel for Allwinner A80 2014-12-14 18:12:38 +00:00
jmcneill
67c6840c84 enable MULTIPROCESSOR 2014-12-11 23:35:31 +00:00
jmcneill
d994108009 A80: Startup 3 additional Cortex-A7 cores in cluster 0. 2014-12-11 23:35:11 +00:00
jmcneill
dd1501f656 Use correct pinset function (5 not 2) for gmac on BananaPi 2014-12-10 17:45:53 +00:00
jmcneill
11ccb2fac6 eMMC works now, turn it on 2014-12-07 20:10:08 +00:00
jmcneill
debdad4e2b Add A80 PIO L,M,N and A80 CIR (RX) support. 2014-12-07 18:32:13 +00:00
jmcneill
a632d58f1c add AC100 CODEC/RTC driver 2014-12-07 14:25:09 +00:00
jmcneill
f8a508d613 add awinwdt 2014-12-07 02:41:07 +00:00
jmcneill
393ecf4f40 remove axp22x 2014-12-07 00:54:51 +00:00
jmcneill
2ed652df8c add RSB (awinp2wi), AXP806, AXP809 drivers 2014-12-07 00:37:08 +00:00
jmcneill
5cc7573be7 A80 reduced serial bus (RSB) support. Similar to A31 P2WI but supports
more than one attached slave device.
2014-12-07 00:36:26 +00:00
jmcneill
b704830ac5 A80 DMA controller support 2014-12-05 18:54:35 +00:00
jmcneill
d7ed7a5c84 enable awge, axp22x 2014-12-05 18:42:02 +00:00
jmcneill
b003a9006c A80 EHCI and OHCI support 2014-12-05 17:32:08 +00:00
jmcneill
f27be0a861 A80 I2C support 2014-12-05 15:25:27 +00:00
jmcneill
79db5fb3a9 add A80 led and mmc0detect gpios 2014-12-05 14:46:04 +00:00
jmcneill
ae3f0c3680 add hummingbird A31 and allwinner A80 board types 2014-12-05 14:45:45 +00:00
jmcneill
78ebfd4410 A80 MMC support. Works for SD card slot on Cubie4, but not eMMC yet. 2014-12-05 14:36:44 +00:00
jmcneill
dcc6f03009 print when fixing up cbar value 2014-12-05 01:20:48 +00:00
jmcneill
4b4f62e211 Initial Allwinner A80 support. 2014-12-05 01:13:11 +00:00