From 4a2e50955062221d3123e4a32392a7a483a0da9a Mon Sep 17 00:00:00 2001 From: Spike 7d8 Date: Sat, 4 Oct 2014 13:50:02 -0400 Subject: [PATCH] uboot-cubieboard2 support for all 67 GPIOs --- alarm/uboot-sunxi/PKGBUILD | 6 +-- alarm/uboot-sunxi/cubieboard2.fex | 70 ++++++++++++++++++++++++++++++- 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/alarm/uboot-sunxi/PKGBUILD b/alarm/uboot-sunxi/PKGBUILD index 2c58732e8..a29568720 100644 --- a/alarm/uboot-sunxi/PKGBUILD +++ b/alarm/uboot-sunxi/PKGBUILD @@ -8,7 +8,7 @@ pkgname=('uboot-cubieboard2' 'uboot-cubietruck' 'uboot-a10-iteaduino-plus' 'uboo 'uboot-hackberry' 'uboot-a20-olinuxino-micro' 'uboot-a13-olinuxino-micro' 'uboot-a10s-olinuxino-micro' 'uboot-a10s-olinuxino-micro-lcd7') pkgver=2014.04 -pkgrel=9 +pkgrel=10 arch=('armv7h') url="https://github.com/linux-sunxi/u-boot-sunxi" license=('GPL') @@ -28,7 +28,7 @@ source=("https://github.com/linux-sunxi/u-boot-sunxi/archive/${_commit}.tar.gz" 'a10s-olinuxino-m-lcd7.fex' 'a10s-olinuxino-m-lcd7.env') md5sums=('7b28f844d7b143b4f214cab9582681c8' 'c52abd6e8b1bc6d367809b5a7950d733' - '36c04988cecd53151f3f5ff5c48d76a9' + 'c86e604530fa60ab4a9237a8ef7ecbc6' 'd41d8cd98f00b204e9800998ecf8427e' 'c898ab1b57f474d620f5704b2a53d87c' 'd41d8cd98f00b204e9800998ecf8427e' @@ -62,7 +62,7 @@ build() { mkdir ../bin_${i} make distclean make ${i}_config - make + make mv u-boot-sunxi-with-spl.bin ../bin_${i} done } diff --git a/alarm/uboot-sunxi/cubieboard2.fex b/alarm/uboot-sunxi/cubieboard2.fex index fb85380f3..ac2682d45 100644 --- a/alarm/uboot-sunxi/cubieboard2.fex +++ b/alarm/uboot-sunxi/cubieboard2.fex @@ -281,8 +281,74 @@ motor_shake = port:PB03<1><1> [gpio_para] gpio_used = 1 -gpio_num = 1 -gpio_pin_1 = port:PH20<1><1> +gpio_num = 67 +gpio_pin_1 = port:PG03<1> +gpio_pin_2 = port:PB19<1> +gpio_pin_3 = port:PB18<1> +gpio_pin_4 = port:PG06<1> +gpio_pin_5 = port:PG05<1> +gpio_pin_6 = port:PG04<1> +gpio_pin_7 = port:PG01<1> +gpio_pin_8 = port:PG02<1> +gpio_pin_9 = port:PG00<1> +gpio_pin_10 = port:PH14<1> +gpio_pin_11 = port:PH15<1> +gpio_pin_12 = port:PI06<1> +gpio_pin_13 = port:PI05<1> +gpio_pin_14 = port:PI04<1> +gpio_pin_15 = port:PG11<1> +gpio_pin_16 = port:PG10<1> +gpio_pin_17 = port:PG09<1> +gpio_pin_18 = port:PG08<1> +gpio_pin_19 = port:PG07<1> +gpio_pin_20 = port:PE08<1> +gpio_pin_21 = port:PE07<1> +gpio_pin_22 = port:PE06<1> +gpio_pin_23 = port:PE05<1> +gpio_pin_24 = port:PE04<1> +gpio_pin_25 = port:PI09<1> +gpio_pin_26 = port:PI08<1> +gpio_pin_27 = port:PI07<1> +gpio_pin_28 = port:PD04<1> +gpio_pin_29 = port:PD03<1> +gpio_pin_30 = port:PD02<1> +gpio_pin_31 = port:PD01<1> +gpio_pin_32 = port:PD00<1> +gpio_pin_33 = port:PE11<1> +gpio_pin_34 = port:PE10<1> +gpio_pin_35 = port:PE09<1> +gpio_pin_36 = port:PD12<1> +gpio_pin_37 = port:PD11<1> +gpio_pin_38 = port:PD10<1> +gpio_pin_39 = port:PD09<1> +gpio_pin_40 = port:PD08<1> +gpio_pin_41 = port:PD07<1> +gpio_pin_42 = port:PD06<1> +gpio_pin_43 = port:PD05<1> +gpio_pin_44 = port:PD20<1> +gpio_pin_45 = port:PD19<1> +gpio_pin_46 = port:PD18<1> +gpio_pin_47 = port:PD17<1> +gpio_pin_48 = port:PD16<1> +gpio_pin_49 = port:PD15<1> +gpio_pin_50 = port:PD14<1> +gpio_pin_51 = port:PD13<1> +gpio_pin_52 = port:PB02<1> +gpio_pin_53 = port:PD25<1> +gpio_pin_54 = port:PD24<1> +gpio_pin_55 = port:PD26<1> +gpio_pin_56 = port:PD27<1> +gpio_pin_57 = port:PD23<1> +gpio_pin_58 = port:PD22<1> +gpio_pin_59 = port:PD21<1> +gpio_pin_60 = port:PI11<1> +gpio_pin_61 = port:PI13<1> +gpio_pin_62 = port:PI10<1> +gpio_pin_63 = port:PI12<1> +gpio_pin_64 = port:PB13<1> +gpio_pin_65 = port:PB11<1> +gpio_pin_66 = port:PB10<1> +gpio_pin_67 = port:PH07<1> [leds_para] leds_used = 1