Skip to content

Commit

Permalink
ARM: at91: remove old AT91-specific drivers
Browse files Browse the repository at this point in the history
GPIO and LED drivers were replaced by generic ones for DT boards. These drivers
were remaining: delete them now. Modifications are also done on the
corresponding header files.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[nicolas.ferre@atmel.com: split patch]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Arnd Bergmann authored and Nicolas Ferre committed Dec 2, 2014
1 parent 865a381 commit 85c4b31
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 1,289 deletions.
5 changes: 1 addition & 4 deletions arch/arm/mach-at91/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for the linux kernel.
#

obj-y := gpio.o setup.o sysirq_mask.o
obj-y := setup.o sysirq_mask.o

obj-$(CONFIG_SOC_AT91SAM9) += sam9_smc.o

Expand All @@ -25,9 +25,6 @@ obj-$(CONFIG_MACH_AT91SAM9_DT) += board-dt-sam9.o
# SAMA5 board with device-tree
obj-$(CONFIG_SOC_SAMA5) += board-dt-sama5.o

# Drivers
obj-y += leds.o

# Power Management
obj-$(CONFIG_PM) += pm.o
obj-$(CONFIG_AT91_SLOW_CLOCK) += pm_slowclock.o
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-at91/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,4 @@ extern void __init at91_add_device_isi(struct isi_platform_data *data,
/* CAN */
extern void __init at91_add_device_can(struct at91_can_data *data);

/* LEDs */
extern void __init at91_gpio_leds(struct gpio_led *leds, int nr);

#endif
16 changes: 0 additions & 16 deletions arch/arm/mach-at91/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,4 @@ extern void at91sam9_idle(void);

/* Matrix */
extern void at91_ioremap_matrix(u32 base_addr);

/* GPIO */
#define AT91RM9200_PQFP 3 /* AT91RM9200 PQFP package has 3 banks */
#define AT91RM9200_BGA 4 /* AT91RM9200 BGA package has 4 banks */

struct at91_gpio_bank {
unsigned short id; /* peripheral ID */
unsigned long regbase; /* offset from system peripheral base */
};
extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks);
extern void __init at91_gpio_irq_setup(void);
extern int __init at91_gpio_of_irq_setup(struct device_node *node,
struct device_node *parent);

extern u32 at91_get_extern_irq(void);

#endif /* _AT91_GENERIC_H */
Loading

0 comments on commit 85c4b31

Please sign in to comment.