exynos5_pad.c (266341) | exynos5_pad.c (278782) |
---|---|
1/*- 2 * Copyright (c) 2014 Ruslan Bukin <br@bsdpad.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 */ 26 27/* 28 * Samsung Exynos 5 Pad Control 29 * Chapter 4, Exynos 5 Dual User's Manual Public Rev 1.00 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2014 Ruslan Bukin <br@bsdpad.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 */ 26 27/* 28 * Samsung Exynos 5 Pad Control 29 * Chapter 4, Exynos 5 Dual User's Manual Public Rev 1.00 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: stable/10/sys/arm/samsung/exynos/exynos5_pad.c 266341 2014-05-17 19:37:04Z ian $"); | 33__FBSDID("$FreeBSD: stable/10/sys/arm/samsung/exynos/exynos5_pad.c 278782 2015-02-14 20:37:33Z loos $"); |
34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/bus.h> 38#include <sys/kernel.h> 39#include <sys/module.h> 40#include <sys/malloc.h> 41#include <sys/rman.h> --- 394 unchanged lines hidden (view full) --- 436 sc->gpio_pins[i].gp_flags = GPIO_PIN_INPUT; 437 438 /* TODO: add other pin statuses */ 439 440 snprintf(sc->gpio_pins[i].gp_name, GPIOMAXNAME, 441 "pad%d.%d", device_get_unit(dev), i); 442 } 443 | 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/bus.h> 38#include <sys/kernel.h> 39#include <sys/module.h> 40#include <sys/malloc.h> 41#include <sys/rman.h> --- 394 unchanged lines hidden (view full) --- 436 sc->gpio_pins[i].gp_flags = GPIO_PIN_INPUT; 437 438 /* TODO: add other pin statuses */ 439 440 snprintf(sc->gpio_pins[i].gp_name, GPIOMAXNAME, 441 "pad%d.%d", device_get_unit(dev), i); 442 } 443 |
444 device_add_child(dev, "gpioc", device_get_unit(dev)); 445 device_add_child(dev, "gpiobus", device_get_unit(dev)); | 444 device_add_child(dev, "gpioc", -1); 445 device_add_child(dev, "gpiobus", -1); |
446 447 return (bus_generic_attach(dev)); 448} 449 450static int 451pad_pin_max(device_t dev, int *maxpin) 452{ 453 --- 263 unchanged lines hidden --- | 446 447 return (bus_generic_attach(dev)); 448} 449 450static int 451pad_pin_max(device_t dev, int *maxpin) 452{ 453 --- 263 unchanged lines hidden --- |