diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-12-05 21:53:01 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-12-16 14:54:57 +0100 |
commit | 90965566891ee63baaae6be66e55a12c28ab1b65 (patch) | |
tree | 7405afb58ca0a4744cb7e4eaaf3b5af623e4ae2b /target/device/Atmel/atngw100/target_skeleton/etc/init.d/S99gpio | |
parent | 729b0fa2cae5ccb18c58d77a204180d2fad6db73 (diff) | |
download | buildroot-novena-90965566891ee63baaae6be66e55a12c28ab1b65.tar.gz buildroot-novena-90965566891ee63baaae6be66e55a12c28ab1b65.zip |
board: simplify atngw100 support
Minimize atngw100_defconfig, remove atngw100-base_defconfig, and
remove the target skeleton and device table. Instead of having
complete copies of new target skeletons (making them hard to
maintain), we should just have a post-build script that
adds/removes/tweaks the existing target skeleton.
Moreover, most of the tweaks in this target skeleton were for specific
packages, but the policy now is that board defconfig should just build
a basic root filesystem with Busybox, and let the user select
whichever set of packages (s)he wants.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'target/device/Atmel/atngw100/target_skeleton/etc/init.d/S99gpio')
-rwxr-xr-x | target/device/Atmel/atngw100/target_skeleton/etc/init.d/S99gpio | 142 |
1 files changed, 0 insertions, 142 deletions
diff --git a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S99gpio b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S99gpio deleted file mode 100755 index 3a1774012..000000000 --- a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S99gpio +++ /dev/null @@ -1,142 +0,0 @@ -#!/bin/sh - -echo -n "Get board type for GPIO: " -if [ ! -e "/etc/release" ]; then - echo "missing"; - exit 1 -fi - -BOARD=`cat /etc/release | cut -d ' ' -f1` - -if [ "${BOARD}" = "" ]; then - echo "none"; -elif [ "${BOARD}" = "NGW100" ]; then - echo "'${BOARD}'" - - echo -n " boot LED: " - if mkdir /config/gpio/bootled > /dev/null 2> /dev/null; then - if ! echo 0 > /config/gpio/bootled/gpio_id; then - echo "failed" - exit 1 - fi - - if ! echo 0x10000 > /config/gpio/bootled/pin_mask; then - echo "failed" - exit 1 - fi - - if ! echo 0x10000 > /config/gpio/bootled/oe_mask; then - echo "failed" - exit 1 - fi - - if ! echo 1 > /config/gpio/bootled/enabled; then - echo "failed" - exit 1 - fi - - if ! echo 0x10000 > /dev/gpio0; then - echo "failed" - exit 1 - fi - - echo "done" - else - echo "failed" - exit 1 - fi - - echo -n " LED A: " - if mkdir /config/gpio/leda > /dev/null 2> /dev/null; then - if ! echo 0 > /config/gpio/leda/gpio_id; then - echo "failed" - exit 1 - fi - - if ! echo 0x80000 > /config/gpio/leda/pin_mask; then - echo "failed" - exit 1 - fi - - if ! echo 0x80000 > /config/gpio/leda/oe_mask; then - echo "failed" - exit 1 - fi - - if ! echo 1 > /config/gpio/leda/enabled; then - echo "failed" - exit 1 - fi - - if ! echo 0 > /dev/gpio1; then - echo "failed" - exit 1 - fi - - echo "done" - else - echo "failed" - exit 1 - fi - - echo -n " LED B: " - if mkdir /config/gpio/ledb > /dev/null 2> /dev/null; then - if ! echo 4 > /config/gpio/ledb/gpio_id; then - echo "failed" - exit 1 - fi - - if ! echo 0x80000 > /config/gpio/ledb/pin_mask; then - echo "failed" - exit 1 - fi - - if ! echo 0x80000 > /config/gpio/ledb/oe_mask; then - echo "failed" - exit 1 - fi - - if ! echo 1 > /config/gpio/ledb/enabled; then - echo "failed" - exit 1 - fi - - if ! echo 0 > /dev/gpio2; then - echo "failed" - exit 1 - fi - - echo "done" - else - echo "failed" - exit 1 - fi -elif [ "${BOARD}" = "STK1000" ]; then # end NGW100 - echo "'${BOARD}'" - - echo -n " switches: " - if mkdir /config/gpio/switches > /dev/null 2> /dev/null; then - if ! echo 1 > /config/gpio/switches/gpio_id; then - echo "failed" - exit 1 - fi - - if ! echo 0xff > /config/gpio/switches/pin_mask; then - echo "failed" - exit 1 - fi - - if ! echo 1 > /config/gpio/switches/enabled; then - echo "failed" - exit 1 - fi - - echo "done" - else - echo "failed" - exit 1 - fi -else # end STK1000 - echo "'${BOARD}'" - echo " WARNING: no GPIO for this board" -fi |