diff options
Diffstat (limited to 'arch/arm/boards/zylonite')
-rw-r--r-- | arch/arm/boards/zylonite/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/boards/zylonite/board.c | 111 | ||||
-rw-r--r-- | arch/arm/boards/zylonite/env/boot/nand-ubi | 5 | ||||
-rw-r--r-- | arch/arm/boards/zylonite/env/init/mtdparts-nand | 6 | ||||
-rw-r--r-- | arch/arm/boards/zylonite/env/nv/hostname | 1 | ||||
-rw-r--r-- | arch/arm/boards/zylonite/env/nv/linux.bootargs.base | 1 | ||||
-rw-r--r-- | arch/arm/boards/zylonite/env/nv/linux.bootargs.console | 1 | ||||
-rw-r--r-- | arch/arm/boards/zylonite/lowlevel.c | 10 | ||||
-rw-r--r-- | arch/arm/boards/zylonite/zylonite.h | 22 |
9 files changed, 0 insertions, 159 deletions
diff --git a/arch/arm/boards/zylonite/Makefile b/arch/arm/boards/zylonite/Makefile deleted file mode 100644 index 01c7a259e9..0000000000 --- a/arch/arm/boards/zylonite/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -obj-y += board.o -lwl-y += lowlevel.o diff --git a/arch/arm/boards/zylonite/board.c b/arch/arm/boards/zylonite/board.c deleted file mode 100644 index bd72cd1992..0000000000 --- a/arch/arm/boards/zylonite/board.c +++ /dev/null @@ -1,111 +0,0 @@ -/* - * (C) 2014 Robert Jarzmik <robert.jarzmik@free.fr> - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ - -#include <common.h> - -#include <driver.h> -#include <environment.h> -#include <fs.h> -#include <gpio.h> -#include <init.h> -#include <partition.h> -#include <led.h> -#include <platform_data/eth-smc91111.h> -#include <platform_data/mtd-nand-mrvl.h> -#include <pwm.h> -#include <linux/clk.h> -#include <linux/clkdev.h> -#include <linux/sizes.h> - -#include <mach/devices.h> -#include <mach/mfp-pxa3xx.h> -#include <mach/pxa-regs.h> - -#include <asm/armlinux.h> -#include <asm/io.h> -#include <asm/mmu.h> -#include <generated/mach-types.h> - -#include "zylonite.h" - -static struct smc91c111_pdata smsc91x_pdata; -static struct mrvl_nand_platform_data nand_pdata = { - .keep_config = 0, - .flash_bbt = 1, -}; - -static mfp_cfg_t pxa310_mfp_cfg[] = { - /* FFUART */ - MFP_CFG_LPM(GPIO99, AF1, FLOAT), /* GPIO99_UART1_RXD */ - MFP_CFG_LPM(GPIO100, AF1, FLOAT), /* GPIO100_UART1_RXD */ - MFP_CFG_LPM(GPIO101, AF1, FLOAT), /* GPIO101_UART1_CTS */ - MFP_CFG_LPM(GPIO106, AF1, FLOAT), /* GPIO106_UART1_CTS */ - - /* Ethernet */ - MFP_CFG(GPIO2, AF1), /* GPIO2_nCS3 */ -}; - -static int zylonite_devices_init(void) -{ - struct clk *clk; - - armlinux_set_architecture(MACH_TYPE_ZYLONITE); - pxa_add_uart((void *)0x40100000, 0); - add_generic_device("smc91c111", DEVICE_ID_DYNAMIC, NULL, - 0x14000300, 0x100000, IORESOURCE_MEM, - &smsc91x_pdata); - clk = clk_get_sys("nand", NULL); - if (!IS_ERR(clk)) - clkdev_add_physbase(clk, 0x43100000, NULL); - add_generic_device("mrvl_nand", DEVICE_ID_DYNAMIC, NULL, - 0x43100000, 0x1000, IORESOURCE_MEM, &nand_pdata); - devfs_add_partition("nand0", SZ_1M, SZ_256K, DEVFS_PARTITION_FIXED, - "env0"); - return 0; -} -device_initcall(zylonite_devices_init); - -static int zylonite_coredevice_init(void) -{ - barebox_set_model("Zylonite"); - barebox_set_hostname("zylonite"); - - mfp_init(); - if (cpu_is_pxa310()) - pxa3xx_mfp_config(pxa310_mfp_cfg, ARRAY_SIZE(pxa310_mfp_cfg)); - CKENA |= CKEN_NAND | CKEN_SMC | CKEN_FFUART | CKEN_GPIO; - /* - * Configure Ethernet controller : - * MCS1: setup VLIO on nCS3, with 15 DF_SCLK cycles (max) for hold, - * setup and assertion times - * CSADRCFG3: DFI AA/D multiplexing VLIO, addr split at bit <16>, full - * latched mode, 7 DF_SCLK cycles (max) for nLUA and nLLA. - */ - MSC1 = 0x7ffc0000 | (MSC1 & 0x0000ffff); - CSADRCFG3 = 0x003e080b; - - return 0; -} -coredevice_initcall(zylonite_coredevice_init); - -static int zylonite_mem_init(void) -{ - arm_add_mem_device("ram0", 0x80000000, 64 * 1024 * 1024); - return 0; -} -mem_initcall(zylonite_mem_init); diff --git a/arch/arm/boards/zylonite/env/boot/nand-ubi b/arch/arm/boards/zylonite/env/boot/nand-ubi deleted file mode 100644 index 2231738224..0000000000 --- a/arch/arm/boards/zylonite/env/boot/nand-ubi +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -global.bootm.image="/dev/nand0.kernel" -#global.bootm.oftree="/env/oftree" -global.linux.bootargs.dyn.root="root=ubi0:linux_root ubi.mtd=nand.root rootfstype=ubifs" diff --git a/arch/arm/boards/zylonite/env/init/mtdparts-nand b/arch/arm/boards/zylonite/env/init/mtdparts-nand deleted file mode 100644 index 749318b59e..0000000000 --- a/arch/arm/boards/zylonite/env/init/mtdparts-nand +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -mtdparts="128k@0(TIMH)ro,128k@128k(OBMI)ro,768k@256k(barebox),256k@1024k(barebox-env),12M@1280k(kernel),38016k@13568k(root)" -kernelname="pxa3xx_nand-0" - -mtdparts-add -d nand0 -k ${kernelname} -p ${mtdparts} diff --git a/arch/arm/boards/zylonite/env/nv/hostname b/arch/arm/boards/zylonite/env/nv/hostname deleted file mode 100644 index 6e6d865eda..0000000000 --- a/arch/arm/boards/zylonite/env/nv/hostname +++ /dev/null @@ -1 +0,0 @@ -zylonite diff --git a/arch/arm/boards/zylonite/env/nv/linux.bootargs.base b/arch/arm/boards/zylonite/env/nv/linux.bootargs.base deleted file mode 100644 index 317f8b16a1..0000000000 --- a/arch/arm/boards/zylonite/env/nv/linux.bootargs.base +++ /dev/null @@ -1 +0,0 @@ -ram=64M diff --git a/arch/arm/boards/zylonite/env/nv/linux.bootargs.console b/arch/arm/boards/zylonite/env/nv/linux.bootargs.console deleted file mode 100644 index 476b1fbe49..0000000000 --- a/arch/arm/boards/zylonite/env/nv/linux.bootargs.console +++ /dev/null @@ -1 +0,0 @@ -console=ttyS0,115200 diff --git a/arch/arm/boards/zylonite/lowlevel.c b/arch/arm/boards/zylonite/lowlevel.c deleted file mode 100644 index 5b95d879fa..0000000000 --- a/arch/arm/boards/zylonite/lowlevel.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <common.h> -#include <linux/sizes.h> -#include <asm/barebox-arm-head.h> -#include <asm/barebox-arm.h> - -void __naked barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint32_t r2) -{ - arm_cpu_lowlevel_init(); - barebox_arm_entry(0x80000000, SZ_64M, NULL); -} diff --git a/arch/arm/boards/zylonite/zylonite.h b/arch/arm/boards/zylonite/zylonite.h deleted file mode 100644 index d39ab72d3d..0000000000 --- a/arch/arm/boards/zylonite/zylonite.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * (C) 2011 Robert Jarzmik <robert.jarzmik@free.fr> - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ -#ifndef _ZYLONITE_H_ -#define _ZYLONITE_H_ - - -#endif /* _ZYLONITE_H */ |