rtl819x\linux-3.10\drivers\char\rtl_gpio.c

  • cat /proc/load_default 時 default_read_proc() 會輸出 default_flag.
  • reset_button_pressed() 會偵測 reset button.

rtl819x\linux-3.10\arch\mips\bsp\gpio.c

  • ...........gpio register
  • rtl819x_gpio_platdata rtl_pdata_btn1
  • rtl_pdata_btn1.gpio = BSP_RESET_BTN_PIN = BSP_GPIO_PIN_G6 = 6x8+6 = 54
  • BSP_GPIO_PIN_G6 in rtl819x\linux-3.10\arch\mips\bsp\bspchip.h
  • platform_device rtl_btn_dev1 = .platform_data = &rtl_pdata_btn1
  • platform_device __initdata *rtl_devs[] = { rtl_btn_dev1 }
  • platform_add_devices(rtl_devs) --> inert into rtl819x_btn_driver by .name="rtl819x_btn"
  • ...........gpio register
  • gpio_chip rtl819x_gpio_peripheral
  • gpiochip_add(&rtl819x_gpio_peripheral)
  • rtl819x_gpio_peripheral_init()
  • arch_initcall(rtl819x_gpio_peripheral_init)
創作者介紹

邱小新の工作筆記

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()